mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated fixedJump boundary conditions
This commit is contained in:
@ -92,6 +92,23 @@ Foam::fixedJumpFvPatchField<Type>::fixedJumpFvPatchField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class Type>
|
||||||
|
Foam::tmp<Foam::Field<Type> > Foam::fixedJumpFvPatchField<Type>::jump() const
|
||||||
|
{
|
||||||
|
if (this->cyclicPatch().owner())
|
||||||
|
{
|
||||||
|
return jump_;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return refCast<const fixedJumpFvPatchField<Type> >
|
||||||
|
(
|
||||||
|
this->neighbourPatchField()
|
||||||
|
).jump();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void Foam::fixedJumpFvPatchField<Type>::autoMap
|
void Foam::fixedJumpFvPatchField<Type>::autoMap
|
||||||
(
|
(
|
||||||
|
|||||||
@ -141,21 +141,8 @@ public:
|
|||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return the "jump" across the patch.
|
//- Return the "jump" across the patch
|
||||||
virtual tmp<Field<Type> > jump() const
|
virtual tmp<Field<Type> > jump() const;
|
||||||
{
|
|
||||||
if (this->cyclicPatch().owner())
|
|
||||||
{
|
|
||||||
return jump_;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return refCast<const fixedJumpFvPatchField<Type> >
|
|
||||||
(
|
|
||||||
this->neighbourPatchField()
|
|
||||||
).jump();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Mapping functions
|
// Mapping functions
|
||||||
|
|||||||
@ -91,6 +91,26 @@ Foam::fixedJumpAMIFvPatchField<Type>::fixedJumpAMIFvPatchField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class Type>
|
||||||
|
Foam::tmp<Foam::Field<Type> > Foam::fixedJumpAMIFvPatchField<Type>::jump() const
|
||||||
|
{
|
||||||
|
if (this->cyclicAMIPatch().owner())
|
||||||
|
{
|
||||||
|
return jump_;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
const fixedJumpAMIFvPatchField& nbrPatch =
|
||||||
|
refCast<const fixedJumpAMIFvPatchField<Type> >
|
||||||
|
(
|
||||||
|
this->neighbourPatchField()
|
||||||
|
);
|
||||||
|
|
||||||
|
return this->cyclicAMIPatch().interpolate(nbrPatch.jump());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void Foam::fixedJumpAMIFvPatchField<Type>::autoMap
|
void Foam::fixedJumpAMIFvPatchField<Type>::autoMap
|
||||||
(
|
(
|
||||||
|
|||||||
@ -135,24 +135,8 @@ public:
|
|||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return the "jump" across the patch.
|
//- Return the "jump" across the patch
|
||||||
virtual tmp<Field<Type> > jump() const
|
virtual tmp<Field<Type> > jump() const;
|
||||||
{
|
|
||||||
if (this->cyclicAMIPatch().owner())
|
|
||||||
{
|
|
||||||
return jump_;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
tmp<Field<Type> > nbrJump =
|
|
||||||
refCast<const fixedJumpAMIFvPatchField<Type> >
|
|
||||||
(
|
|
||||||
this->neighbourPatchField()
|
|
||||||
).jump();
|
|
||||||
|
|
||||||
return this->cyclicAMIPatch().interpolate(nbrJump);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Mapping functions
|
// Mapping functions
|
||||||
|
|||||||
Reference in New Issue
Block a user