BUG: set the oriented flag - see #1324

This commit is contained in:
Andrew Heather
2019-06-05 14:12:51 +01:00
parent fba543a29f
commit 4058bf973a

View File

@ -270,9 +270,7 @@ Foam::BlendedInterfacialModel<modelType>::F() const
f2 = blending_.f2(pair1In2_.dispersed(), pair2In1_.dispersed());
}
tmp<GeometricField<Type, fvPatchField, volMesh>> x
(
new GeometricField<Type, fvPatchField, volMesh>
auto x = tmp<GeometricField<Type, fvPatchField, volMesh>>::New
(
IOobject
(
@ -285,7 +283,6 @@ Foam::BlendedInterfacialModel<modelType>::F() const
),
pair_.phase1().mesh(),
dimensioned<Type>(modelType::dimF, Zero)
)
);
if (model_.valid())
@ -338,9 +335,7 @@ Foam::BlendedInterfacialModel<modelType>::Ff() const
);
}
tmp<surfaceScalarField> x
(
new surfaceScalarField
auto x = tmp<surfaceScalarField>::New
(
IOobject
(
@ -353,9 +348,10 @@ Foam::BlendedInterfacialModel<modelType>::Ff() const
),
pair_.phase1().mesh(),
dimensionedScalar(modelType::dimF*dimArea, Zero)
)
);
x.ref().setOriented();
if (model_.valid())
{
x.ref() += model_->Ff()*(f1() - f2());