mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: fixedPressure: map value as well as gradient
This commit is contained in:
@ -53,8 +53,12 @@ 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;
|
||||
map(gradient(), mapper);
|
||||
gradient().map(ptf.gradient(), mapper);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user