hkroeger / insightcae

InsightCAE
http://silentdynamics.de
80 stars 15 forks source link

Workbench/Numerical Wind Tunnel: Customization for the Number of Iterations #36

Open boucaron opened 1 month ago

boucaron commented 1 month ago

Hi, First, thanks for the software

Is it possible to customize the number of iterations for the Numerical Wind Tunnel ? I have a case where 1000 is not enough

Not sure this is the right place in numericalwindtunnel.cpp:createCase << cm.insert(new steadyIncompressibleNumerics(cm, steadyIncompressibleNumerics::Parameters() .set_writeInterval(100.0) .setpurgeWrite(0) .setendTime(1000.0) .set_deltaT(1) ));

Regards, Julien

hkroeger commented 1 month ago

Dear Julien,

yes, this is the right place. The 1000 iterations is the hard coded argument for set_endTime. You can change it and then recompile. I should better add some convergence monitoring for the forces. I have thought about this already but did not find the time yet to implement a good approach...

You can also manually intervene:

Alternatively, if the analysis has already stopped after 1000 iterations, you can also edit the "controlDict" and increase "endTime". Then manually restart the solver:

Hope this helps.

Regards, Hannes