ug4
|
Geometry and shape functions for 1st order Vertex-Centered Finite Volume. More...
#include <fv1ib_geom.h>
Classes | |
class | BF |
boundary face More... | |
class | SCV |
sub control volume structure More... | |
class | SCVF |
Sub-Control Volume Face structure. More... | |
Public Types | |
typedef traits::scv_type | scv_type |
type of SubControlVolume More... | |
typedef fv1_dim_traits< TDim, TWorldDim > | traits |
used traits More... | |
Public Member Functions | |
void | adapt (GridObject *elem, const MathVector< TWorldDim > *vCornerCoords, const ISubsetHandler *ish=NULL) |
adapt integration points for elements cut by the inner boundary More... | |
void | adapt_integration_points (GridObject *elem, const MathVector< TWorldDim > *vCornerCoords, const ISubsetHandler *ish=NULL) |
adapt integration points for elements cut by the inner boundary More... | |
void | adapt_normals (GridObject *elem, const MathVector< TWorldDim > *vCornerCoords, const ISubsetHandler *ish=NULL) |
adapt normals for elements cut by the inner boundary More... | |
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... | |
const MathVector< worldDim > * | corners () const |
get vector of corners for current element More... | |
DimFV1IBGeometry () | |
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... | |
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 *elem, const MathVector< worldDim > *vCornerCoords, const ISubsetHandler *ish=NULL) |
update data for given element More... | |
void | update_boundary_faces (GridObject *elem, const MathVector< worldDim > *vCornerCoords, const ISubsetHandler *ish=NULL) |
update boundary data for given element More... | |
void | update_local_data () |
update local data More... | |
Public Attributes | |
MathVector< worldDim > | m_MidPoint |
MathVector< worldDim > | vSCVF_PosOnEdge [maxNumSCVF] |
new members for adaptions More... | |
Static Public Attributes | |
static const int | dim = TDim |
dimension of reference element More... | |
static const size_t | maxNSH = traits::maxNSH |
max number of shape functions More... | |
static const size_t | maxNumSCV = traits::maxNumSCV |
number of SubControlVolumes More... | |
static const size_t | maxNumSCVF = traits::maxNumSCVF |
max number of SubControlVolumeFaces More... | |
static const size_t | nip = 1 |
number of integration points More... | |
static const int | order = 1 |
order 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 |
MathVector< worldDim > | m_vGlobSCVF_IP [maxNumSCVF] |
MathVector< dim > | m_vLocSCVF_IP [maxNumSCVF] |
Private Attributes | |
size_t | m_nsh |
current number of shape functions More... | |
size_t | m_numSCV |
current number of scv More... | |
size_t | m_numSCVF |
current number of scvf More... | |
GridObject * | m_pElem |
pointer to current element More... | |
ReferenceObjectID | m_roid |
current reference object id More... | |
SCV | m_vSCV [maxNumSCV] |
SubControlVolumes. More... | |
SCVF | m_vSCVF [maxNumSCVF] |
SubControlVolumeFaces. More... | |
MathVector< worldDim > | m_vvGloMid [dim+1][maxMid] |
MathVector< dim > | m_vvLocMid [dim+1][maxMid] |
local and global geom object midpoints for each dimension More... | |
Static Private Attributes | |
static const int | maxMid = maxNumSCVF + 1 |
max number of geometric objects in a dimension More... | |
Geometry and shape functions for 1st order Vertex-Centered Finite Volume.
TDim | reference element dim |
TWorldDim | (physical) world dimension |
typedef traits::scv_type ug::DimFV1IBGeometry< TDim, TWorldDim >::scv_type |
type of SubControlVolume
typedef fv1_dim_traits<TDim, TWorldDim> ug::DimFV1IBGeometry< TDim, TWorldDim >::traits |
used traits
|
inline |
construct object and initialize local values and sizes
void DimFV1IBGeometry::adapt | ( | GridObject * | elem, |
const MathVector< TWorldDim > * | vCornerCoords, | ||
const ISubsetHandler * | ish = NULL |
||
) |
adapt integration points for elements cut by the inner boundary
References UG_LOG, ug::VecDot(), and ug::VecSubtract().
void DimFV1IBGeometry::adapt_integration_points | ( | GridObject * | elem, |
const MathVector< TWorldDim > * | vCornerCoords, | ||
const ISubsetHandler * | ish = NULL |
||
) |
adapt integration points for elements cut by the inner boundary
References UG_THROW.
void DimFV1IBGeometry::adapt_normals | ( | GridObject * | elem, |
const MathVector< TWorldDim > * | vCornerCoords, | ||
const ISubsetHandler * | ish = NULL |
||
) |
|
inline |
add subset that is interpreted as boundary subset.
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF.
|
inline |
returns reference to vector of boundary faces for subsetIndex
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF, and ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vEmptyVectorBF.
|
inline |
returns the boundary face i for subsetIndex
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF, and UG_THROW.
|
inline |
reset all boundary subsets
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF.
|
inline |
get vector of corners for current element
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vvGloMid.
|
inline |
number of all boundary faces
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF.
|
inline |
number of boundary faces on subset 'subsetIndex'
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF.
|
inline |
number of registered boundary subsets
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF.
|
inline |
number of SubControlVolumes
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_numSCV.
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::scv().
|
inline |
returns number of all scv ips
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_numSCV.
|
inline |
number of SubControlVolumeFaces
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_numSCVF.
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::scvf().
|
inline |
returns number of all scvf ips
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_numSCVF.
|
inline |
number of shape functions
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_nsh.
|
inline |
removes subset that is interpreted as boundary subset.
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_mapVectorBF.
|
inline |
const access to SubControlVolume number i
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vSCV, ug::DimFV1IBGeometry< TDim, TWorldDim >::num_scv(), and UG_ASSERT.
|
inline |
returns all ips of scv as they appear in scv loop
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vvGloMid.
|
inline |
returns all ips of scv as they appear in scv loop
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vvLocMid.
|
inline |
const access to SubControlVolumeFace number i
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vSCVF, ug::DimFV1IBGeometry< TDim, TWorldDim >::num_scvf(), and UG_ASSERT.
|
inline |
returns all ips of scvf as they appear in scv loop
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vGlobSCVF_IP.
|
inline |
returns all ips of scvf as they appear in scv loop
References ug::DimFV1IBGeometry< TDim, TWorldDim >::m_vLocSCVF_IP.
void DimFV1IBGeometry::update | ( | GridObject * | elem, |
const MathVector< worldDim > * | vCornerCoords, | ||
const ISubsetHandler * | ish = NULL |
||
) |
update data for given element
References ug::AveragePositions(), ug::DimReferenceMapping< TDim, TWorldDim >::is_linear(), ug::DimReferenceMapping< TDim, TWorldDim >::jacobian_transposed_inverse(), ug::MatVecMult(), ug::ReferenceElement::num(), ug::GridObject::reference_object_id(), ug::DimReferenceMapping< TDim, TWorldDim >::sqrt_gram_det(), UG_CATCH_THROW, and ug::DimReferenceMapping< TDim, TWorldDim >::update().
void DimFV1IBGeometry::update_boundary_faces | ( | GridObject * | elem, |
const MathVector< worldDim > * | vCornerCoords, | ||
const ISubsetHandler * | ish = NULL |
||
) |
update boundary data for given element
References ug::AveragePositions(), ug::CollectEdgesSorted(), ug::CollectFacesSorted(), ug::CollectVertices(), ug::ComputeBFMidID(), ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::detj, dim, ug::ISubsetHandler::get_subset_index(), ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::globalIP, ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::grads(), ug::ISubsetHandler::grid(), ug::ReferenceElement::id(), ug::DimReferenceMapping< TDim, TWorldDim >::jacobian_transposed_inverse(), ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::JtInv, ug::LFEID::LAGRANGE, ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::localIP, ug::MatVecMult(), ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::nodeId, ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::Normal, ug::ReferenceElement::num(), ug::LocalDoFSet::num_sh(), ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::num_sh(), ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::numSH, ug::GridObject::reference_object_id(), ug::ROID_PYRAMID, ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::shapes(), ug::DimReferenceMapping< TDim, TWorldDim >::sqrt_gram_det(), UG_CATCH_THROW, ug::DimReferenceMapping< TDim, TWorldDim >::update(), ug::VecTwoNorm(), ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::vGlobalGrad, ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::vGloPos, ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::vLocalGrad, ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::vLocPos, ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::vMidID, ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::Vol, and ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::vShape.
void DimFV1IBGeometry::update_local_data | ( | ) |
update local data
References ug::AveragePositions(), ug::ComputeSCVFMidID(), ug::ComputeSCVMidID(), ug::DimReferenceElement< d >::corner(), dim, ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::grads(), ug::ReferenceElement::id(), ug::LFEID::LAGRANGE, ug::ReferenceElement::num(), ug::LocalDoFSet::num_sh(), ug::ROID_PYRAMID, ug::LocalShapeFunctionSet< TDim, TShape, TGrad >::shapes(), and UG_CATCH_THROW.
|
static |
dimension of reference element
|
protected |
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::add_boundary_subset(), ug::DimFV1IBGeometry< TDim, TWorldDim >::bf(), ug::DimFV1IBGeometry< TDim, TWorldDim >::clear_boundary_subsets(), ug::DimFV1IBGeometry< TDim, TWorldDim >::num_bf(), ug::DimFV1IBGeometry< TDim, TWorldDim >::num_boundary_subsets(), and ug::DimFV1IBGeometry< TDim, TWorldDim >::remove_boundary_subset().
MathVector<worldDim> ug::DimFV1IBGeometry< TDim, TWorldDim >::m_MidPoint |
|
private |
current number of shape functions
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::num_sh().
|
private |
current number of scv
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::num_scv(), and ug::DimFV1IBGeometry< TDim, TWorldDim >::num_scv_ips().
|
private |
current number of scvf
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::num_scvf(), and ug::DimFV1IBGeometry< TDim, TWorldDim >::num_scvf_ips().
|
private |
pointer to current element
|
private |
current reference object id
|
protected |
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::bf().
|
protected |
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::scvf_global_ips().
|
protected |
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::scvf_local_ips().
|
private |
SubControlVolumes.
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::scv().
|
private |
SubControlVolumeFaces.
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::scvf().
|
private |
|
private |
local and global geom object midpoints for each dimension
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::scv_local_ips().
|
staticprivate |
max number of geometric objects in a dimension
|
static |
max number of shape functions
|
static |
number of SubControlVolumes
|
static |
max number of SubControlVolumeFaces
|
static |
number of integration points
Referenced by ug::DimFV1IBGeometry< TDim, TWorldDim >::SCVF::num_ip(), ug::DimFV1IBGeometry< TDim, TWorldDim >::SCV::num_ip(), and ug::DimFV1IBGeometry< TDim, TWorldDim >::BF::num_ip().
|
static |
order
|
static |
flag indicating if local data may change
|
static |
Hanging node flag: this Geometry does not support hanging nodes.
MathVector<worldDim> ug::DimFV1IBGeometry< TDim, TWorldDim >::vSCVF_PosOnEdge[maxNumSCVF] |
new members for adaptions
|
static |
dimension of world