Get output of time derivative
I would like to know, if we can get the time derivative of a variable as the output. For instance, if I am solving the transient Navier Stokes, is it possible to get the acceleration (du/dt) too at every time step as an output.
Kindly let me know.
Use fvc::ddt(yourField) to store it in a volField of the same type of your field. Setting the IOobject to AUTO_WRITE will have the time derivative stored.
Thanks Alberto. It worked well.
how can i get the same in a postprocessing? If i use this code:
it returns always zero.
a) declare the field as you did in createFields.H
b) add the line
|All times are GMT -4. The time now is 02:04.|