coordinateRotation Class Referenceabstract

User specification of a coordinate rotation. More...

Inheritance diagram for coordinateRotation:
[legend]

Public Member Functions

 TypeNameNoDebug ("coordinateRotation")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict))
 
virtual autoPtr< coordinateRotationclone () const =0
 Construct and return a clone. More...
 
virtual ~coordinateRotation ()=default
 Destructor. More...
 
virtual void clear ()=0
 Reset specification. More...
 
virtual tensor R () const =0
 Calculate and return the rotation tensor. More...
 
virtual void write (Ostream &os) const =0
 Write information. More...
 
virtual void writeEntry (const word &keyword, Ostream &os) const =0
 Write dictionary entry. More...
 

Static Public Member Functions

static autoPtr< coordinateRotationNew (const dictionary &dict)
 Select constructed from dictionary. More...
 

Static Protected Member Functions

static vector findOrthogonal (const vector &axis)
 Determine best-guess for an orthogonal axis. More...
 

Detailed Description

User specification of a coordinate rotation.

rotation
{
    type    axes
    e1      (1 0 0);
    e2      (0 1 0);
}

Types of coordinateRotations:

  1. none
  2. axes
  3. axisAngle
  4. cylindrical
  5. euler
  6. starcd
Source files

Definition at line 78 of file coordinateRotation.H.

Constructor & Destructor Documentation

◆ ~coordinateRotation()

virtual ~coordinateRotation ( )
virtualdefault

Destructor.

Member Function Documentation

◆ findOrthogonal()

Foam::vector findOrthogonal ( const vector axis)
staticprotected

Determine best-guess for an orthogonal axis.

Definition at line 43 of file coordinateRotation.C.

References VectorSpace< Form, Cmpt, Ncmpts >::component(), Foam::mag(), VectorSpace< Vector< scalar >, scalar, 3 >::nComponents, and Foam::Zero.

Here is the call graph for this function:

◆ TypeNameNoDebug()

TypeNameNoDebug ( "coordinateRotation"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
coordinateRotation  ,
dictionary  ,
(const dictionary &dict ,
(dict  
)

◆ clone()

virtual autoPtr<coordinateRotation> clone ( ) const
pure virtual

Construct and return a clone.

Implemented in axes, euler, axisAngle, starcd, cylindrical, identity, and specified.

◆ New()

Foam::autoPtr< Foam::coordinateRotation > New ( const dictionary dict)
static

Select constructed from dictionary.

Definition at line 71 of file coordinateRotation.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and dictionary::get().

Referenced by coordinateSystem::assign().

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

◆ clear()

virtual void clear ( )
pure virtual

Reset specification.

Implemented in axes, euler, axisAngle, starcd, identity, and specified.

◆ R()

virtual tensor R ( ) const
pure virtual

Calculate and return the rotation tensor.

Implemented in axes, euler, axisAngle, starcd, identity, and specified.

Referenced by coordinateSystem::rotation().

Here is the caller graph for this function:

◆ write()

virtual void write ( Ostream os) const
pure virtual

Write information.

Implemented in axes, euler, axisAngle, starcd, cylindrical, identity, and specified.

◆ writeEntry()

virtual void writeEntry ( const word keyword,
Ostream os 
) const
pure virtual

Write dictionary entry.

Implemented in axes, euler, axisAngle, starcd, cylindrical, identity, and specified.


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