mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: GAMG: support for cyclicSlip
This commit is contained in:
@ -45,6 +45,25 @@ namespace Foam
|
|||||||
cyclicGAMGInterface,
|
cyclicGAMGInterface,
|
||||||
Istream
|
Istream
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Add under name cyclicSlip
|
||||||
|
addNamedToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
GAMGInterface,
|
||||||
|
cyclicGAMGInterface,
|
||||||
|
lduInterface,
|
||||||
|
cyclicSlip
|
||||||
|
);
|
||||||
|
addNamedToRunTimeSelectionTable
|
||||||
|
(
|
||||||
|
GAMGInterface,
|
||||||
|
cyclicGAMGInterface,
|
||||||
|
Istream,
|
||||||
|
cyclicSlip
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -61,15 +80,7 @@ Foam::cyclicGAMGInterface::cyclicGAMGInterface
|
|||||||
const label coarseComm
|
const label coarseComm
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
GAMGInterface
|
GAMGInterface(index, coarseInterfaces),
|
||||||
(
|
|
||||||
index,
|
|
||||||
coarseInterfaces
|
|
||||||
// fineInterface,
|
|
||||||
// localRestrictAddressing,
|
|
||||||
// neighbourRestrictAddressing
|
|
||||||
),
|
|
||||||
//fineCyclicInterface_(refCast<const cyclicLduInterface>(fineInterface))
|
|
||||||
neighbPatchID_
|
neighbPatchID_
|
||||||
(
|
(
|
||||||
refCast<const cyclicLduInterface>(fineInterface).neighbPatchID()
|
refCast<const cyclicLduInterface>(fineInterface).neighbPatchID()
|
||||||
@ -169,11 +180,7 @@ Foam::tmp<Foam::labelField> Foam::cyclicGAMGInterface::internalFieldTransfer
|
|||||||
const labelUList& iF
|
const labelUList& iF
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
const cyclicGAMGInterface& nbr =
|
const cyclicGAMGInterface& nbr = neighbPatch();
|
||||||
//dynamic_cast<const cyclicGAMGInterface&>
|
|
||||||
//(
|
|
||||||
neighbPatch();
|
|
||||||
//);
|
|
||||||
const labelUList& nbrFaceCells = nbr.faceCells();
|
const labelUList& nbrFaceCells = nbr.faceCells();
|
||||||
|
|
||||||
tmp<labelField> tpnf(new labelField(size()));
|
tmp<labelField> tpnf(new labelField(size()));
|
||||||
|
|||||||
@ -54,10 +54,6 @@ class cyclicGAMGInterface
|
|||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
// //- Reference tor the cyclicLduInterface from which this is
|
|
||||||
// // agglomerated
|
|
||||||
// const cyclicLduInterface& fineCyclicInterface_;
|
|
||||||
|
|
||||||
//- Neigbour patch number
|
//- Neigbour patch number
|
||||||
label neighbPatchID_;
|
label neighbPatchID_;
|
||||||
|
|
||||||
@ -131,13 +127,11 @@ public:
|
|||||||
//- Return neigbour processor number
|
//- Return neigbour processor number
|
||||||
virtual label neighbPatchID() const
|
virtual label neighbPatchID() const
|
||||||
{
|
{
|
||||||
//return fineCyclicInterface_.neighbPatchID();
|
|
||||||
return neighbPatchID_;
|
return neighbPatchID_;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool owner() const
|
virtual bool owner() const
|
||||||
{
|
{
|
||||||
//return fineCyclicInterface_.owner();
|
|
||||||
return owner_;
|
return owner_;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,14 +146,12 @@ public:
|
|||||||
//- Return face transformation tensor
|
//- Return face transformation tensor
|
||||||
virtual const tensorField& forwardT() const
|
virtual const tensorField& forwardT() const
|
||||||
{
|
{
|
||||||
//return fineCyclicInterface_.forwardT();
|
|
||||||
return forwardT_;
|
return forwardT_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return neighbour-cell transformation tensor
|
//- Return neighbour-cell transformation tensor
|
||||||
virtual const tensorField& reverseT() const
|
virtual const tensorField& reverseT() const
|
||||||
{
|
{
|
||||||
//return fineCyclicInterface_.reverseT();
|
|
||||||
return reverseT_;
|
return reverseT_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user