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

How to decide time step size, number of time steps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2016, 13:40
Smile How to decide time step size, number of time steps
  #1
New Member
 
Param
Join Date: Oct 2015
Posts: 13
Rep Power: 10
parmeshwar is on a distinguished road
I am working on transient simulation. I am confused with following terms.

1. time step size= how to decide this, many users uses 0.01 or 0.1 or in this range only. What is the logic in deciding this time step size.

2. how to decide number of time steps

3. maximum number of iterations per time steps


thnks in advance
parmeshwar is offline   Reply With Quote

Old   June 6, 2016, 13:15
Default
  #2
New Member
 
Stephen
Join Date: Jun 2016
Posts: 8
Rep Power: 10
Sparow89 is on a distinguished road
1. What kind of transient simulation are you running? If you are expecting a frequency response my general rule for calculating time step size is to take the inverse of the frequency (the period) and divide it by 20 for the maximum time step. This will give you twenty steps per period and wouldn't be a bad starting point. Depending on how the run goes you may need to decrease your time step further. I am fairly new to CFD so if anyone has a better method please correct me.

2. This one takes some experience I think to get a good idea of how long you should let your simulations run. You are trying to decide how long it will take for the wanted flow regime to form. This is very dependent on the simulation you want to run. If you are working through workbench and the GUI I would suggest setting a flow time much higher than you think you would need and monitor residuals and a surface output to check for convergence. Once your solution is converged you can stop the simulation and use the time step at that point for future calculations.

3. I would stick with the default 20 sub-iterations at first. If you google around or look through this forum you will find discussions of when and why your would change this.
Sparow89 is offline   Reply With Quote

Old   June 6, 2016, 13:30
Default Transient simulation
  #3
New Member
 
Param
Join Date: Oct 2015
Posts: 13
Rep Power: 10
parmeshwar is on a distinguished road
[QUOTE=Sparow89;603600]1. What kind of transient simulation are you running? If you are expecting a frequency response my general rule for calculating time step size is to take the inverse of the frequency (the period) and divide it by 20 for the maximum time step. This will give you twenty steps per period and wouldn't be a bad starting point. Depending on how the run goes you may need to decrease your time step further. I am fairly new to CFD so if anyone has a better method please correct me.


Ans. I want temperature variation of water which is heated by solar radiation with respect time. that is how temperature of water is increasing with time in a day. I didn't get what you write aboe, can you elaborate it.


2. This one takes some experience I think to get a good idea of how long you should let your simulations run. You are trying to decide how long it will take for the wanted flow regime to form. This is very dependent on the simulation you want to run. If you are working through workbench and the GUI I would suggest setting a flow time much higher than you think you would need and monitor residuals and a surface output to check for convergence. Once your solution is converged you can stop the simulation and use the time step at that point for future calculations.

Ans.I got it now..........this is helpfull for me........thanks a lot......


3. I would stick with the default 20 sub-iterations at first. If you google around or look through this forum you will find discussions of when and why your would change this.
parmeshwar is offline   Reply With Quote

Old   June 6, 2016, 13:35
Default
  #4
New Member
 
Stephen
Join Date: Jun 2016
Posts: 8
Rep Power: 10
Sparow89 is on a distinguished road
I was thinking about a fluid flow simulation not heat transfer. I haven't worked with heat transfer in Fluent, but I would think about it by looking at the rate of heat transfer to the water and dividing the time component by some division (20-50 or so) to get a reasonable time step.
Sparow89 is offline   Reply With Quote

Old   June 6, 2016, 13:40
Default
  #5
New Member
 
Param
Join Date: Oct 2015
Posts: 13
Rep Power: 10
parmeshwar is on a distinguished road
Quote:
Originally Posted by Sparow89 View Post
I was thinking about a fluid flow simulation not heat transfer. I haven't worked with heat transfer in Fluent, but I would think about it by looking at the rate of heat transfer to the water and dividing the time component by some division (20-50 or so) to get a reasonable time step.
I am not getting this
dividing the time component by some division (20-50 or so) to get a reasonable time step

can you elaborate it
parmeshwar is offline   Reply With Quote

Old   June 6, 2016, 14:04
Default
  #6
New Member
 
Stephen
Join Date: Jun 2016
Posts: 8
Rep Power: 10
Sparow89 is on a distinguished road
I would imagine for solar heating which is slow and over a long period of time you could use a large time step. Try taking your 24 hour period and dividing it by 100 to get your time step (around 14 minutes or 860 seconds) and see how it looks. Then try lowering your time step and see if it changes much. If you have an okay computer and your element size isn't very large it should run quickly.
Sparow89 is offline   Reply With Quote

Old   June 6, 2016, 14:14
Default
  #7
New Member
 
Param
Join Date: Oct 2015
Posts: 13
Rep Power: 10
parmeshwar is on a distinguished road
Quote:
Originally Posted by Sparow89 View Post
I would imagine for solar heating which is slow and over a long period of time you could use a large time step. Try taking your 24 hour period and dividing it by 100 to get your time step (around 14 minutes or 860 seconds) and see how it looks. Then try lowering your time step and see if it changes much. If you have an okay computer and your element size isn't very large it should run quickly.
Thank you very much Sparow89.........
parmeshwar is offline   Reply With Quote

Reply


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
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


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