mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
prghPressureFvPatchScalarField: Updated rho name specification
for consistency with prghPressureFvPatchScalarField
This commit is contained in:
@ -53,7 +53,7 @@ prghPressureFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchScalarField(p, iF),
|
fixedValueFvPatchScalarField(p, iF),
|
||||||
rhoName_(dict.lookupOrDefault<word>("rhoName", "rho")),
|
rhoName_(dict.lookupOrDefault<word>("rho", "rho")),
|
||||||
p_("p", dict, p.size())
|
p_("p", dict, p.size())
|
||||||
{
|
{
|
||||||
if (dict.found("value"))
|
if (dict.found("value"))
|
||||||
@ -171,11 +171,7 @@ void Foam::prghPressureFvPatchScalarField::updateCoeffs()
|
|||||||
void Foam::prghPressureFvPatchScalarField::write(Ostream& os) const
|
void Foam::prghPressureFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
fvPatchScalarField::write(os);
|
fvPatchScalarField::write(os);
|
||||||
if (rhoName_ != "rho")
|
writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);
|
||||||
{
|
|
||||||
os.writeKeyword("rhoName")
|
|
||||||
<< rhoName_ << token::END_STATEMENT << nl;
|
|
||||||
}
|
|
||||||
p_.writeEntry("p", os);
|
p_.writeEntry("p", os);
|
||||||
writeEntry("value", os);
|
writeEntry("value", os);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,7 @@ Description
|
|||||||
|
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
rhoName | rho field name | no | rho
|
rho | rho field name | no | rho
|
||||||
p | static pressure | yes |
|
p | static pressure | yes |
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ Description
|
|||||||
myPatch
|
myPatch
|
||||||
{
|
{
|
||||||
type prghPressure;
|
type prghPressure;
|
||||||
rhoName rho;
|
rho rho;
|
||||||
p uniform 0;
|
p uniform 0;
|
||||||
value uniform 0; // optional initial value
|
value uniform 0; // optional initial value
|
||||||
}
|
}
|
||||||
@ -174,18 +174,6 @@ public:
|
|||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return the rhoName
|
|
||||||
const word& rhoName() const
|
|
||||||
{
|
|
||||||
return rhoName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Return reference to the rhoName to allow adjustment
|
|
||||||
word& rhoName()
|
|
||||||
{
|
|
||||||
return rhoName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Return the static pressure
|
//- Return the static pressure
|
||||||
const scalarField& p() const
|
const scalarField& p() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user