The total enthalpy is calculated as
Ha = ha + K
where
ha is absolute enthalpy
K is the kinetic energy: 1/2*magSqr(U)
The total enthalpy or a particular phase can be calculated by specifying the
optional "phase" name, e.g.
#includeFunc totalEnthalpy(phase = liquid)
20 lines
781 B
C++
20 lines
781 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Calculates and writes the total enthalpy (ha + K) as the volScalarField Ha
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type totalEnthalpy;
|
|
libs ("libfieldFunctionObjects.so");
|
|
|
|
executeControl writeTime;
|
|
writeControl writeTime;
|
|
|
|
// ************************************************************************* //
|