Which Time Step - Implicit Unsteady
Hi,
I'm simulating the melting and solidification of a spherical capsule (2D), which is filled with paraffin. I'm using an Implicit unsteady model. How can I find an appropriate time step? I have 30000 cells and currently my time step is 0,2s. I set the Courant number to 4. But which connection is between Courant Number and time step? It is also possible to vary the time step? The physical time to melt the paraffin is about 8000s. But whith this small time step, I need a few days for the simulation. I worry with a larger time step the simulation will not work. Can you help me? Thx a lot! |
Your current timestep is already pretty high for VOF. You want the CFL on the VOF interface to be 1. You can track this variable if you want.
Push the Courant number higher and include fewer inner iterations to get a cheaper calculation. You can put a field function in place of the timestep and dynamically change it based on CFL if you want. |
Ok thanks so far. I'll try this tomorrow!
|
2 Attachment(s)
Do I understand that correctly, that the CFL-number ist NOT the same as the courant number?!
I want the CFL to be 1 on the interface, yes. But I don't understand how I can define something as variable if I set the number to f.e. 4? And WHERE should I define that? The only input field for CFL numbers I can find is in physic models -> Segregated Flow / VOF Attachment 31013 Attachment 31014 I can send you my .sim file if u want thx |
You cannot explicitly set the CFL using an implicit method. You will have to make a feedback system. Run iteration > check CFL > if too high, reduce time step > if too low, increase time step.
|
Ok, I understand this.
I made a new report -> Maximum -> Skalar Field Function: Convective Courant Number. The Courant Number is about 0,02. I think it's too low, so I try to increase the time step, right? |
That's correct.
|
Ok thanks so far :)
|
Can I make a field function that describes the relation between Time Step and Convective Courant Number?
I wanna make a function whith this statement: "If the Courant Number is larger than 1, then the Time Step should be reduced by 0,01 seconds". Is that possible? I am not good at programming, so Can you help me with this problems if it is possible? My Field Function so far is: (${ConvectiveCourantNumber}<=1.0) ? (${TimeStep} -0.01) But I think it's wrong... |
Take a look at this macro I wrote to control the timestep dynamically. You have the idea right with your function, but to make it work well you need to be a little more sophisticated.
Code:
|
All times are GMT -4. The time now is 23:37. |