Refactoring for immersed boundary support

This commit is contained in:
Hrvoje Jasak 2019-06-17 15:37:54 +01:00
parent 1fd5416dfc
commit 328c75a101
2 changed files with 19 additions and 3 deletions

View file

@ -37,6 +37,15 @@ namespace compressible
namespace RASModels
{
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
void alphatWallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
{
writeEntryIfDifferent<word>(os, "mut", "mut", mutName_);
os.writeKeyword("Prt") << Prt_ << token::END_STATEMENT << nl;
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
alphatWallFunctionFvPatchScalarField::
@ -127,8 +136,7 @@ void alphatWallFunctionFvPatchScalarField::updateCoeffs()
void alphatWallFunctionFvPatchScalarField::write(Ostream& os) const
{
fvPatchField<scalar>::write(os);
writeEntryIfDifferent<word>(os, "mut", "mut", mutName_);
os.writeKeyword("Prt") << Prt_ << token::END_STATEMENT << nl;
writeLocalEntries(os);
writeEntry("value", os);
}

View file

@ -66,6 +66,14 @@ class alphatWallFunctionFvPatchScalarField
scalar Prt_;
protected:
// Protected Member Functions
//- Write local wall function variables
virtual void writeLocalEntries(Ostream&) const;
public:
//- Runtime type information
@ -146,7 +154,7 @@ public:
// I-O
//- Write
void write(Ostream&) const;
virtual void write(Ostream&) const;
};