Yes. Thanks to FreeCAD's python scripting capabilities, this is a strength. Whenever you make an edit, you will see code emitted in the Python console, and this can be saved as a macro for replaying later. Editing and adding an appropriate loop to this script should allow you to batch-generate the cases you need for the study.remcat wrote: ↑Wed May 01, 2019 8:41 amHello all,
I am using the openfoam cfd workbench embedded in freecad. It’s working fine. Is there a way to achieve a parametric study, by varying a geometrical parameter (such as a distance or a pipe diameter) and makes the calculus automatically running during night?
At the end, the aim is to plot a given simulated parameter (such as U velocity or presure) versus the geometric variable to optimised the design.
Thx for help,
ps: i can give any help/advices/traduction for the forum in french if required.
If you are going to generate a batch of cases, you will need to output them to separate directories. You can set the this by editing the relevant property of the mesh and solver objects (and see the python code generated).remcat wrote: ↑Tue May 07, 2019 9:12 amHi Oliveroxtoy,
Thanks for your answer!
I am not a specialist in python scripting, but, i understand the basis. I recorded a macro: first, i modify a parameter (say a diameter), then i add cfdof analysis, modify physics and so on. You are right, the mesh and solver generator does not output the code.
>>You would need script it to output to a sequence of different output directories.
what do you mean?
Try to use the HISA solver at windspeed lower mach 0,2.