ug4
ug::DimReferenceMappingWrapper< TRefMapping > Class Template Reference

wrapper of a ReferenceElementMapping into the virtual base class More...

+ Inheritance diagram for ug::DimReferenceMappingWrapper< TRefMapping >:

Public Member Functions

void global_to_local (MathVector< dim > &locPos, const MathVector< worldDim > &globPos, const size_t maxIter=1000, const number tol=1e-10) const
 map global coordinate to local coordinate More...
 
void global_to_local (MathVector< dim > *vLocPos, const MathVector< worldDim > *vGlobPos, size_t n, const size_t maxIter=1000, const number tol=1e-10) const
 map global coordinate to local coordinate for n local positions More...
 
void global_to_local (std::vector< MathVector< dim > > &vLocPos, const std::vector< MathVector< worldDim > > &vGlobPos, const size_t maxIter=1000, const number tol=1e-10) const
 map global coordinate to local coordinate for a vector of local positions More...
 
virtual bool is_linear () const
 returns if mapping is affine More...
 
virtual void jacobian (MathMatrix< worldDim, dim > &J, const MathVector< dim > &locPos) const
 returns jacobian More...
 
virtual void jacobian (MathMatrix< worldDim, dim > *vJ, const MathVector< dim > *vLocPos, size_t n) const
 returns jacobian for n local positions More...
 
virtual void jacobian (std::vector< MathMatrix< worldDim, dim > > &vJ, const std::vector< MathVector< dim > > &vLocPos) const
 returns jacobian for a vector of local positions More...
 
virtual void jacobian_transposed (MathMatrix< dim, worldDim > &JT, const MathVector< dim > &locPos) const
 returns transposed of jacobian More...
 
virtual void jacobian_transposed (MathMatrix< dim, worldDim > *vJT, const MathVector< dim > *vLocPos, size_t n) const
 returns transposed of jacobian for n local positions More...
 
virtual void jacobian_transposed (std::vector< MathMatrix< dim, worldDim > > &vJT, const std::vector< MathVector< dim > > &vLocPos) const
 returns transposed of jacobian for a vector of positions More...
 
virtual number jacobian_transposed_inverse (MathMatrix< worldDim, dim > &JTInv, const MathVector< dim > &locPos) const
 returns transposed of the inverse of the jacobian More...
 
virtual void jacobian_transposed_inverse (MathMatrix< worldDim, dim > *vJTInv, const MathVector< dim > *vLocPos, size_t n) const
 returns transposed of the inverse of the jacobian for n local positions More...
 
virtual void jacobian_transposed_inverse (MathMatrix< worldDim, dim > *vJTInv, number *vDet, const MathVector< dim > *vLocPos, size_t n) const
 returns transposed of the inverse of the jacobian for n local positions More...
 
virtual void jacobian_transposed_inverse (std::vector< MathMatrix< worldDim, dim > > &vJTInv, const std::vector< MathVector< dim > > &vLocPos) const
 returns transposed of the inverse of the jacobian for a vector of positions More...
 
virtual void jacobian_transposed_inverse (std::vector< MathMatrix< worldDim, dim > > &vJTInv, std::vector< number > &vDet, const std::vector< MathVector< dim > > &vLocPos) const
 returns transposed of the inverse of the jacobian for a vector of positions More...
 
virtual void local_to_global (MathVector< worldDim > &globPos, const MathVector< dim > &locPos) const
 map local coordinate to global coordinate More...
 
virtual void local_to_global (MathVector< worldDim > *vGlobPos, const MathVector< dim > *vLocPos, size_t n) const
 map n local coordinate to global coordinate More...
 
virtual void local_to_global (std::vector< MathVector< worldDim > > &vGlobPos, const std::vector< MathVector< dim > > &vLocPos) const
 map local coordinate to global coordinate for a vector of local positions More...
 
virtual number sqrt_gram_det (const MathVector< dim > &locPos) const
 returns the determinate of the jacobian More...
 
