Specifying timestep
Hi all,
Can anyone tell me how to specify using CCL expresions an specific timestep for a given number of iterations and then change it for the rest. Thanks, |
Re: Specifying timestep
Hi Carlos,
You mean CEL (CFX Expression Language) expression, not CCL. You can either use a step function or an easier way is to create a 1D profile and use it for your timestep. The input to the step function of profile would be either the current iteration number (citern) or the absolute iteration number (aitern). The absolute iteration number continues to increase across restarts whereas the current iteration number is only for the current run. Say you wanted to switch from .001 [s] to .01 [s] after 30 iterations, the step function would be: timestep = .01 [s]*step(aitern-30) + .001 [s]*step(30-aitern) The argument to a step function must be unitless (which the iteration number is) and returns 0 if the argument is less than zero, 0.5 if it is equal to zero and 1 if it is greater than zero. Regards, Robin |
Re: Specifying timestep
Hi, Robin, would you like to tell me where I can put this time step function in Pre? I use CFX 10 now?
Thank you for your advice. Hannah |
Re: Specifying timestep
Hi hannah,
You have to specify this at the solver control manually. On the solver tree, do rigth click on Solver control > Edit in Command Editor and then modify the corresponding line. Regards, Carlos. |
Re: Specifying timestep
thanks carlos for your replying. I open the Pre and enter the solver control section.Do I need to modify the whole CONVERGENCE CONTROL section contents with the commands you guys present here?
Thanks for your further comments. Hannah |
All times are GMT -4. The time now is 04:53. |