Public Member Functions | Protected Member Functions | List of all members
cartesianCS Class Reference

Cylindrical coordinate system. More...

Inheritance diagram for cartesianCS:
Inheritance graph
[legend]
Collaboration diagram for cartesianCS:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("cartesian")
 Runtime type information. More...
 
 cartesianCS ()
 Construct null. More...
 
 cartesianCS (const coordinateSystem &)
 Construct copy. More...
 
 cartesianCS (const word &name, const coordinateSystem &)
 Construct copy with a different name. More...
 
 cartesianCS (const word &name, const point &origin, const coordinateRotation &)
 Construct from origin and rotation. More...
 
 cartesianCS (const word &name, const point &origin, const vector &axis, const vector &dirn)
 Construct from origin and 2 axes. More...
 
 cartesianCS (const word &, const dictionary &)
 Construct from dictionary. More...
 
 cartesianCS (const objectRegistry &, const dictionary &)
 Construct from dictionary and objectRegistry. More...
 
virtual ~cartesianCS ()
 Destructor. More...
 
- Public Member Functions inherited from coordinateSystem
 TypeName ("coordinateSystem")
 Runtime type information. More...
 
 coordinateSystem ()
 Construct null. This is equivalent to an identity coordinateSystem. More...
 
 coordinateSystem (const word &name, const coordinateSystem &)
 Construct copy with a different name. More...
 
 coordinateSystem (const word &name, const point &origin, const coordinateRotation &)
 Construct from origin and rotation. More...
 
 coordinateSystem (const word &name, const point &origin, const vector &axis, const vector &dirn)
 Construct from origin and 2 axes. More...
 
 coordinateSystem (const word &name, const dictionary &)
 Construct from dictionary with a given name. More...
 
 coordinateSystem (const dictionary &)
 Construct from dictionary with default name. More...
 
 coordinateSystem (const objectRegistry &, const dictionary &)
 Construct from dictionary (default name) More...
 
 coordinateSystem (Istream &)
 Construct from Istream. More...
 
autoPtr< coordinateSystem > clone () const
 Return clone. More...
 
 declareRunTimeSelectionTable (autoPtr, coordinateSystem, dictionary,(const objectRegistry &obr, const dictionary &dict),(obr, dict))
 
virtual ~coordinateSystem ()
 Destructor. More...
 
const word & name () const
 Return name. More...
 
string & note ()
 Return non-constant access to the optional note. More...
 
const string & note () const
 Return the optional note. More...
 
const point & origin () const
 Return origin. More...
 
const coordinateRotation & R () const
 Return const reference to co-ordinate rotation. More...
 
coordinateRotation & R ()
 Return non const reference to co-ordinate rotation. More...
 
const coordinateRotation & R (const polyMesh &mesh, const labelList &cells)
 Update and return the co-ordinate roation for a list of cells. More...
 
virtual dictionary dict (bool ignoreType=false) const
 Return as dictionary of entries. More...
 
void rename (const word &newName)
 Rename. More...
 
point & origin ()
 Edit access to origin. More...
 
virtual void clear ()
 Reset origin and rotation to an identity coordinateSystem. More...
 
virtual void write (Ostream &) const
 Write. More...
 
void writeDict (Ostream &, bool subDict=true) const
 Write dictionary. More...
 
point globalPosition (const point &local) const
 Convert from position in local coordinate system to global. More...
 
tmp< pointField > globalPosition (const pointField &local) const
 Convert from position in local coordinate system to global. More...
 
vector globalVector (const vector &local) const
 Convert from vector components in local coordinate system to. More...
 
tmp< vectorField > globalVector (const vectorField &local) const
 Convert from vector components in local coordinate system to. More...
 
point localPosition (const point &global) const
 Convert from global Cartesian position to position in local. More...
 
tmp< pointField > localPosition (const pointField &global) const
 Convert from global Cartesian position to position in local. More...
 
vector localVector (const vector &global) const
 Convert from global Cartesian vector to components in local. More...
 
tmp< vectorField > localVector (const vectorField &global) const
 Convert from global Cartesian vector to components in local. More...
 

Protected Member Functions

virtual vector localToGlobal (const vector &, bool translate) const
 Convert from local coordinate system to the global Cartesian system. More...
 
