gradientEnergyFvPatchScalarField: Added writing of "value" field

Resolves feature request https://bugs.openfoam.org/view.php?id=3311
This commit is contained in:
Henry Weller
2019-07-22 12:01:44 +01:00
parent fdf1216ef5
commit b5f471585a
2 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -117,6 +117,13 @@ void Foam::gradientEnergyFvPatchScalarField::updateCoeffs()
}
void Foam::gradientEnergyFvPatchScalarField::write(Ostream& os) const
{
fixedGradientFvPatchScalarField::write(os);
writeEntry(os, "value", *this);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam

View File

@ -153,6 +153,10 @@ public:
//- Update the coefficients associated with the patch field
virtual void updateCoeffs();
//- Write
virtual void write(Ostream&) const;
};