virtual void sqrt_gram_det (number *vDet, const MathVector< dim > *vLocPos, size_t n) const
 returns the determinate of the jacobian for n local positions More...
 
virtual void sqrt_gram_det (std::vector< number > &vDet, const std::vector< MathVector< dim > > &vLocPos) const
 returns the determinate of the jacobian for a vector of local positions More...
 
virtual void update (const MathVector< worldDim > *vCorner)
 refresh mapping for new set of corners More...
 
virtual void update (const std::vector< MathVector< worldDim > > &vCorner)
 refresh mapping for new set of corners More...
 
virtual ~DimReferenceMappingWrapper ()
 virtual destructor More...
 
- Public Member Functions inherited from ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >
virtual ~DimReferenceMapping ()
 virtual destructor More...
 

Static Public Attributes

static const int dim = TRefMapping::dim
 reference dimension (domain space dimension) More...
 
static const int worldDim = TRefMapping::worldDim
 world dimension (range space dimension) More...
 
- Static Public Attributes inherited from ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >
static const int dim
 reference dimension (domain space dimension) More...
 
static const int worldDim
 world dimension (range space dimension) More...
 

Detailed Description

template<typename TRefMapping>
class ug::DimReferenceMappingWrapper< TRefMapping >

wrapper of a ReferenceElementMapping into the virtual base class

Constructor & Destructor Documentation

◆ ~DimReferenceMappingWrapper()

template<typename TRefMapping >
virtual ug::DimReferenceMappingWrapper< TRefMapping >::~DimReferenceMappingWrapper ( )
inlinevirtual

virtual destructor

Member Function Documentation

◆ global_to_local() [1/3]

template<typename TRefMapping >
void ug::DimReferenceMappingWrapper< TRefMapping >::global_to_local ( MathVector< dim > &  locPos,
const MathVector< worldDim > &  globPos,
const size_t  maxIter = 1000,
const number  tol = 1e-10 
) const
inlinevirtual

map global coordinate to local coordinate

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ global_to_local() [2/3]

template<typename TRefMapping >
void ug::DimReferenceMappingWrapper< TRefMapping >::global_to_local ( MathVector< dim > *  vLocPos,
const MathVector< worldDim > *  vGlobPos,
size_t  n,
const size_t  maxIter = 1000,
const number  tol = 1e-10 
) const
inlinevirtual

map global coordinate to local coordinate for n local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ global_to_local() [3/3]

template<typename TRefMapping >
void ug::DimReferenceMappingWrapper< TRefMapping >::global_to_local ( std::vector< MathVector< dim > > &  vLocPos,
const std::vector< MathVector< worldDim > > &  vGlobPos,
const size_t  maxIter = 1000,
const number  tol = 1e-10 
) const
inlinevirtual

map global coordinate to local coordinate for a vector of local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ is_linear()

template<typename TRefMapping >
virtual bool ug::DimReferenceMappingWrapper< TRefMapping >::is_linear ( ) const
inlinevirtual

