Skip to content
Snippets Groups Projects
Commit ae3b2d91 authored by andy's avatar andy
Browse files

ENH: Updated fixedJump boundary conditions

parent bb4cde58
Branches
Tags
No related merge requests found
......@@ -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
(
......
......@@ -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
......
......@@ -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
(
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment