cyclicTransform Class Reference

Cyclic plane tranformation. More...

Inheritance diagram for cyclicTransform:
Collaboration diagram for cyclicTransform:

Public Types

enum  transformTypes { UNSPECIFIED, NONE, ROTATIONAL, TRANSLATIONAL }
 

Public Member Functions

 TypeName ("cyclicTransform")
 Runtime type information. More...
 
 cyclicTransform (const bool defaultIsNone)
 
 cyclicTransform (const dictionary &dict, const bool defaultIsNone)
 
 cyclicTransform (const word &name, const vectorField &areas, const cyclicTransform &transform, const word &nbrName, const cyclicTransform &nbrTransform, const scalar matchTolerance)
 Construct from coupled patch data. Copies from the supplied. More...
 
 cyclicTransform (const word &name, const pointField &ctrs, const vectorField &areas, const cyclicTransform &transform, const word &nbrName, const pointField &nbrCtrs, const vectorField &nbrAreas, const cyclicTransform &nbrTransform, const scalar matchTolerance)
 Construct from coupled patch data. Copies from the supplied. More...
 
virtual ~cyclicTransform ()
 
transformTypes transformType () const
 Type of transform. More...
 
bool transformComplete () const
 Is the transform fully specified? More...
 
const transformertransform () const
 Return transformation between the coupled patches. More...
 
void write (Ostream &os) const
 Write the data to a dictionary. More...
 

Static Public Attributes

static const NamedEnum< transformTypes, 4 > transformTypeNames
 

Friends

cyclicTransform operator & (const transformer &t, const cyclicTransform &c)
 
cyclicTransform inv (const cyclicTransform &c)
 

Detailed Description

Cyclic plane tranformation.

Source files

Definition at line 50 of file cyclicTransform.H.

Member Enumeration Documentation

◆ transformTypes

Enumerator
UNSPECIFIED 
NONE 
ROTATIONAL 
TRANSLATIONAL 

Definition at line 54 of file cyclicTransform.H.

Constructor & Destructor Documentation

◆ cyclicTransform() [1/4]

cyclicTransform ( const bool  defaultIsNone)

Definition at line 193 of file cyclicTransform.C.

Referenced by cyclicTransform::cyclicTransform(), and NamedEnum< compressibleField, 8 >::names().

Here is the caller graph for this function:

◆ cyclicTransform() [2/4]

cyclicTransform ( const dictionary dict,
const bool  defaultIsNone 
)

Definition at line 208 of file cyclicTransform.C.

References cyclicTransform::cyclicTransform().

Here is the call graph for this function:

◆ cyclicTransform() [3/4]

cyclicTransform ( const word name,
const vectorField areas,
const cyclicTransform transform,
const word nbrName,
const cyclicTransform nbrTransform,
const scalar  matchTolerance 
)

Construct from coupled patch data. Copies from the supplied.

transform and neighbour transform. Suitable for geometrically dissimilar patches.

Definition at line 274 of file cyclicTransform.C.

References token::BEGIN_BLOCK, cyclicTransform::cyclicTransform(), Foam::decrIndent(), token::END_BLOCK, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::incrIndent(), Foam::indent(), Foam::inv(), Foam::mag(), Foam::nl, Foam::sqrt(), Foam::sum(), and cyclicTransform::write().

Here is the call graph for this function:

◆ cyclicTransform() [4/4]

cyclicTransform ( const word name,
const pointField ctrs,
const vectorField areas,
const cyclicTransform transform,
const word nbrName,
const pointField nbrCtrs,
const vectorField nbrAreas,
const cyclicTransform nbrTransform,
const scalar  matchTolerance 
)

Construct from coupled patch data. Copies from the supplied.

transform and neighbour transform, then tries to determine missing parts of the transformation automatically from the patch geometry. Suitable for geometrically similar patches only.

Definition at line 327 of file cyclicTransform.C.

References Foam::acos(), Foam::constant::physicoChemical::b, token::BEGIN_BLOCK, Foam::cmptMag(), Foam::decrIndent(), delta, Foam::dot(), token::END_BLOCK, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findMax(), forAll, Tensor< scalar >::I, Foam::incrIndent(), Foam::Info, Foam::inv(), Foam::mag(), Foam::max(), Foam::min(), Foam::nl, Foam::normalised(), quaternion::R(), R, Foam::radToDeg(), Foam::sign(), List< T >::size(), Foam::sqr(), Foam::sqrt(), Foam::sum(), and cyclicTransform::write().

Here is the call graph for this function:

◆ ~cyclicTransform()

~cyclicTransform ( )
virtual

Definition at line 498 of file cyclicTransform.C.

Member Function Documentation

◆ TypeName()

TypeName ( "cyclicTransform"  )

Runtime type information.

◆ transformType()

transformTypes transformType ( ) const
inline

Type of transform.

Definition at line 163 of file cyclicTransform.H.

Referenced by processorCyclicPolyPatch::transformType().

Here is the caller graph for this function:

◆ transformComplete()

bool transformComplete ( ) const
inline

Is the transform fully specified?

Definition at line 169 of file cyclicTransform.H.

◆ transform()

const transformer& transform ( ) const
inline

Return transformation between the coupled patches.

Definition at line 175 of file cyclicTransform.H.

References Foam::constant::universal::c, Foam::exit(), Foam::FatalError, FatalErrorInFunction, cyclicTransform::inv, cyclicTransform::operator &, and cyclicTransform::write().

Referenced by cyclicAMIPolyPatch::transform(), and cyclicPolyPatch::transform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write the data to a dictionary.

Definition at line 504 of file cyclicTransform.C.

References Foam::constant::physicoChemical::c1, Foam::normalised(), Ostream::precision(), cyclicTransform::ROTATIONAL, cyclicTransform::TRANSLATIONAL, and Foam::writeEntry().

Referenced by cyclicTransform::cyclicTransform(), cyclicTransform::transform(), cyclicPolyPatch::write(), and cyclicAMIPolyPatch::write().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator &

cyclicTransform operator& ( const transformer t,
const cyclicTransform c 
)
friend

◆ inv

cyclicTransform inv ( const cyclicTransform c)
friend

Member Data Documentation

◆ transformTypeNames

const NamedEnum< cyclicTransform::transformTypes, 4 > transformTypeNames
static

Definition at line 62 of file cyclicTransform.H.

Referenced by NamedEnum< compressibleField, 8 >::names().


The documentation for this class was generated from the following files: