hexagon logo

Resources related to scFLOW internal scripting

Hello community,

I'm currently working on a project where I need to define a custom inflow boundary condition in my CFD model. I believe that using scripting within scFLOW might be the best approach to achieve this.

Could anyone guide me towards useful examples or resources that could help me learn more about scripting in scFLOW? Thank you!

Parents
  • Hello Oscar,

    Thanks for asking the question.
    Basically you can find all related to scripts in the user's guide : Solver Reference. The topic is "User function and script".

    User function is the old way of doing things that need you to implement a code and to compile it.
    Script (formatted and unformatted) are coding in JavaScript, directly in the pre-processor and exported with the simulation file. The solver is interpreting your coding whether you are running on Linux or on Windows. :-)

    So you can go through the basics with the "how to" topics related to scripts to understand how it works.
    You will also find some examples at the end. All are interesting but examples number 3, 4 and 5 are talking about boundary conditions.

    In addition, I recently gave a webinar on how to get started with scripting within scFLOW. It is free to watch and the duration is about 30min so, I recommend you to watch it :-)
    https://simcompanion.hexagon.com/customers/s/article/SimAcademy-Webinar-Introduction-for-Scripting-within-scFLOW

    Hope this will help you to be successful with your simulation.
    Christophe Gayet

Reply
  • Hello Oscar,

    Thanks for asking the question.
    Basically you can find all related to scripts in the user's guide : Solver Reference. The topic is "User function and script".

    User function is the old way of doing things that need you to implement a code and to compile it.
    Script (formatted and unformatted) are coding in JavaScript, directly in the pre-processor and exported with the simulation file. The solver is interpreting your coding whether you are running on Linux or on Windows. :-)

    So you can go through the basics with the "how to" topics related to scripts to understand how it works.
    You will also find some examples at the end. All are interesting but examples number 3, 4 and 5 are talking about boundary conditions.

    In addition, I recently gave a webinar on how to get started with scripting within scFLOW. It is free to watch and the duration is about 30min so, I recommend you to watch it :-)
    https://simcompanion.hexagon.com/customers/s/article/SimAcademy-Webinar-Introduction-for-Scripting-within-scFLOW

    Hope this will help you to be successful with your simulation.
    Christophe Gayet

Children