OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

coordinateRotation Class Reference

A coordinate rotation specified per local axes and the base class for other rotation specifications. More...

Inheritance diagram for coordinateRotation:
Collaboration diagram for coordinateRotation:

List of all members.


Public Member Functions

 TypeName ("coordinateRotation")
 Runtime type information.
 coordinateRotation ()
 Construct null.
 coordinateRotation (const vector &axis, const vector &dir)
 Construct from 2 axes.
 coordinateRotation (const dictionary &)
 Construct from dictionary.
autoPtr< coordinateRotationclone () const
 Return clone.
 declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict))
virtual ~coordinateRotation ()
const tensorR () const
 Return local-to-global transformation tensor.
vectore1 () const
 Return local Cartesian x-axis.
vectore2 () const
 Return local Cartesian y-axis.
vectore3 () const
 Return local Cartesian z-axis.
void operator= (const dictionary &)
 assign from dictionary

Static Public Member Functions

static autoPtr
< coordinateRotation
New (const dictionary &dict)
 Select constructed from Istream.

Detailed Description

A coordinate rotation specified per local axes and the base class for other rotation specifications.

The rotation is defined by a combination of local vectors (e1/e2), (e2/e3) or (e3/e1). Any nonorthogonality will be absorbed into the second vector.

For convenience, the dictionary constructor forms allow a few shortcuts:

  • if the type is not otherwise specified, the type axes is implicit
  • if an axes specification (eg, e3/e1) is used, the coordinateRotation sub-dictionary can be dropped.

Specifying the rotation by an EulerCoordinateRotation (type "EulerRotation") or by a STARCDCoordinateRotation (type "STARCDRotation") requires the coordinateRotation sub-dictionary.

    coordinateRotation
    {
        type        STARCDRotation
        rotation    (0 0 90);
    }

  • the rotation angles are in degrees, unless otherwise explictly specified:

    coordinateRotation
    {
        type        STARCDRotation
        degrees     false;
        rotation    (0 0 3.141592654);
    }

Deprecated:
Specifying the local vectors as an axis (corresponding to e3) and a direction (corresponding to e1), is allowed for backwards compatibility, but this terminology is generally a bit confusing.

Definition at line 79 of file coordinateRotation.H.


Constructor & Destructor Documentation

Construct null.

Definition at line 92 of file coordinateRotation.C.

coordinateRotation ( const vector axis,
const vector dir 
)

Construct from 2 axes.

Definition at line 99 of file coordinateRotation.C.

coordinateRotation ( const dictionary dict  ) 

Construct from dictionary.

Definition at line 111 of file coordinateRotation.C.

virtual ~coordinateRotation (  )  [inline, virtual]

Definition at line 154 of file coordinateRotation.H.


Member Function Documentation

TypeName ( "coordinateRotation"   ) 

Runtime type information.

autoPtr<coordinateRotation> clone (  )  const [inline]

Return clone.

Definition at line 124 of file coordinateRotation.H.

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

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

Select constructed from Istream.

Definition at line 123 of file coordinateRotation.C.

const tensor& R (  )  const [inline]

Return local-to-global transformation tensor.

Definition at line 161 of file coordinateRotation.H.

vector& e1 (  )  const [inline]

Return local Cartesian x-axis.

Definition at line 167 of file coordinateRotation.H.

vector& e2 (  )  const [inline]

Return local Cartesian y-axis.

Definition at line 173 of file coordinateRotation.H.

vector& e3 (  )  const [inline]

Return local Cartesian z-axis.

Definition at line 179 of file coordinateRotation.H.

void operator= ( const dictionary rhs  ) 

assign from dictionary

Definition at line 167 of file coordinateRotation.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd