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