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

fixedFluxPressure: avoid deltaCoeffs() during mapping as it causes problems with AMI

parent 1348eabe
No related branches found
No related tags found
No related merge requests found
...@@ -59,17 +59,17 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField ...@@ -59,17 +59,17 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField
gradient() = 0.0; gradient() = 0.0;
gradient().map(ptf.gradient(), mapper); gradient().map(ptf.gradient(), mapper);
// Unfortunately we cannot use the deltaCoeffs in a mapper constructor // Evaluate the value field from the gradient if the internal field is valid
// since this triggers AMI construction which is a problem in decomposing if (&iF && iF.size())
// cases (the individual processor does not make sense)
// So for now map the values
if (&iF)
{ {
scalarField::operator=(patchInternalField()); 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())
);
} }
map(ptf, mapper);
} }
......
...@@ -161,7 +161,6 @@ void Foam::fvPatch::movePoints() ...@@ -161,7 +161,6 @@ void Foam::fvPatch::movePoints()
const Foam::scalarField& Foam::fvPatch::deltaCoeffs() const const Foam::scalarField& Foam::fvPatch::deltaCoeffs() const
{ {
return boundaryMesh().mesh().deltaCoeffs().boundaryField()[index()]; return boundaryMesh().mesh().deltaCoeffs().boundaryField()[index()];
//return boundaryMesh().mesh().nonOrthDeltaCoeffs().boundaryField()[index()];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment