From b1b7fbec655f1cfc8d2ebdebebabe75a884e928a Mon Sep 17 00:00:00 2001 From: henry Date: Thu, 28 Jan 2010 16:04:36 +0000 Subject: [PATCH] buoyantPressureFvPatchScalarField: added support for pmh (pressure - hydrostatic) which is the new name for pd. --- .../buoyantPressure/buoyantPressureFvPatchScalarField.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/buoyantPressure/buoyantPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/buoyantPressure/buoyantPressureFvPatchScalarField.C index a6ae6f1ee6..82604d781d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/buoyantPressure/buoyantPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/buoyantPressure/buoyantPressureFvPatchScalarField.C @@ -117,10 +117,14 @@ void buoyantPressureFvPatchScalarField::updateCoeffs() const fvPatchField& rho = patch().lookupPatchField(rhoName_); - // If the variable name is "pd" assume it is p - rho*g.h + // If the variable name is "pmh" or "pd" assume it is p - rho*g.h // and set the gradient appropriately. // Otherwise assume the variable is the static pressure. - if (dimensionedInternalField().name() == "pd") + if + ( + dimensionedInternalField().name() == "pmh" + || dimensionedInternalField().name() == "pd" + ) { gradient() = -rho.snGrad()*(g.value() & patch().Cf()); }