mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: fWallFunctions: consistent with epsilonWallFunction
This commit is contained in:
@ -55,6 +55,14 @@ void fWallFunctionFvPatchScalarField::checkType()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void fWallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
||||||
|
{
|
||||||
|
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
scalar fWallFunctionFvPatchScalarField::yPlusLam
|
scalar fWallFunctionFvPatchScalarField::yPlusLam
|
||||||
(
|
(
|
||||||
const scalar kappa,
|
const scalar kappa,
|
||||||
@ -233,11 +241,8 @@ void fWallFunctionFvPatchScalarField::evaluate
|
|||||||
|
|
||||||
void fWallFunctionFvPatchScalarField::write(Ostream& os) const
|
void fWallFunctionFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
|
writeLocalEntries(os);
|
||||||
fixedValueFvPatchField<scalar>::write(os);
|
fixedValueFvPatchField<scalar>::write(os);
|
||||||
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
|
||||||
writeEntry("value", os);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -103,6 +103,9 @@ protected:
|
|||||||
//- Check the type of the patch
|
//- Check the type of the patch
|
||||||
virtual void checkType();
|
virtual void checkType();
|
||||||
|
|
||||||
|
//- Write local wall function variables
|
||||||
|
virtual void writeLocalEntries(Ostream&) const;
|
||||||
|
|
||||||
//- Calculate the Y+ at the edge of the laminar sublayer
|
//- Calculate the Y+ at the edge of the laminar sublayer
|
||||||
scalar yPlusLam(const scalar kappa, const scalar E);
|
scalar yPlusLam(const scalar kappa, const scalar E);
|
||||||
|
|
||||||
|
|||||||
@ -55,6 +55,14 @@ void v2WallFunctionFvPatchScalarField::checkType()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void v2WallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
||||||
|
{
|
||||||
|
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
scalar v2WallFunctionFvPatchScalarField::yPlusLam
|
scalar v2WallFunctionFvPatchScalarField::yPlusLam
|
||||||
(
|
(
|
||||||
const scalar kappa,
|
const scalar kappa,
|
||||||
@ -224,11 +232,8 @@ void v2WallFunctionFvPatchScalarField::evaluate
|
|||||||
|
|
||||||
void v2WallFunctionFvPatchScalarField::write(Ostream& os) const
|
void v2WallFunctionFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
|
writeLocalEntries(os);
|
||||||
fixedValueFvPatchField<scalar>::write(os);
|
fixedValueFvPatchField<scalar>::write(os);
|
||||||
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
|
||||||
writeEntry("value", os);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -105,6 +105,9 @@ protected:
|
|||||||
//- Check the type of the patch
|
//- Check the type of the patch
|
||||||
virtual void checkType();
|
virtual void checkType();
|
||||||
|
|
||||||
|
//- Write local wall function variables
|
||||||
|
virtual void writeLocalEntries(Ostream&) const;
|
||||||
|
|
||||||
//- Calculate the Y+ at the edge of the laminar sublayer
|
//- Calculate the Y+ at the edge of the laminar sublayer
|
||||||
scalar yPlusLam(const scalar kappa, const scalar E);
|
scalar yPlusLam(const scalar kappa, const scalar E);
|
||||||
|
|
||||||
|
|||||||
@ -56,6 +56,14 @@ void fWallFunctionFvPatchScalarField::checkType()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void fWallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
||||||
|
{
|
||||||
|
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
scalar fWallFunctionFvPatchScalarField::yPlusLam
|
scalar fWallFunctionFvPatchScalarField::yPlusLam
|
||||||
(
|
(
|
||||||
const scalar kappa,
|
const scalar kappa,
|
||||||
@ -232,10 +240,8 @@ void fWallFunctionFvPatchScalarField::evaluate
|
|||||||
|
|
||||||
void fWallFunctionFvPatchScalarField::write(Ostream& os) const
|
void fWallFunctionFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
|
writeLocalEntries(os);
|
||||||
fixedValueFvPatchField<scalar>::write(os);
|
fixedValueFvPatchField<scalar>::write(os);
|
||||||
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -103,6 +103,9 @@ protected:
|
|||||||
//- Check the type of the patch
|
//- Check the type of the patch
|
||||||
virtual void checkType();
|
virtual void checkType();
|
||||||
|
|
||||||
|
//- Write local wall function variables
|
||||||
|
virtual void writeLocalEntries(Ostream&) const;
|
||||||
|
|
||||||
//- Calculate the Y+ at the edge of the laminar sublayer
|
//- Calculate the Y+ at the edge of the laminar sublayer
|
||||||
scalar yPlusLam(const scalar kappa, const scalar E);
|
scalar yPlusLam(const scalar kappa, const scalar E);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -55,6 +55,14 @@ void v2WallFunctionFvPatchScalarField::checkType()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void v2WallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
||||||
|
{
|
||||||
|
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
||||||
|
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
scalar v2WallFunctionFvPatchScalarField::yPlusLam
|
scalar v2WallFunctionFvPatchScalarField::yPlusLam
|
||||||
(
|
(
|
||||||
const scalar kappa,
|
const scalar kappa,
|
||||||
@ -222,11 +230,8 @@ void v2WallFunctionFvPatchScalarField::evaluate
|
|||||||
|
|
||||||
void v2WallFunctionFvPatchScalarField::write(Ostream& os) const
|
void v2WallFunctionFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
|
writeLocalEntries(os);
|
||||||
fixedValueFvPatchField<scalar>::write(os);
|
fixedValueFvPatchField<scalar>::write(os);
|
||||||
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
|
||||||
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
|
||||||
writeEntry("value", os);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -105,6 +105,9 @@ protected:
|
|||||||
//- Check the type of the patch
|
//- Check the type of the patch
|
||||||
virtual void checkType();
|
virtual void checkType();
|
||||||
|
|
||||||
|
//- Write local wall function variables
|
||||||
|
virtual void writeLocalEntries(Ostream&) const;
|
||||||
|
|
||||||
//- Calculate the Y+ at the edge of the laminar sublayer
|
//- Calculate the Y+ at the edge of the laminar sublayer
|
||||||
scalar yPlusLam(const scalar kappa, const scalar E);
|
scalar yPlusLam(const scalar kappa, const scalar E);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user