ug4
|
Base class for Reference mappings helping to implement interface. More...
#include <reference_mapping.h>
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... | |
bool | is_linear () const |
returns if mapping is affine More... | |
void | jacobian (MathMatrix< worldDim, dim > &J, const MathVector< dim > &locPos) const |
returns jacobian More... | |
void | jacobian (MathMatrix< worldDim, dim > *vJ, const MathVector< dim > *vLocPos, size_t n) const |
returns jacobian for n local positions More... | |
void | jacobian (std::vector< MathMatrix< worldDim, dim > > &vJ, const std::vector< MathVector< dim > > &vLocPos) const |
returns jacobian for a vector of local positions More... | |
void | jacobian_transposed (MathMatrix< dim, worldDim > *vJT, const MathVector< dim > *vLocPos, size_t n) const |
returns transposed of jacobian for n local positions More... | |
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... | |
number | jacobian_transposed_inverse (MathMatrix< worldDim, dim > &JTInv, const MathVector< dim > &locPos) const |
returns transposed of the inverse of the jacobian More... | |
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... | |
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... | |
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... | |
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... | |
void | local_to_global (MathVector< worldDim > *vGlobPos, const MathVector< dim > *vLocPos, size_t n) const |
map local coordinate to global coordinate for n local positions More... | |
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... | |
number | sqrt_gram_det (const MathVector< dim > &locPos) const |
returns the determinate of the jacobian More... | |
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... | |
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... | |
Protected Member Functions | |
TImpl & | getImpl () |
access to implementation More... | |
const TImpl & | getImpl () const |
const access to implementation More... | |
Base class for Reference mappings helping to implement interface.
|
inlineprotected |
access to implementation
Referenced by ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::global_to_local(), ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian(), ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian_transposed(), ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian_transposed_inverse(), ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::local_to_global(), and ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::sqrt_gram_det().
|
inlineprotected |
const access to implementation
|
inline |
map global coordinate to local coordinate
locPos | (o) for the computed local coordinates (i) specify the initial guess! |
globPos | (i) the global coordinates to transform |
maxIter | (i) maximum number of the Newton iterations |
tol | (i) tolerance (smalles possible correction in the Newton iterations) |
References ug::DID_REFERENCE_MAPPING_GLOB_TO_LOC, dim, ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl(), ug::LeftInverse(), ug::MatVecMult(), UG_COND_THROW, UG_DLOG, UG_THROW, ug::VecAbsIsLess(), ug::VecScale(), ug::VecSubtract(), and ug::VecTwoNorm().
Referenced by ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::global_to_local().
|
inline |
map global coordinate to local coordinate for n local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl(), ug::LeftInverse(), ug::MatVecScaleMultAppend(), and ug::VecSubtract().
|
inline |
map global coordinate to local coordinate for a vector of local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::global_to_local().
|
inline |
returns if mapping is affine
|
inline |
returns jacobian
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl(), and ug::Transpose().
Referenced by ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian().
|
inline |
returns jacobian for n local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl().
|
inline |
returns jacobian for a vector of local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian().
|
inline |
returns transposed of jacobian for n local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl().
Referenced by ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian_transposed().
|
inline |
returns transposed of jacobian for a vector of positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian_transposed().
|
inline |
returns transposed of the inverse of the jacobian
References ug::DID_REFERENCE_MAPPING, ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl(), ug::RightInverse(), and UG_DLOG.
Referenced by ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian_transposed_inverse().
|
inline |
returns transposed of the inverse of the jacobian for n local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl().
|
inline |
returns transposed of the inverse of the jacobian for n local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl().
|
inline |
returns transposed of the inverse of the jacobian for a vector of positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian_transposed_inverse().
|
inline |
returns transposed of the inverse of the jacobian for a vector of positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::jacobian_transposed_inverse().
|
inline |
map local coordinate to global coordinate for n local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl().
Referenced by ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::local_to_global().
|
inline |
map local coordinate to global coordinate for a vector of local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::local_to_global().
|
inline |
returns the determinate of the jacobian
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::getImpl(), and ug::SqrtGramDeterminant().
Referenced by ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::sqrt_gram_det().
|
inline |
returns the determinate of the jacobian for n local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::sqrt_gram_det().
|
inline |
returns the determinate of the jacobian for a vector of local positions
References ug::BaseReferenceMapping< dim, worldDim, isLinear, TImpl >::sqrt_gram_det().