CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

time step in CFX pre

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Gert-Jan
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2021, 23:07
Default time step in CFX pre
  #1
Member
 
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 13
lostking18 is on a distinguished road
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!
lostking18 is offline   Reply With Quote

Old   April 12, 2021, 04:00
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
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.
lostking18 likes this.
Gert-Jan is offline   Reply With Quote

Old   April 12, 2021, 06:46
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
lostking18 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   April 12, 2021, 17:53
Default
  #4
Member
 
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 13
lostking18 is on a distinguished road
Hi, Gert-Jan, Thank you very much for your reply. Drawing the CEL expression is really a good idea.
lostking18 is offline   Reply With Quote

Old   April 12, 2021, 17:55
Default
  #5
Member
 
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 13
lostking18 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
Thanks for your always helpful answer, ghorrocks. I've changed my step function to 1d interpolation function.
lostking18 is offline   Reply With Quote

Reply

Tags
time step


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:12.