mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
bugfix: alpha parameter was not being written
This commit is contained in:
@ -175,9 +175,8 @@ void turbulentInletFvPatchField<Type>::updateCoeffs()
|
|||||||
ranGen_.randomise(randomField[facei]);
|
ranGen_.randomise(randomField[facei]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Correction-factor proposed by Yi Wang to compensate for the loss
|
// Correction-factor to compensate for the loss of RMS fluctuation
|
||||||
// of RMS fluctuation due to the temporal correlation introduced by
|
// due to the temporal correlation introduced by the alpha parameter.
|
||||||
// the alpha parameter.
|
|
||||||
scalar rmsCorr = sqrt(12*(2*alpha_ - sqr(alpha_)))/alpha_;
|
scalar rmsCorr = sqrt(12*(2*alpha_ - sqr(alpha_)))/alpha_;
|
||||||
|
|
||||||
patchField =
|
patchField =
|
||||||
@ -206,6 +205,7 @@ void turbulentInletFvPatchField<Type>::write(Ostream& os) const
|
|||||||
os.writeKeyword("fluctuationScale")
|
os.writeKeyword("fluctuationScale")
|
||||||
<< fluctuationScale_ << token::END_STATEMENT << nl;
|
<< fluctuationScale_ << token::END_STATEMENT << nl;
|
||||||
referenceField_.writeEntry("referenceField", os);
|
referenceField_.writeEntry("referenceField", os);
|
||||||
|
os.writeKeyword("alpha") << alpha_ << token::END_STATEMENT << nl;
|
||||||
this->writeEntry("value", os);
|
this->writeEntry("value", os);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,6 @@ class turbulentInletFvPatchField
|
|||||||
:
|
:
|
||||||
public fixedValueFvPatchField<Type>
|
public fixedValueFvPatchField<Type>
|
||||||
{
|
{
|
||||||
|
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
Random ranGen_;
|
Random ranGen_;
|
||||||
|
|||||||
Reference in New Issue
Block a user