ug4
|
Geometry and shape functions for any order Vertex-Centered Finite Volume. More...
#include <fvho_geom.h>
Classes | |
class | BF |
boundary face More... | |
class | SCV |
sub control volume structure More... | |
class | SCVF |
Sub-Control Volume Face structure. More... | |
struct | SubElement |
Public Types | |
typedef traits::scv_type | scv_type |
type of SubControlVolume More... | |
typedef traits::scvf_type | scvf_type |
type of SubControlVolumeFace More... | |
typedef fv1_dim_traits< TDim, TWorldDim > | traits |
traits used More... | |
Public Member Functions | |
void | add_boundary_subset (int subsetIndex) |
add subset that is interpreted as boundary subset. More... | |
const std::vector< BF > & | bf (int si) const |
returns reference to vector of boundary faces for subsetIndex More... | |
const BF & | bf (int si, size_t i) const |
returns the boundary face i for subsetIndex More... | |
void | clear_boundary_subsets () |
reset all boundary subsets More... | |
DimFVGeometry () | |
construct object and initialize local values and sizes More... | |
size_t | num_bf () const |
number of all boundary faces More... | |
size_t | num_bf (int si) const |
number of boundary faces on subset 'subsetIndex' More... | |
size_t | num_boundary_subsets () |
number of registered boundary subsets More... | |
size_t | num_scv () const |
number of SubControlVolumes More... | |
size_t | num_scv_ips () const |
returns number of all scv ips More... | |
size_t | num_scvf () const |
number of SubControlVolumeFaces More... | |
size_t | num_scvf_ips () const |
returns number of all scvf ips More... | |
size_t | num_sh () const |
number of shape functions More... | |
void | remove_boundary_subset (int subsetIndex) |
removes subset that is interpreted as boundary subset. More... | |
void | reset_curr_elem () |
const SCV & | scv (size_t i) const |
const access to SubControlVolume number i More... | |
const MathVector< worldDim > * | scv_global_ips () const |
returns all ips of scv as they appear in scv loop More... | |
const MathVector< dim > * | scv_local_ips () const |
returns all ips of scv as they appear in scv loop More... | |
const SCVF & | scvf (size_t i) const |
const access to SubControlVolumeFace number i More... | |
const MathVector< worldDim > * | scvf_global_ips () const |
returns all ips of scvf as they appear in scv loop More... | |
const MathVector< dim > * | scvf_local_ips () const |
returns all ips of scvf as they appear in scv loop More... | |
void | update (GridObject *pElem, const MathVector< worldDim > *vCornerCoords, const ISubsetHandler *ish=NULL) |
update data for given element More... | |
void | update (GridObject *pElem, const MathVector< worldDim > *vCornerCoords, const LFEID &lfeID, size_t orderQuad, const ISubsetHandler *ish=NULL) |
update data for given element More... | |
void | update_boundary_faces (GridObject *pElem, const MathVector< worldDim > *vCornerCoords, const ISubsetHandler *ish=NULL) |
update boundary data for given element More... | |
void | update_local (ReferenceObjectID roid, const LFEID &lfeID) |
void | update_local (ReferenceObjectID roid, const LFEID &lfeID, size_t orderQuad) |
update local data More... | |
Static Public Attributes | |
static const int | dim = TDim |
dimension of reference element More... | |
static const bool | staticLocalData = false |
flag indicating if local data may change More... | |
static const bool | usesHangingNodes = false |
Hanging node flag: this Geometry does not support hanging nodes. More... | |
static const int | worldDim = TWorldDim |
dimension of world More... | |
Protected Attributes | |
std::map< int, std::vector< BF > > | m_mapVectorBF |
std::vector< BF > | m_vEmptyVectorBF |
std::vector< MathVector< worldDim > > | m_vGlobSCV_IP |
std::vector< MathVector< worldDim > > | m_vGlobSCVF_IP |
std::vector< MathVector< dim > > | m_vLocSCV_IP |
std::vector< MathVector< dim > > | m_vLocSCVF_IP |
std::vector< SubElement > | m_vSubElem |
subelements (size: numSubElem) More... | |
Static Protected Attributes | |
static const int | maxMid = traits::maxNumSCVF +1 |
Private Attributes | |
LFEID | m_lfeID |
current trial space More... | |
size_t | m_nsh |
number of shape functions More... | |
size_t | m_numSCV |
current number of scv More... | |
size_t | m_numSCVF |
current number of scvf More... | |
size_t | m_numSCVFIP |
number of scvf ip More... | |
size_t | m_numSCVFPerSubElem |
current number of SCVF per SubElement More... | |
size_t | m_numSCVIP |
number of scv ip More... | |
size_t | m_numSCVPerSubElem |
number of SCV per SubElement More... | |
size_t | m_numSubElem |
current number of subelements More... | |
int | m_orderShape |
current order More... | |
GridObject * | m_pElem |
pointer to current element More... | |
int | m_quadOrderSCV |
current quadrature order scv More... | |
int | m_quadOrderSCVF |
quadrature order More... | |
ReferenceObjectID | m_roid |
current reference object id More... | |
std::vector< SCV > | m_vSCV |
SubControlVolumes (size: numSCV) More... | |
std::vector< SCVF > | m_vSCVF |
SubControlVolumeFaces (size: numSCVF) More... | |
Geometry and shape functions for any order Vertex-Centered Finite Volume.
TDim | reference element dim |
TWorldDim | (physical) world dimension |
typedef traits::scv_type ug::DimFVGeometry< TWorldDim, TDim >::scv_type |
type of SubControlVolume
typedef traits::scvf_type ug::DimFVGeometry< TWorldDim, TDim >::scvf_type |
type of SubControlVolumeFace
typedef fv1_dim_traits<TDim, TWorldDim> ug::DimFVGeometry< TWorldDim, TDim >::traits |
traits used
ug::DimFVGeometry< TWorldDim, TDim >::DimFVGeometry |
construct object and initialize local values and sizes
|
inline |
add subset that is interpreted as boundary subset.
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF.
|
inline |
returns reference to vector of boundary faces for subsetIndex
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF, and ug::DimFVGeometry< TWorldDim, TDim >::m_vEmptyVectorBF.
|
inline |
returns the boundary face i for subsetIndex
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF, ug::DimFVGeometry< TWorldDim, TDim >::num_bf(), UG_ASSERT, and UG_THROW.
|
inline |
reset all boundary subsets
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF.
|
inline |
number of all boundary faces
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF.
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::bf().
|
inline |
number of boundary faces on subset 'subsetIndex'
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF.
|
inline |
number of registered boundary subsets
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF.
|
inline |
number of SubControlVolumes
References ug::DimFVGeometry< TWorldDim, TDim >::m_numSCV.
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scv().
|
inline |
returns number of all scv ips
References ug::DimFVGeometry< TWorldDim, TDim >::m_numSCVIP.
|
inline |
number of SubControlVolumeFaces
References ug::DimFVGeometry< TWorldDim, TDim >::m_numSCVF.
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scvf().
|
inline |
returns number of all scvf ips
References ug::DimFVGeometry< TWorldDim, TDim >::m_numSCVFIP.
|
inline |
number of shape functions
References ug::DimFVGeometry< TWorldDim, TDim >::m_nsh.
|
inline |
removes subset that is interpreted as boundary subset.
References ug::DimFVGeometry< TWorldDim, TDim >::m_mapVectorBF.
|
inline |
References ug::DimFVGeometry< TWorldDim, TDim >::m_pElem.
|
inline |
const access to SubControlVolume number i
References ug::DimFVGeometry< TWorldDim, TDim >::m_vSCV, ug::DimFVGeometry< TWorldDim, TDim >::num_scv(), and UG_ASSERT.
|
inline |
returns all ips of scv as they appear in scv loop
References ug::DimFVGeometry< TWorldDim, TDim >::m_vGlobSCV_IP.
|
inline |
returns all ips of scv as they appear in scv loop
References ug::DimFVGeometry< TWorldDim, TDim >::m_vLocSCV_IP.
|
inline |
const access to SubControlVolumeFace number i
References ug::DimFVGeometry< TWorldDim, TDim >::m_vSCVF, ug::DimFVGeometry< TWorldDim, TDim >::num_scvf(), and UG_ASSERT.
|
inline |
returns all ips of scvf as they appear in scv loop
References ug::DimFVGeometry< TWorldDim, TDim >::m_vGlobSCVF_IP.
|
inline |
returns all ips of scvf as they appear in scv loop
References ug::DimFVGeometry< TWorldDim, TDim >::m_vLocSCVF_IP.
|
inline |
update data for given element
References ug::DimFVGeometry< TWorldDim, TDim >::m_lfeID, and ug::DimFVGeometry< TWorldDim, TDim >::m_quadOrderSCV.
void ug::DimFVGeometry< TWorldDim, TDim >::update | ( | GridObject * | pElem, |
const MathVector< worldDim > * | vCornerCoords, | ||
const LFEID & | lfeID, | ||
size_t | orderQuad, | ||
const ISubsetHandler * | ish = NULL |
||
) |
update data for given element
References dim, ug::QuadratureRuleProvider< TDim >::get(), ug::DimReferenceMapping< TDim, TWorldDim >::jacobian_transposed_inverse(), ug::ReferenceMapping< TRefElem, TWorldDim >::local_to_global(), ug::DimReferenceMapping< TDim, TWorldDim >::local_to_global(), ug::MatVecMult(), ug::QuadratureRule< TDim >::point(), ug::GridObject::reference_object_id(), ug::QuadratureRule< TDim >::size(), ug::ReferenceMapping< TRefElem, TWorldDim >::sqrt_gram_det(), ug::DimReferenceMapping< TDim, TWorldDim >::sqrt_gram_det(), UG_CATCH_THROW, ug::DimReferenceMapping< TDim, TWorldDim >::update(), and ug::VecNormalize().
void ug::DimFVGeometry< TWorldDim, TDim >::update_boundary_faces | ( | GridObject * | pElem, |
const MathVector< worldDim > * | vCornerCoords, | ||
const ISubsetHandler * | ish = NULL |
||
) |
update boundary data for given element
References ug::CollectEdgesSorted(), ug::CollectFacesSorted(), ug::CollectVertices(), ug::ComputeBFMidID(), dim, ug::QuadratureRuleProvider< TDim >::get(), ug::ISubsetHandler::get_subset_index(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::grads(), ug::ISubsetHandler::grid(), ug::ReferenceElement::id(), ug::DimReferenceMapping< TDim, TWorldDim >::jacobian_transposed_inverse(), ug::LFEID::LAGRANGE, ug::DimFVGeometry< TWorldDim, TDim >::BF::local_ip(), ug::ReferenceMapping< TRefElem, TWorldDim >::local_to_global(), ug::DimReferenceMapping< TDim, TWorldDim >::local_to_global(), ug::MatVecMult(), ug::DimFVGeometry< TWorldDim, TDim >::BF::nip, ug::DimFVGeometry< TWorldDim, TDim >::BF::nodeId, ug::DimFVGeometry< TWorldDim, TDim >::BF::Normal, ug::DimFVGeometry< TWorldDim, TDim >::BF::nsh, ug::ReferenceElement::num(), ug::DimFVGeometry< TWorldDim, TDim >::BF::num_corners(), ug::DimFVGeometry< TWorldDim, TDim >::BF::num_ip(), ug::LocalDoFSet::num_sh(), ug::DimFVGeometry< TWorldDim, TDim >::BF::num_sh(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::shapes(), ug::DimReferenceMapping< TDim, TWorldDim >::sqrt_gram_det(), UG_CATCH_THROW, ug::DimReferenceMapping< TDim, TWorldDim >::update(), ug::DimFVGeometry< TWorldDim, TDim >::BF::vDetJ, ug::VecTwoNorm(), ug::DimFVGeometry< TWorldDim, TDim >::BF::vGlobalIP, ug::DimFVGeometry< TWorldDim, TDim >::BF::vGloPos, ug::DimFVGeometry< TWorldDim, TDim >::BF::vJtInv, ug::DimFVGeometry< TWorldDim, TDim >::BF::vLocalIP, ug::DimFVGeometry< TWorldDim, TDim >::BF::vLocPos, ug::DimFVGeometry< TWorldDim, TDim >::BF::vMidID, ug::DimFVGeometry< TWorldDim, TDim >::BF::Vol, ug::DimFVGeometry< TWorldDim, TDim >::BF::vvGlobalGrad, ug::DimFVGeometry< TWorldDim, TDim >::BF::vvLocalGrad, ug::DimFVGeometry< TWorldDim, TDim >::BF::vvShape, and ug::DimFVGeometry< TWorldDim, TDim >::BF::vWeight.
|
inline |
References ug::LFEID::order(), and ug::DimFVGeometry< TWorldDim, TDim >::update_local().
void ug::DimFVGeometry< TWorldDim, TDim >::update_local | ( | ReferenceObjectID | roid, |
const LFEID & | lfeID, | ||
size_t | orderQuad | ||
) |
update local data
References ug::ComputeMidPoints(), ug::ComputeSCVFMidID(), ug::ComputeSCVMidID(), dim, frac, ug::QuadratureRuleProvider< TDim >::get(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::grads(), ug::ReferenceElement::id(), ug::ReferenceMapping< TRefElem, TWorldDim >::local_to_global(), ug::ReferenceElement::num(), ug::LocalDoFSet::num_sh(), ug::LFEID::order(), ug::QuadratureRule< TDim >::point(), ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::shapes(), ug::QuadratureRule< TDim >::size(), UG_CATCH_THROW, ug::VecScaleAppend(), and ug::QuadratureRule< TDim >::weights().
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::update_local().
|
static |
dimension of reference element
|
private |
current trial space
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::update().
|
protected |
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::add_boundary_subset(), ug::DimFVGeometry< TWorldDim, TDim >::bf(), ug::DimFVGeometry< TWorldDim, TDim >::clear_boundary_subsets(), ug::DimFVGeometry< TWorldDim, TDim >::num_bf(), ug::DimFVGeometry< TWorldDim, TDim >::num_boundary_subsets(), and ug::DimFVGeometry< TWorldDim, TDim >::remove_boundary_subset().
|
private |
number of shape functions
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::num_sh().
|
private |
current number of scv
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::num_scv().
|
private |
current number of scvf
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::num_scvf().
|
private |
number of scvf ip
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::num_scvf_ips().
|
private |
current number of SCVF per SubElement
|
private |
number of scv ip
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::num_scv_ips().
|
private |
number of SCV per SubElement
|
private |
current number of subelements
|
private |
current order
|
private |
pointer to current element
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::reset_curr_elem().
|
private |
current quadrature order scv
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::update().
|
private |
quadrature order
|
private |
current reference object id
|
protected |
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::bf().
|
protected |
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scv_global_ips().
|
protected |
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scvf_global_ips().
|
protected |
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scv_local_ips().
|
protected |
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scvf_local_ips().
|
private |
SubControlVolumes (size: numSCV)
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scv().
|
private |
SubControlVolumeFaces (size: numSCVF)
Referenced by ug::DimFVGeometry< TWorldDim, TDim >::scvf().
|
protected |
subelements (size: numSubElem)
|
staticprotected |
|
static |
flag indicating if local data may change
|
static |
Hanging node flag: this Geometry does not support hanging nodes.
|
static |
dimension of world