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 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 * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
alphatWallFunctionFvPatchScalarField:: alphatWallFunctionFvPatchScalarField::
@ -127,8 +136,7 @@ void alphatWallFunctionFvPatchScalarField::updateCoeffs()
void alphatWallFunctionFvPatchScalarField::write(Ostream& os) const void alphatWallFunctionFvPatchScalarField::write(Ostream& os) const
{ {
fvPatchField<scalar>::write(os); fvPatchField<scalar>::write(os);
writeEntryIfDifferent<word>(os, "mut", "mut", mutName_); writeLocalEntries(os);
os.writeKeyword("Prt") << Prt_ << token::END_STATEMENT << nl;
writeEntry("value", os); writeEntry("value", os);
} }

View file

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