Skip to content
Snippets Groups Projects
Commit d2cefa9b authored by Henry's avatar Henry
Browse files

fixedFluxPressureFvPatchScalarField: evaluate the value field after mapping

parent 868fbd5f
No related merge requests found
......@@ -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();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment