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/)
-   -   write enthalpy (https://www.cfd-online.com/Forums/openfoam-solving/153683-write-enthalpy.html)

will_ca June 1, 2015 09:13

write enthalpy
 
Hello,


I'm trying to write out the enthalpy at each timestep.
since I chose sensible enthalpy in the thermophysicalProperties file "he" that is used for the energy equation should be the enthalpy.

I tried adding


Code:

volScalarField he
    (
        IOobject
        (
            "he",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        thermo.he()
    );

to the createFields.H file and recompiling.


But the "he" that is written out is not changing from one timestep to the next although it should.


Does anyone know what I'm doing wrong and can point me in the right direction?



Thanks,


Caro

C. Okubo November 25, 2019 09:33

Any answer on that?

C. Okubo November 25, 2019 09:51

Just define sensibleEnthalpy in thremophysicalProperties and use:

thermo.he().write();


All times are GMT -4. The time now is 11:16.