#include <VectorTransformation.H>
Public Member Functions | |
VectorTransformation () | |
null constructor leaves object in undefined state | |
void | setComponent (int a_dirDst, int a_dirSrc, Real a_val) |
set one component of transformation matrix | |
Real | component (int a_dirDst, int a_dirSrc) const |
const Real * | dataPtr () const |
only for sending stuff to Fortran | |
RealVect | transform (const RealVect &a_vec) const |
apply this tranformation to vector | |
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 | |
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 | |
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) |
VectorTransformation::VectorTransformation | ( | ) | [inline] |
null constructor leaves object in undefined state
void VectorTransformation::setComponent | ( | int | a_dirDst, | |
int | a_dirSrc, | |||
Real | a_val | |||
) | [inline] |
Real VectorTransformation::component | ( | int | a_dirDst, | |
int | a_dirSrc | |||
) | const [inline] |
References m_coeffs, and matrixIndex().
const Real* VectorTransformation::dataPtr | ( | ) | const [inline] |
apply this tranformation to vector
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
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
VectorTransformation VectorTransformation::inverse | ( | ) | const |
Return the inverse transformation.
VectorTransformation VectorTransformation::compose | ( | const VectorTransformation & | a_next | ) | const |
Return the composite transformation: that is, this transformation followed by a_next.
VectorTransformation& VectorTransformation::operator+= | ( | const VectorTransformation & | p | ) |
VectorTransformation& VectorTransformation::operator-= | ( | const VectorTransformation & | p | ) |
VectorTransformation& VectorTransformation::operator*= | ( | Real | s | ) |
VectorTransformation VectorTransformation::operator* | ( | Real | s | ) | const |
VectorTransformation& VectorTransformation::operator/= | ( | Real | s | ) |
VectorTransformation VectorTransformation::operator/ | ( | Real | s | ) | const |
static int VectorTransformation::InitStatics | ( | ) | [static] |
Initializes VectorTransformation::Identity .
static int VectorTransformation::matrixIndex | ( | int | a_dirDst, | |
int | a_dirSrc | |||
) | [inline, static, protected] |
Real VectorTransformation::determinant | ( | const Vector< Vector< Real > > & | a_matrix | ) | const [protected] |
Real VectorTransformation::matrixMinor | ( | const Vector< Vector< Real > > & | a_matrix, | |
int | a_row, | |||
int | a_col | |||
) | const [protected] |
friend class VectorAvgTransformation [friend] |
VectorTransformation operator+ | ( | const VectorTransformation & | s, | |
const VectorTransformation & | p | |||
) | [friend] |
VectorTransformation operator- | ( | const VectorTransformation & | s, | |
const VectorTransformation & | p | |||
) | [friend] |
VectorTransformation operator* | ( | Real | s, | |
const VectorTransformation & | p | |||
) | [friend] |
VectorTransformation operator/ | ( | Real | s, | |
const VectorTransformation & | p | |||
) | [friend] |
const VectorTransformation VectorTransformation::Identity [static] |
The identity transformation, which leaves a vector the same.
const int VectorTransformation::s_ncoeffs = SpaceDim*SpaceDim [static, protected] |
Real VectorTransformation::m_coeffs[s_ncoeffs] [protected] |
Referenced by component(), dataPtr(), and setComponent().