From d2cefa9b26307314955df11706459e5e9aab96f0 Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Thu, 12 Sep 2013 11:36:07 +0100 Subject: [PATCH] fixedFluxPressureFvPatchScalarField: evaluate the value field after mapping --- .../fixedFluxPressureFvPatchScalarField.C | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C index 3894a5c3e45..ccdfaa8e8ec 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C @@ -53,12 +53,15 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField fixedGradientFvPatchScalarField(p, iF), curTimeIndex_(-1) { - // Map value. Set unmapped values and overwrite with mapped ptf - fvPatchField<scalar>::operator=(patchInternalField()); - map(ptf, mapper); // Map gradient. Set unmapped values and overwrite with mapped ptf gradient() = 0.0; gradient().map(ptf.gradient(), mapper); + + // Evaluate the value field from the gradient if the internal field is valid + if (&iF && iF.size()) + { + evaluate(); + } } -- GitLab