virtual tmp< vectorField > localToGlobal (const vectorField &, bool translate) const
 Convert from local coordinate system to the global Cartesian system. More...
 
virtual vector globalToLocal (const vector &, bool translate) const
 Convert from global Cartesian system to the local coordinate system. More...
 
virtual tmp< vectorField > globalToLocal (const vectorField &, bool translate) const
 Convert from global Cartesian system to the local coordinate system. More...
 
- Protected Member Functions inherited from coordinateSystem
void init (const dictionary &)
 Init from dict and obr. More...
 
void init (const dictionary &, const objectRegistry &)
 Init from dictionary. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from coordinateSystem
static autoPtr< coordinateSystem > New (const objectRegistry &obr, const dictionary &dict)
 Select constructed from dictionary and objectRegistry. More...
 
static autoPtr< coordinateSystem > New (const dictionary &dict)
 Select constructed from dictionary. More...
 
static autoPtr< coordinateSystem > New (Istream &is)
 Select constructed from Istream. More...
 

Detailed Description

Cylindrical coordinate system.

Source files

Definition at line 49 of file cartesianCS.H.

Constructor & Destructor Documentation

Construct null.

Definition at line 43 of file cartesianCS.C.

Referenced by cartesianCS::cartesianCS().

Here is the caller graph for this function:

cartesianCS ( const coordinateSystem &  cs)

Construct copy.

Definition at line 50 of file cartesianCS.C.

References cartesianCS::cartesianCS().

Here is the call graph for this function:

cartesianCS ( const word &  name,
const coordinateSystem &  cs 
)

Construct copy with a different name.

Definition at line 59 of file cartesianCS.C.

References cartesianCS::cartesianCS().

Here is the call graph for this function:

cartesianCS ( const word &  name,
const point &  origin,
const coordinateRotation &  cr 
)

Construct from origin and rotation.

Definition at line 69 of file cartesianCS.C.

References cartesianCS::cartesianCS().

Here is the call graph for this function:

cartesianCS ( const word &  name,
const point &  origin,
const vector &  axis,
const vector &  dirn 
)

Construct from origin and 2 axes.

Definition at line 80 of file cartesianCS.C.

References cartesianCS::cartesianCS().

Here is the call graph for this function:

cartesianCS ( const word &  name,
const dictionary &  dict 
)

Construct from dictionary.

Definition at line 92 of file cartesianCS.C.

References cartesianCS::cartesianCS().

Here is the call graph for this function:

cartesianCS ( const objectRegistry &  obr,
const dictionary &  dict 
)

Construct from dictionary and objectRegistry.

Definition at line 102 of file cartesianCS.C.

~cartesianCS ( )
virtual

Destructor.

Definition at line 113 of file cartesianCS.C.

References cartesianCS::localToGlobal().

Here is the call graph for this function:

Member Function Documentation

Foam::vector localToGlobal ( const vector &  local,
bool  translate 
) const
protectedvirtual

Convert from local coordinate system to the global Cartesian system.

with optional translation for the origin

Reimplemented from coordinateSystem.

Definition at line 121 of file cartesianCS.C.

References coordinateSystem::localToGlobal().

Referenced by cartesianCS::~cartesianCS().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::vectorField > localToGlobal ( const vectorField &  local,
bool  translate 
) const
protectedvirtual

Convert from local coordinate system to the global Cartesian system.

with optional translation for the origin

Reimplemented from coordinateSystem.

Definition at line 131 of file cartesianCS.C.

References cartesianCS::globalToLocal(), and coordinateSystem::localToGlobal().

Here is the call graph for this function:

Foam::vector globalToLocal ( const vector &  global,
bool  translate 
) const
protectedvirtual

Convert from global Cartesian system to the local coordinate system.

with optional translation for the origin

Reimplemented from coordinateSystem.

Definition at line 141 of file cartesianCS.C.

References coordinateSystem::globalToLocal().

Referenced by cartesianCS::localToGlobal().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tmp< Foam::vectorField > globalToLocal ( const vectorField &  global,
bool  translate 
) const
protectedvirtual

Convert from global Cartesian system to the local coordinate system.

with optional translation for the origin

Reimplemented from coordinateSystem.

Definition at line 151 of file cartesianCS.C.

References coordinateSystem::globalToLocal().

Here is the call graph for this function:

TypeName ( "cartesian"  )

Runtime type information.


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