Fixed GGI transform
This commit is contained in:
parent
58e2ce9500
commit
d0a6150dc3
6 changed files with 5 additions and 34 deletions
|
@ -95,24 +95,8 @@ public:
|
|||
scalarField& psiInternal,
|
||||
const direction cmpt
|
||||
) const;
|
||||
|
||||
|
||||
//- Transform given patch internal field
|
||||
template<class Type>
|
||||
void transformCoupleField
|
||||
(
|
||||
Field<Type>& psiInternal
|
||||
) const;
|
||||
};
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
//- Transform given patch internal field
|
||||
template<>
|
||||
void ggiLduInterfaceField::transformCoupleField
|
||||
(
|
||||
scalarField& psiInternal
|
||||
) const;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
@ -120,12 +104,6 @@ void ggiLduInterfaceField::transformCoupleField
|
|||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
# include "ggiLduInterfaceFieldTemplates.C"
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
|
@ -241,7 +241,7 @@ const Foam::cyclicGgiPolyPatch& Foam::cyclicGgiPolyPatch::cyclicShadow() const
|
|||
}
|
||||
|
||||
|
||||
void Foam::cyclicGgiPolyPatch::calcTransforms()
|
||||
void Foam::cyclicGgiPolyPatch::calcTransforms() const
|
||||
{
|
||||
if (active() && debug)
|
||||
{
|
||||
|
|
|
@ -75,7 +75,7 @@ class cyclicGgiPolyPatch
|
|||
|
||||
//- Calculate cyclic transforms (rotation and translation)
|
||||
// Virtual over-ride for base GGI patch. HJ, 14/Jan/2009
|
||||
virtual void calcTransforms();
|
||||
virtual void calcTransforms() const;
|
||||
|
||||
//- Check definition: angles and offsets
|
||||
void checkDefinition() const;
|
||||
|
|
|
@ -859,7 +859,7 @@ void Foam::ggiPolyPatch::updateMesh()
|
|||
}
|
||||
|
||||
|
||||
void Foam::ggiPolyPatch::calcTransforms()
|
||||
void Foam::ggiPolyPatch::calcTransforms() const
|
||||
{
|
||||
// Simplest GGI: no transform or separation. HJ, 24/Oct/2008
|
||||
forwardT_.setSize(0);
|
||||
|
|
|
@ -127,7 +127,7 @@ class ggiPolyPatch
|
|||
void calcReconFaceCellCentres() const;
|
||||
|
||||
//- Force calculation of transformation tensors
|
||||
virtual void calcTransforms();
|
||||
virtual void calcTransforms() const;
|
||||
|
||||
|
||||
// Parallel communication optimisation, stored on master processor
|
||||
|
|
|
@ -106,14 +106,7 @@ void cyclicGgiFvPatchField<vector>::initInterfaceMatrixUpdate
|
|||
sField[i] = psiInternal[sfc[i]];
|
||||
}
|
||||
|
||||
// Transform according to the transformation tensor, using the slave
|
||||
// side transform. Warning: forwardT() corresponds to the slave
|
||||
// patch. HJ, 12/Jan/2009
|
||||
transformCoupleField(sField);
|
||||
|
||||
// Note: scalar interpolate does not get a transform, so this is safe
|
||||
// HJ, 12/Jan/2009
|
||||
// TODO - IC, Is this safe for vectors?
|
||||
// Transformation is handled in interpolation. HJ, 7/Jan/2009
|
||||
Field<vector> pnf = cyclicGgiPatch_.interpolate(sField);
|
||||
|
||||
if (coeffs.activeType() == blockCoeffBase::SCALAR)
|
||||
|
|
Reference in a new issue