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::VectorTransformation ( )
inline

null constructor leaves object in undefined state

Member Function Documentation

◆ setComponent()

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

set one component of transformation matrix

References m_coeffs, and matrixIndex().

◆ component()

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

References m_coeffs, and matrixIndex().

◆ dataPtr()

const Real* VectorTransformation::dataPtr ( ) const
inline

◆ transform()

RealVect VectorTransformation::transform ( const RealVect a_vec) const

apply this tranformation to vector

Referenced by dataPtr().

◆ addTransformFab()

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

◆ addTransformFabAvg()

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

◆ inverse()

VectorTransformation VectorTransformation::inverse ( ) const

Return the inverse transformation.

Referenced by dataPtr().

◆ compose()

VectorTransformation VectorTransformation::compose ( const VectorTransformation a_next) const

Return the composite transformation: that is, this transformation followed by a_next.

Referenced by dataPtr().

◆ operator+=()

VectorTransformation& VectorTransformation::operator+= ( const VectorTransformation p)

Referenced by dataPtr().

◆ operator-=()

VectorTransformation& VectorTransformation::operator-= ( const VectorTransformation p)

Referenced by dataPtr().

◆ operator*=()

VectorTransformation& VectorTransformation::operator*= ( Real  s)

Referenced by dataPtr().

◆ operator*()

VectorTransformation VectorTransformation::operator* ( Real  s) const

Referenced by dataPtr().

◆ operator/=()

VectorTransformation& VectorTransformation::operator/= ( Real  s)

Referenced by dataPtr().

◆ operator/()

VectorTransformation VectorTransformation::operator/ ( Real  s) const

Referenced by dataPtr().

◆ InitStatics()

static int VectorTransformation::InitStatics ( )
static

◆ matrixIndex()

static int VectorTransformation::matrixIndex ( int  a_dirDst,
int  a_dirSrc 
)
inlinestaticprotected

References determinant(), matrixMinor(), and vecvec().

Referenced by component(), and setComponent().

◆ vecvec()

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

Referenced by matrixIndex().

◆ determinant() [1/2]

Real VectorTransformation::determinant ( const Real a_matrix) const
protected

Referenced by matrixIndex().

◆ determinant() [2/2]

Real VectorTransformation::determinant ( const Vector< Vector< Real > > &  a_matrix) const
protected

◆ matrixMinor()

Real VectorTransformation::matrixMinor ( const Vector< Vector< Real > > &  a_matrix,
int  a_row,
int  a_col 
) const
protected

Referenced by matrixIndex().

Friends And Related Function Documentation

◆ VectorAvgTransformation

friend class VectorAvgTransformation
friend

◆ operator+

VectorTransformation operator+ ( const VectorTransformation s,
const VectorTransformation p 
)
friend

Referenced by dataPtr().

◆ operator-

VectorTransformation operator- ( const VectorTransformation s,
const VectorTransformation p 
)
friend

Referenced by dataPtr().

◆ operator*

VectorTransformation operator* ( Real  s,
const VectorTransformation p 
)
friend

◆ operator/

VectorTransformation operator/ ( Real  s,
const VectorTransformation p 
)
friend

Member Data Documentation

◆ Identity

const VectorTransformation VectorTransformation::Identity
static

The identity transformation, which leaves a vector the same.

◆ s_ncoeffs

const int VectorTransformation::s_ncoeffs = SpaceDim*SpaceDim
staticprotected

◆ m_coeffs

Real VectorTransformation::m_coeffs[s_ncoeffs]
protected

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


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