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< coordinateSystemclone () const
 Return clone. More...
 
 declareRunTimeSelectionTable (autoPtr, coordinateSystem, dictionary,(const objectRegistry &obr, const dictionary &dict),(obr, dict))
 
virtual ~coordinateSystem ()
 Destructor. More...
 
const wordname () const
 Return name. More...
 
stringnote ()
 Return non-constant access to the optional note. More...
 
const stringnote () const
 Return the optional note. More...
 
const pointorigin () const
 Return origin. More...
 
const coordinateRotationR () const
 Return const reference to co-ordinate rotation. More...
 
coordinateRotationR ()
 Return non const reference to co-ordinate rotation. More...
 
const coordinateRotationR (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...
 
pointorigin ()
 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< pointFieldglobalPosition (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< vectorFieldglobalVector (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< pointFieldlocalPosition (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< vectorFieldlocalVector (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< vectorFieldlocalToGlobal (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< vectorFieldglobalToLocal (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< coordinateSystemNew (const objectRegistry &obr, const dictionary &dict)
 Select constructed from dictionary and objectRegistry. More...
 
static autoPtr< coordinateSystemNew (const dictionary &dict)
 Select constructed from dictionary. More...
 
static autoPtr< coordinateSystemNew (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

◆ cartesianCS() [1/7]

Construct null.

Definition at line 43 of file cartesianCS.C.

Referenced by cartesianCS::cartesianCS().

Here is the caller graph for this function:

◆ cartesianCS() [2/7]

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() [3/7]

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() [4/7]

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() [5/7]

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() [6/7]

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() [7/7]

cartesianCS ( const objectRegistry obr,
const dictionary dict 
)

Construct from dictionary and objectRegistry.

Definition at line 102 of file cartesianCS.C.

◆ ~cartesianCS()

~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

◆ localToGlobal() [1/2]

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:

◆ localToGlobal() [2/2]

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:

◆ globalToLocal() [1/2]

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:

◆ globalToLocal() [2/2]

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()

TypeName ( "cartesian"  )

Runtime type information.


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