||October 14, 2010 08:46
Not writing volScalarField to hard disk
I've added the temperature to an incompressible solver (pisoFoam) as a volScalarField (adding the code below to createFields.H).
During the solver execution, I write to screen the maximum and minimum values of T (I also added the equation for T) with the following code:
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< "rho max/min : " << max(rho).value() << " " << min(rho).value()
<< "T max/min : " << max(T).value() << " " << min(T).value()
<< nl << endl;
T max an T min are about 45 K different (315 and 270 K). When OpenFoam writes the T field to the hard disk, however, the T file remains always the same file as the initial one from the initial conditions. Does someone have a clue about what is going on?