IOobject returns constant value
Hi,
I am trying to create a new IOobject (Reynoldsnumber). Therefore I have added the following lines in my createFields.H and compiled it without errors. Unfortunately only a const value is returned (for Re and nu): Code:
volScalarField nu Any idea what I am doing wrong? |
Hi,
You need to update such volScalarFields in the time loop. Otherwise, they will always take the initial values defined in createFields.H. |
Thank you very much, it seems to work now!
As you said, I have added the lines in the time loop of my solver: Code:
nu = thermo.mu()/rho; |
All times are GMT -4. The time now is 23:56. |