mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: set the oriented flag - see #1324
This commit is contained in:
@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user