Skip to content
Snippets Groups Projects
Commit 4f0b7e4a authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[staggered][fvGeometry] Add helper functions for corners

parent cbc6b055
No related branches found
No related tags found
1 merge request!2830Test 3D with new staggered freeflow model
...@@ -197,6 +197,14 @@ public: ...@@ -197,6 +197,14 @@ public:
const Element& element() const const Element& element() const
{ return *elementPtr_; } { return *elementPtr_; }
//! Returns true if the IP of an scvf lies on a concave corner
bool scvfIntegrationPointInConcaveCorner(const SubControlVolumeFace& scvf) const
{ return GG::GeometryHelper::scvfIntegrationPointInConcaveCorner(*this, scvf); }
//! Returns the the scvf of neighbor element with the same integration point and unit outer normal
const SubControlVolumeFace& outsideScvfWithSameIntegrationPoint(const SubControlVolumeFace& scvf) const
{ return GG::GeometryHelper::outsideScvfWithSameIntegrationPoint(*this, scvf); }
private: private:
const auto& scvfIndices_() const const auto& scvfIndices_() const
...@@ -249,7 +257,7 @@ public: ...@@ -249,7 +257,7 @@ public:
, geometryHelper_(gridGeometry.gridView()) , geometryHelper_(gridGeometry.gridView())
{} {}
//! Get a sub control volume face with a local scv index //! Get a sub control volume face with a global scvf index
const SubControlVolumeFace& scvf(const GridIndexType scvfIdx) const const SubControlVolumeFace& scvf(const GridIndexType scvfIdx) const
{ return scvfs_[findLocalIndex_(scvfIdx, scvfIndices_())]; } { return scvfs_[findLocalIndex_(scvfIdx, scvfIndices_())]; }
...@@ -385,6 +393,14 @@ public: ...@@ -385,6 +393,14 @@ public:
return *gridGeometry_; return *gridGeometry_;
} }
//! Returns true if the IP of an scvf lies on a concave corner
bool scvfIntegrationPointInConcaveCorner(const SubControlVolumeFace& scvf) const
{ return GG::GeometryHelper::scvfIntegrationPointInConcaveCorner(*this, scvf); }
//! Returns the the scvf of neighbor element with the same integration point and unit outer normal
const SubControlVolumeFace& outsideScvfWithSameIntegrationPoint(const SubControlVolumeFace& scvf) const
{ return GG::GeometryHelper::outsideScvfWithSameIntegrationPoint(*this, scvf); }
private: private:
//! Binding of an element preparing the geometries of the whole stencil //! Binding of an element preparing the geometries of the whole stencil
//! called by the local jacobian to prepare element assembly //! called by the local jacobian to prepare element assembly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment