|
[Sponsors] |
April 13, 2015, 14:24 |
|
#21 |
Member
DaveyBaby
Join Date: May 2013
Posts: 46
Rep Power: 13 |
Hi,
B<A <=> A>B :-) You could try a steady-state sim to get results to initialise the unsteady one, then adjust the timestep such that for this initial velocity field the Courant number will be less than about 0.7. Then run it for a bit and see what is happening with your Courant Number, adjusting the timestep accordingly. You may find that you have a refined grid where you don't need much spatial resolution and if your Courant numbers are highest here you can coarsen the mesh accordingly so that you can increase your timestep. Watch y+ values as well to make sure they are appropriate for your model. Then you could play around with grid coarsening/refinement and timestep size to get the balance you are happy with, always maintaining Courant numbers lower than 1. It is ok if far from your domain of interest there are isolated (in time and space) instances of C>1, but this is not ideal. |
|
April 13, 2015, 21:02 |
|
#22 | |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
gosh. i wrote that wrongly. i have edited my post.
i mean to say it as: A should takes less time than B because higher Courant => larger timestep => less iterations to reach simulation end time. so did u meant it to be as such? Quote:
other than reducing the timestep (which will increase the simulation time), do you know if it is possible to increase the size of the time step for each iter as the iteration is marching forward? |
||
April 14, 2015, 05:45 |
|
#23 |
Member
DaveyBaby
Join Date: May 2013
Posts: 46
Rep Power: 13 |
In version 10 under Solvers>Implicit Unsteady>Time-Step you can use a field function to define the time-step size if you like instead of it just being a constant. Among the independent variables, you can select time and define a timestep=f(t). You can probably do this in some earlier versions as well.
The problem is, you need to know a priori what the solution will be to know what timestep is ok. |
|
April 14, 2015, 06:22 |
|
#24 |
Member
DaveyBaby
Join Date: May 2013
Posts: 46
Rep Power: 13 |
Looking over this forum, it seems that I have also made some assumptions in my answers that may or may not be relevant to your case. I would thoroughly recommend searching the whole set of forums for "Courant" and find an answer that is appropriate to you. It seems that this issue of Courant number is more complex than I thought, I am only dealing with a subset of cases. Although a good rule of thumb is to keep Courant numbers below 1, this is not a complete answer, it seems that a timestep dependency study may allow you to have them higher.
|
|
April 14, 2015, 06:22 |
|
#25 |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
im running 9.06 and it doesnt have this feature - only has constant timestep input.
|
|
April 14, 2015, 06:48 |
|
#26 |
Member
DaveyBaby
Join Date: May 2013
Posts: 46
Rep Power: 13 |
For now, I would recommend monitoring it periodically and checking that C<1.
From reading around the forums, I have found that the issue is more complex than I previously thought, to the point where it is hard to give a faultless response. I have started a thread in the Main CFD forum, hoping to draw together a lot of responses from experienced users, maybe it will be of interest to you. |
|
April 16, 2015, 05:53 |
|
#27 | |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
Quote:
I opened my casefile which was created in version 9, but I do not see this field function option to set the size of my time-step. are you sure this is an option within version 10? can u show a screen shot please. |
||
April 16, 2015, 06:03 |
It is definitely there!
|
#28 |
Member
DaveyBaby
Join Date: May 2013
Posts: 46
Rep Power: 13 |
It is not immediately obvious, I would say it is a badly designed route via the gui.
Solver>Implicit Unsteady Right click "Implicit Unsteady", click "Edit" Left click [...] Left click [...] in the next pop-up |
|
April 16, 2015, 06:11 |
|
#29 |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
awesome i found it.
pardon my ignorance, but is it possible to do like an "if/else" definition? to recap - im trying to increase the size of the timestep as my simulation progresses. so say, for the iter<=5000 , timestep=0.01 ; for iter>5000, timestep = 0.05. |
|
April 16, 2015, 06:18 |
|
#30 |
Member
DaveyBaby
Join Date: May 2013
Posts: 46
Rep Power: 13 |
Yes it is. Field functions are very versatile. If you search "Field Function Programming Reference" under help you will find all you need. Remember this bit of the help menu, I have probably used it more than anything else but it's not easy to remember the root to it through the menu so best to search it.
|
|
April 16, 2015, 11:46 |
|
#31 | |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
Quote:
on another question: is it possible to create a Report that gives a "1" or "0" when my stopping criterion has been achieved? Upon achieving the stopping criterion, I want to be able to change a setting and then continue my simulation. |
||
April 16, 2015, 11:54 |
|
#32 |
Member
DaveyBaby
Join Date: May 2013
Posts: 46
Rep Power: 13 |
Probably, using "Expression Report", and using "Time" and "Iteration" in the definition. I have never done this though. Please let me know if you find a way!
|
|
April 16, 2015, 17:34 |
|
#33 |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
i didn't find a way to do that. Right now, Im just doing it manually.
|
|
April 17, 2015, 06:29 |
|
#34 |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
Im not sure it is the same issue as with other CFD softwares.
In CCM, for implicit unsteady cases, there is also a Courant number for the inner iterations - which from my understanding ; adjusts the psuedo timestep to obtain a result at the particular timestep. I'm monitoring my Courant Number on the global timestep and it is below 1. How do i set the Courant Number in Coupled Implicit>>Courant Number? |
|
February 1, 2016, 10:23 |
|
#35 |
Member
André Luiz Moura Silva Moreira
Join Date: Apr 2015
Location: Brazil
Posts: 40
Rep Power: 11 |
I'm running a unsteady simulation. I am testing what best time-step and best mesh refinement, but I don't know which one should I do first. Any advice?
|
|
February 1, 2016, 11:05 |
|
#36 | |
Member
Join Date: Nov 2014
Posts: 88
Rep Power: 12 |
Quote:
Then move to the unsteady case. |
||
February 1, 2016, 13:39 |
|
#37 |
Member
André Luiz Moura Silva Moreira
Join Date: Apr 2015
Location: Brazil
Posts: 40
Rep Power: 11 |
||
Tags |
step, time |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP! time step too small? | meangreen | Main CFD Forum | 6 | May 31, 2018 11:41 |
Hydrostatic Pressure and Gravity | miliante | OpenFOAM Running, Solving & CFD | 132 | October 7, 2012 23:50 |
Full pipe 3D using icoFoam | cyberbrain | OpenFOAM | 4 | March 16, 2011 10:20 |
Time step in transient simulation | shib | FLUENT | 0 | June 17, 2010 14:07 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 05:35 |