|
[Sponsors] |
April 11, 2021, 23:07 |
time step in CFX pre
|
#1 |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 13 |
Hi, there
May I confirm two things regarding to the time step set-up in CFX pre? 1, in the steady simulation, I’d like to set up my time scale depending on the number of iterations. When the number of iterations is smaller than 200, I will use 2e-6 [s] as the physical time scale. Then the time scale slides gradually to 2e-4 [s] in the following 100 iterations. After that, the time scale keeps constant as 2e-4 [s] in the last 700 iterations. can I use the following CEL: step(200-citern)*2e-6 + step(citern-200)* step(300-citern)*((citern-200)*1.98e-6+2e-6) + step(citern-300)* 2e-4 to achieve my goal? Is there any other better way of doing that? Also what is the difference between aitern and citern? Does aitern also count the iteration from the initial guess? 2, In the transient simulation, what is the difference between citern and ctstep? Does citern refer to the number of iteration in the inner loop and ctstep refer to the number of time step in the outer loop? If I’d love like to have a sinusoid inlet velocity depending on the time, could I use the following CEL 11.07[m/s]+1.63[m/s]*sin(41.9[s^-1]*t ) ? Thank you very much! |
|
April 12, 2021, 04:00 |
|
#2 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Search the CFX forum to find the difference between aitern and citern, e.g. aitern vs citern
Regarding the functions, I think these are completely valid for the purpose. I would recommend to plot the CEL expressions in CFX-Pre to see if it provides what your expect. If so, then you can trust that CFX will use the time step increase or inlet velocity as you proposed. |
|
April 12, 2021, 06:46 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
And don't forget all variables are defined in the CFX documentation, in the reference guide.
A further comment: While your function with lots of step() functions is valid, if you use a 1D interpolation function it is much easier to set up and understand. You just plot out the points to define the function and CFX interpolates along it.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
April 12, 2021, 17:53 |
|
#4 |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 13 |
Hi, Gert-Jan, Thank you very much for your reply. Drawing the CEL expression is really a good idea.
|
|
April 12, 2021, 17:55 |
|
#5 | |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 13 |
Quote:
|
||
Tags |
time step |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 03:34 |