|
[Sponsors] |
February 26, 2021, 11:41 |
Field function for variable time step
|
#1 |
New Member
Dabeet Sathyanarayan
Join Date: Feb 2021
Posts: 1
Rep Power: 0 |
I want to create a field function for variable time step duration,
i.e, if time is less than 1 min, time step size is 10 secs, after thatc, time step size is 1min for next 10 mins. or, alternatively, for the first time step, i want 5000 iterations, after that i need 1000 iterations per time step. How to i do this, Any help appreciated, thanks |
|
February 27, 2021, 09:05 |
|
#2 | |
New Member
ali_Ebrahimi
Join Date: Jan 2021
Posts: 9
Rep Power: 5 |
Quote:
|
||
March 26, 2021, 16:55 |
|
#3 |
New Member
Gokhan
Join Date: Dec 2020
Location: Stockholm
Posts: 5
Rep Power: 6 |
(${Time}< 0.005 ? 0.0002 : ((${Time} < 0.04 ? 0.00164 : ${Time} < 4.2 ? 0.0012 : ((${Time} < 4.6 ? 0.0002 : 0.0001 )))))
Maybe something like that can work for you. It means when the physical time is less than 0.005-timestep is 0.0002. If the physical time is bigger than 0.005 then the timestep is 0.00164. You can just copy and paste it to timestep part and alter the boundaries according to your simulation. |
|
Tags |
field function, iterations per time step, time step |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 03:34 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 23:40 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |