VectorTransformation Class Reference

#include <VectorTransformation.H>

List of all members.


Detailed Description

Class to describe transformation of SpaceDim-vectors, typically from one block to another.

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 RealdataPtr () 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
VectorTransformationoperator+= (const VectorTransformation &p)
VectorTransformationoperator-= (const VectorTransformation &p)
VectorTransformationoperator*= (Real s)
VectorTransformation operator* (Real s) const
VectorTransformationoperator/= (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)

Constructor & Destructor Documentation

VectorTransformation::VectorTransformation (  )  [inline]

null constructor leaves object in undefined state


Member Function Documentation

void VectorTransformation::setComponent ( int  a_dirDst,
int  a_dirSrc,
Real  a_val 
) [inline]

set one component of transformation matrix

References m_coeffs, and matrixIndex().

Real VectorTransformation::component ( int  a_dirDst,
int  a_dirSrc 
) const [inline]

References m_coeffs, and matrixIndex().

const Real* VectorTransformation::dataPtr (  )  const [inline]

only for sending stuff to Fortran

References m_coeffs.

RealVect VectorTransformation::transform ( const RealVect a_vec  )  const

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]

static int VectorTransformation::matrixIndex ( int  a_dirDst,
int  a_dirSrc 
) [inline, static, protected]

References SpaceDim.

Referenced by component(), and setComponent().

Vector< Vector<Real> > VectorTransformation::vecvec ( const Real a_coeffs  )  const [protected]

Real VectorTransformation::determinant ( const Real a_matrix  )  const [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]


Friends And Related Function Documentation

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]


Member Data Documentation

The identity transformation, which leaves a vector the same.

const int VectorTransformation::s_ncoeffs = SpaceDim*SpaceDim [static, protected]

Referenced by component(), dataPtr(), and setComponent().


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

Generated on Mon Jun 26 03:27:27 2017 for Chombo + EB + MF by  doxygen 1.5.5