Chombo + EB + MF  3.2
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
VectorTransformation Class Reference

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

Detailed Description

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

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

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

const VectorTransformation VectorTransformation::Identity
static

The identity transformation, which leaves a vector the same.

const int VectorTransformation::s_ncoeffs = SpaceDim*SpaceDim
staticprotected
Real VectorTransformation::m_coeffs[s_ncoeffs]
protected

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


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