|
Chombo + EB + MF
3.2
|
Class to describe transformation of SpaceDim-vectors, typically from one block to another. More...
#include <VectorTransformation.H>
Public Member Functions | |
| VectorTransformation () | |
| null constructor leaves object in undefined state More... | |
| void | setComponent (int a_dirDst, int a_dirSrc, Real a_val) |
| set one component of transformation matrix More... | |
| Real | component (int a_dirDst, int a_dirSrc) const |
| const Real * | dataPtr () const |
| only for sending stuff to Fortran More... | |
| RealVect | transform (const RealVect &a_vec) const |
| apply this tranformation to vector More... | |
| void | addTransformFab (FArrayBox &a_dstFab, const FArrayBox &a_srcFab, const Box &a_bx, Real a_weight=1.) const |
| increment a vector-transformed cell-centered FAB More... | |
| void | addTransformFabAvg (FArrayBox &a_dstFab, const FArrayBox &a_srcFab, const FArrayBox &a_gradFab, const Vector< VectorTransformation > &a_vecTransformGrad, const Box &a_bx, Real a_weight=1.) const |
| increment a vector-transformed cell-averaged FAB More... | |
| VectorTransformation | inverse () const |
| VectorTransformation | compose (const VectorTransformation &a_next) const |
| VectorTransformation & | operator+= (const VectorTransformation &p) |
| VectorTransformation & | operator-= (const VectorTransformation &p) |
| VectorTransformation & | operator*= (Real s) |
| VectorTransformation | operator* (Real s) const |
| VectorTransformation & | operator/= (Real s) |
| VectorTransformation | operator/ (Real s) const |
Static Public Member Functions | |
| static int | InitStatics () |
Static Public Attributes | |
| static const VectorTransformation | Identity |
Protected Member Functions | |
| Vector< Vector< Real > > | vecvec (const Real *a_coeffs) const |
| Real | determinant (const Real *a_matrix) const |
| Real | determinant (const Vector< Vector< Real > > &a_matrix) const |
| Real | matrixMinor (const Vector< Vector< Real > > &a_matrix, int a_row, int a_col) const |
Static Protected Member Functions | |
| static int | matrixIndex (int a_dirDst, int a_dirSrc) |
Protected Attributes | |
| Real | m_coeffs [s_ncoeffs] |
Static Protected Attributes | |
| static const int | s_ncoeffs = SpaceDim*SpaceDim |
Friends | |
| class | VectorAvgTransformation |
| VectorTransformation | operator+ (const VectorTransformation &s, const VectorTransformation &p) |
| VectorTransformation | operator- (const VectorTransformation &s, const VectorTransformation &p) |
| VectorTransformation | operator* (Real s, const VectorTransformation &p) |
| VectorTransformation | operator/ (Real s, const VectorTransformation &p) |
Class to describe transformation of SpaceDim-vectors, typically from one block to another.
|
inline |
null constructor leaves object in undefined state
|
inline |
set one component of transformation matrix
References m_coeffs, and matrixIndex().
|
inline |
References m_coeffs, and matrixIndex().
|
inline |
only for sending stuff to Fortran
References addTransformFab(), addTransformFabAvg(), compose(), inverse(), m_coeffs, operator*(), operator*=(), operator+, operator+=(), operator-, operator-=(), operator/(), operator/=(), and transform().
apply this tranformation to vector
Referenced by dataPtr().
| void VectorTransformation::addTransformFab | ( | FArrayBox & | a_dstFab, |
| const FArrayBox & | a_srcFab, | ||
| const Box & | a_bx, | ||
| Real | a_weight = 1. |
||
| ) | const |
increment a vector-transformed cell-centered FAB
Referenced by dataPtr().
| void VectorTransformation::addTransformFabAvg | ( | FArrayBox & | a_dstFab, |
| const FArrayBox & | a_srcFab, | ||
| const FArrayBox & | a_gradFab, | ||
| const Vector< VectorTransformation > & | a_vecTransformGrad, | ||
| const Box & | a_bx, | ||
| Real | a_weight = 1. |
||
| ) | const |
increment a vector-transformed cell-averaged FAB
Referenced by dataPtr().
| VectorTransformation VectorTransformation::inverse | ( | ) | const |
Return the inverse transformation.
Referenced by dataPtr().
| VectorTransformation VectorTransformation::compose | ( | const VectorTransformation & | a_next | ) | const |
Return the composite transformation: that is, this transformation followed by a_next.
Referenced by dataPtr().
| VectorTransformation& VectorTransformation::operator+= | ( | const VectorTransformation & | p | ) |
Referenced by dataPtr().
| VectorTransformation& VectorTransformation::operator-= | ( | const VectorTransformation & | p | ) |
Referenced by dataPtr().
| VectorTransformation& VectorTransformation::operator*= | ( | Real | s | ) |
Referenced by dataPtr().
| VectorTransformation VectorTransformation::operator* | ( | Real | s | ) | const |
Referenced by dataPtr().
| VectorTransformation& VectorTransformation::operator/= | ( | Real | s | ) |
Referenced by dataPtr().
| VectorTransformation VectorTransformation::operator/ | ( | Real | s | ) | const |
Referenced by dataPtr().
|
static |
Initializes VectorTransformation::Identity .
|
inlinestaticprotected |
References determinant(), matrixMinor(), and vecvec().
Referenced by component(), and setComponent().
Referenced by matrixIndex().
Referenced by matrixIndex().
|
protected |
Referenced by matrixIndex().
|
friend |
|
friend |
Referenced by dataPtr().
|
friend |
Referenced by dataPtr().
|
friend |
|
friend |
|
static |
The identity transformation, which leaves a vector the same.
Referenced by component(), dataPtr(), and setComponent().
1.8.13