◆ jacobian() [1/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian ( MathMatrix< worldDim, dim > &  J,
const MathVector< dim > &  locPos 
) const
inlinevirtual

◆ jacobian() [2/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian ( MathMatrix< worldDim, dim > *  vJ,
const MathVector< dim > *  vLocPos,
size_t  n 
) const
inlinevirtual

returns jacobian for n local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian() [3/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian ( std::vector< MathMatrix< worldDim, dim > > &  vJ,
const std::vector< MathVector< dim > > &  vLocPos 
) const
inlinevirtual

returns jacobian for a vector of local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed() [1/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed ( MathMatrix< dim, worldDim > &  JT,
const MathVector< dim > &  locPos 
) const
inlinevirtual

returns transposed of jacobian

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed() [2/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed ( MathMatrix< dim, worldDim > *  vJT,
const MathVector< dim > *  vLocPos,
size_t  n 
) const
inlinevirtual

returns transposed of jacobian for n local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed() [3/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed ( std::vector< MathMatrix< dim, worldDim > > &  vJT,
const std::vector< MathVector< dim > > &  vLocPos 
) const
inlinevirtual

returns transposed of jacobian for a vector of positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed_inverse() [1/5]

template<typename TRefMapping >
virtual number ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed_inverse ( MathMatrix< worldDim, dim > &  JTInv,
const MathVector< dim > &  locPos 
) const
inlinevirtual

returns transposed of the inverse of the jacobian

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed_inverse() [2/5]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed_inverse ( MathMatrix< worldDim, dim > *  vJTInv,
const MathVector< dim > *  vLocPos,
size_t  n 
) const
inlinevirtual

returns transposed of the inverse of the jacobian for n local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed_inverse() [3/5]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed_inverse ( MathMatrix< worldDim, dim > *  vJTInv,
number vDet,
const MathVector< dim > *  vLocPos,
size_t  n 
) const
inlinevirtual

returns transposed of the inverse of the jacobian for n local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed_inverse() [4/5]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed_inverse ( std::vector< MathMatrix< worldDim, dim > > &  vJTInv,
const std::vector< MathVector< dim > > &  vLocPos 
) const
inlinevirtual

returns transposed of the inverse of the jacobian for a vector of positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ jacobian_transposed_inverse() [5/5]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::jacobian_transposed_inverse ( std::vector< MathMatrix< worldDim, dim > > &  vJTInv,
std::vector< number > &  vDet,
const std::vector< MathVector< dim > > &  vLocPos 
) const
inlinevirtual

returns transposed of the inverse of the jacobian for a vector of positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ local_to_global() [1/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::local_to_global ( MathVector< worldDim > &  globPos,
const MathVector< dim > &  locPos 
) const
inlinevirtual

map local coordinate to global coordinate

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ local_to_global() [2/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::local_to_global ( MathVector< worldDim > *  vGlobPos,
const MathVector< dim > *  vLocPos,
size_t  n 
) const
inlinevirtual

map n local coordinate to global coordinate

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ local_to_global() [3/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::local_to_global ( std::vector< MathVector< worldDim > > &  vGlobPos,
const std::vector< MathVector< dim > > &  vLocPos 
) const
inlinevirtual

map local coordinate to global coordinate for a vector of local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ sqrt_gram_det() [1/3]

template<typename TRefMapping >
virtual number ug::DimReferenceMappingWrapper< TRefMapping >::sqrt_gram_det ( const MathVector< dim > &  locPos) const
inlinevirtual

returns the determinate of the jacobian

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ sqrt_gram_det() [2/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::sqrt_gram_det ( number vDet,
const MathVector< dim > *  vLocPos,
size_t  n 
) const
inlinevirtual

returns the determinate of the jacobian for n local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ sqrt_gram_det() [3/3]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::sqrt_gram_det ( std::vector< number > &  vDet,
const std::vector< MathVector< dim > > &  vLocPos 
) const
inlinevirtual

returns the determinate of the jacobian for a vector of local positions

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ update() [1/2]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::update ( const MathVector< worldDim > *  vCorner)
inlinevirtual

refresh mapping for new set of corners

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

◆ update() [2/2]

template<typename TRefMapping >
virtual void ug::DimReferenceMappingWrapper< TRefMapping >::update ( const std::vector< MathVector< worldDim > > &  vCorner)
inlinevirtual

refresh mapping for new set of corners

Implements ug::DimReferenceMapping< TRefMapping::dim, TRefMapping::worldDim >.

Member Data Documentation

◆ dim

template<typename TRefMapping >
const int ug::DimReferenceMappingWrapper< TRefMapping >::dim = TRefMapping::dim
static

reference dimension (domain space dimension)

◆ worldDim

template<typename TRefMapping >
const int ug::DimReferenceMappingWrapper< TRefMapping >::worldDim = TRefMapping::worldDim
static

world dimension (range space dimension)


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