mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: fixedFluxPressure: map if no internal field. Fixes #61
This commit is contained in:
@ -86,15 +86,26 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField
|
||||
gradient().map(ptf.gradient(), mapper);
|
||||
|
||||
// Evaluate the value field from the gradient if the internal field is valid
|
||||
if (notNull(iF) && iF.size())
|
||||
if (notNull(iF))
|
||||
{
|
||||
scalarField::operator=
|
||||
(
|
||||
//patchInternalField() + gradient()/patch().deltaCoeffs()
|
||||
// ***HGW Hack to avoid the construction of mesh.deltaCoeffs
|
||||
// which fails for AMI patches for some mapping operations
|
||||
patchInternalField() + gradient()*(patch().nf() & patch().delta())
|
||||
);
|
||||
if (iF.size())
|
||||
{
|
||||
// Note: cannot ask for nf() if zero faces
|
||||
|
||||
scalarField::operator=
|
||||
(
|
||||
//patchInternalField() + gradient()/patch().deltaCoeffs()
|
||||
// ***HGW Hack to avoid the construction of mesh.deltaCoeffs
|
||||
// which fails for AMI patches for some mapping operations
|
||||
patchInternalField()
|
||||
+ gradient()*(patch().nf() & patch().delta())
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Enforce mapping of values so we have a valid starting value
|
||||
this->map(ptf, mapper);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user