CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Update the fields during the iteration loop (https://www.cfd-online.com/Forums/openfoam-solving/157228-update-fields-during-iteration-loop.html)

Gitesh P July 23, 2015 06:43

Update the fields during the iteration loop
 
Hello,

I am trying to print some fields during simulation in two-phase solver of OpenFOAM 23x.

Therefore, I first define the fields in createFields.H file of the solver. After that I mentioned as function in controlDict file (let's say volAverage value of the field over the whole domain).

Now the problem is that I am getting value of the fields at each time-step but all values are same (like initial values) which is wrong. So it seems, the defined field is not updated each time-step or each iteration.

Can anyone suggest me the right way to record it?

Best regards,
GP


All times are GMT -4. The time now is 08:55.