Skip to content
Snippets Groups Projects
Commit 9d2f3c46 authored by Timo Koch's avatar Timo Koch
Browse files

[scvf] Add global index of the scvf to itself

parent 368917ee
No related branches found
No related tags found
1 merge request!617[WIP] Next
...@@ -44,11 +44,13 @@ class SubControlVolumeFace ...@@ -44,11 +44,13 @@ class SubControlVolumeFace
public: public:
SubControlVolumeFace(const Geometry& geometry, SubControlVolumeFace(const Geometry& geometry,
const GlobalPosition& unitOuterNormal, const GlobalPosition& unitOuterNormal,
IndexType scvfIndex,
const std::vector<IndexType>& scvIndices, const std::vector<IndexType>& scvIndices,
const std::vector<IndexType>& volVarsIndices, const std::vector<IndexType>& volVarsIndices,
bool boundary = false) bool boundary = false)
: geometry_(geometry), : geometry_(geometry),
unitOuterNormal_(unitOuterNormal), unitOuterNormal_(unitOuterNormal),
scvfIndex_(scvfIndex),
scvIndices_(scvIndices), scvIndices_(scvIndices),
volVarsIndices_(volVarsIndices), volVarsIndices_(volVarsIndices),
boundary_(boundary) {} boundary_(boundary) {}
...@@ -108,9 +110,16 @@ public: ...@@ -108,9 +110,16 @@ public:
return volVarsIndices_[1]; return volVarsIndices_[1];
} }
//! The global index of this sub control volume face
IndexType index() const
{
return scvfIndex_;
}
private: private:
Geometry geometry_; Geometry geometry_;
GlobalPosition unitOuterNormal_; GlobalPosition unitOuterNormal_;
IndexType scvfIndex_;
std::vector<IndexType> scvIndices_, volVarsIndices_; std::vector<IndexType> scvIndices_, volVarsIndices_;
bool boundary_; bool boundary_;
}; };
......
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