Hi there, I want to know if
I want to know if there is an explicit algorithm in OpenFoam, where multiple time steps are used in the simulations depending on the parameters or space step (delta x).
I'm not entirely clear what yo
I'm not entirely clear what you mean here; but if you construct an equation object where the only fvm:: operator used is the time derivative, then you have an explicit algorithm. Eg. for the heat equation;
solve(fvm::ddt(T) == kappa*fvc::laplacian(T));
is an explicit algorithm. fvc:: is always an explicit evaluation of the field.
Hi Gavin, Thanks for your e
Thanks for your email.
What I ment by explicit algrithm is by the ability to change the time step throughout the simulation depending on the courant number, for example in the case of a pressure wave.
Is it possible?
If you want to use a Courant-b
If you want to use a Courant-based timestep you might have to modify the code.
Dont worry, it is very easy.
Lets take turbFoam as an example.
open up turbFoam.C with your favourite editor and
after this line
# include "initContinuityErrs.H"
# include "readTimeControls.H"
and after this line
# include "CourantNo.H"
# include "setDeltaT.H"
now run wmake
to use it you need to edit the system/controlDict
by adding these lines
and thats it.
|All times are GMT -4. The time now is 15:46.|