CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Intermediate step during a time step (http://www.cfd-online.com/Forums/openfoam/66477-intermediate-step-during-time-step.html)

Burn July 16, 2009 10:01

Intermediate step during a time step
 
Hi,
I have a question concerning the managment of time information during a time step. I have the following situation:

During one time step from time t_k to time t_k + delta_T,
a volScalarField called myfield changes its value according to a partial differential equation PDE1. That's done by using
solve(
fvm::ddt(myfield)
+...
==...
);
So now I have the volScalarField myfield at time t_k + delta_T. Now I want to solve to steady state another pde PDE2 for myfield, starting from the myfield at time t_k + delta_T. The steady state solution of PDE2 for myfield should then be used as starting value for the next time step from time t_k + delta_T to time t_k + 2*delta_T using PDE1.


Has anyone done something similar or an idea on how to do it? I have tried using subCyclceTime and subCycle, but without success.

Thanks


All times are GMT -4. The time now is 03:57.