ENH: Updated fixedJump boundary conditions

This commit is contained in:
andy
2012-10-25 10:02:42 +01:00
parent bb4cde58e3
commit ae3b2d9192
4 changed files with 41 additions and 33 deletions

View File

@ -92,6 +92,23 @@ Foam::fixedJumpFvPatchField<Type>::fixedJumpFvPatchField
// * * * * * * * * * * * * * * * 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>
void Foam::fixedJumpFvPatchField<Type>::autoMap
(

View File

@ -141,21 +141,8 @@ public:
// Access
//- Return the "jump" across the patch.
virtual tmp<Field<Type> > jump() const
{
if (this->cyclicPatch().owner())
{
return jump_;
}
else
{
return refCast<const fixedJumpFvPatchField<Type> >
(
this->neighbourPatchField()
).jump();
}
}
//- Return the "jump" across the patch
virtual tmp<Field<Type> > jump() const;
// Mapping functions

View File

@ -91,6 +91,26 @@ Foam::fixedJumpAMIFvPatchField<Type>::fixedJumpAMIFvPatchField
// * * * * * * * * * * * * * * * 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>
void Foam::fixedJumpAMIFvPatchField<Type>::autoMap
(

View File

@ -135,24 +135,8 @@ public:
// Access
//- Return the "jump" across the patch.
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);
}
}
//- Return the "jump" across the patch
virtual tmp<Field<Type> > jump() const;
// Mapping functions