|
Chombo + EB + MF
3.2
|
Coordinate transformations. More...
#include <FourthOrderMappedFineInterpSup.H>
Public Member Functions | |
| CoordTransform () | |
| Default constructor. More... | |
| CoordTransform (const int *const a_ctm) | |
| Constructor taking a compact description of the transformation. More... | |
| CoordTransform (const CoordTransform &a_ct) | |
| Copy constructor. More... | |
| CoordTransform & | operator= (const CoordTransform &a_ct) |
| Assignment. More... | |
| void | expand (const int *const a_ctm) |
| Defines the transformation by expanding a compact description. More... | |
| IntVect | transform (const IntVect &a_iv) const |
| Transforms an IntVect to the transformed space. More... | |
| int | indexAt (const int a_i) const |
| Returns the transformed direction associated with direction 'i'. More... | |
| int | signAt (const int a_i) const |
| Returns the sign of the transformation associated with direction 'i'. More... | |
| const int * | xctm () const |
| Returns the expanded transformation description. More... | |
| void | reverse () |
| Reverse the transformation to the other way. More... | |
Private Member Functions | |
| int | sign (const int a_i) const |
| Sign function. More... | |
Private Attributes | |
| int | m_xctm [2 *SpaceDim] |
Coordinate transformations.
Provides for coordinate transformations. The transformation is input in compact form where a vector of size SpaceDim describes for each direction, the corresponding direction (including sign) in transformed space. Directions are number from 1, e.g., [-2, -1, -3] transforms i -> -j, j -> -i, and k -> -k. For transformation of IntVects, all coordinate systems are "fixed" at cell IntVect::Zero such that the transformation of IntVect::Zero is also IntVect::Zero. See http://www.grc.nasa.gov/WWW/cgns/sids/cnct.html#GridConnectivity1to1 for a more detailed explanation on transformations.
CHF_CONST_I1D(ct.xctm(), 2*SpaceDim)and then used with a routine that duplicates CoordTransform::transform.
|
inline |
|
inline |
Constructor taking a compact description of the transformation.
| [in] | a_ctm | Compact description of the transformation |
References expand().
|
inline |
|
inline |
|
inline |
Defines the transformation by expanding a compact description.
| [in] | a_ctm | Compact description of the transformation |
References m_xctm, sign(), and SpaceDim.
Referenced by CoordTransform().
|
inline |
Returns the transformed direction associated with direction 'i'.
| [in] | a_i | Input direction |
References m_xctm.
|
inline |
Returns the sign of the transformation associated with direction 'i'.
| [in] | a_i | Input direction |
References m_xctm.
|
inline |
Returns the expanded transformation description.
References m_xctm.
|
inline |
|
inlineprivate |
Sign function.
Referenced by expand().
|
private |
An expanded description of the transformation. For direction i: m_xctm[2*i] = new direction m_xctm[2*i+1] = sign
Referenced by CoordTransform(), expand(), indexAt(), operator=(), reverse(), signAt(), transform(), and xctm().
1.8.13