mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: jump should be negated on slave patch.
This commit is contained in:
@ -106,6 +106,10 @@ tmp<Field<Type> > jumpCyclicFvPatchField<Type>::patchNeighbourField() const
|
|||||||
Field<Type>& pnf = tpnf();
|
Field<Type>& pnf = tpnf();
|
||||||
|
|
||||||
tmp<Field<scalar> > tjf = jump();
|
tmp<Field<scalar> > tjf = jump();
|
||||||
|
if (!this->cyclicPatch().owner())
|
||||||
|
{
|
||||||
|
tjf = -tjf;
|
||||||
|
}
|
||||||
const Field<scalar>& jf = tjf();
|
const Field<scalar>& jf = tjf();
|
||||||
|
|
||||||
if (this->doTransform())
|
if (this->doTransform())
|
||||||
@ -149,6 +153,10 @@ void jumpCyclicFvPatchField<Type>::updateInterfaceMatrix
|
|||||||
if (&psiInternal == &this->internalField())
|
if (&psiInternal == &this->internalField())
|
||||||
{
|
{
|
||||||
tmp<Field<scalar> > tjf = jump();
|
tmp<Field<scalar> > tjf = jump();
|
||||||
|
if (!this->cyclicPatch().owner())
|
||||||
|
{
|
||||||
|
tjf = -tjf;
|
||||||
|
}
|
||||||
const Field<scalar>& jf = tjf();
|
const Field<scalar>& jf = tjf();
|
||||||
|
|
||||||
forAll(*this, facei)
|
forAll(*this, facei)
|
||||||
|
|||||||
Reference in New Issue
Block a user