Skip to content
Snippets Groups Projects
Commit bfc13f65 authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[MeL] mesh can be axially symmetric

parent fc396b70
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,16 @@ public: ...@@ -125,6 +125,16 @@ public:
MeshLib::Properties & getProperties() { return _properties; } MeshLib::Properties & getProperties() { return _properties; }
MeshLib::Properties const& getProperties() const { return _properties; } MeshLib::Properties const& getProperties() const { return _properties; }
bool isAxiallySymmetric() const { return _is_axially_symmetric; }
void setAxiallySymmetric(bool is_axial_symmetric) {
_is_axially_symmetric = is_axial_symmetric;
if (_is_axially_symmetric && getDimension() != 2) {
OGS_FATAL(
"Axial symmetry is implemented only for two-dimensional "
"meshes.");
}
}
protected: protected:
/// Set the minimum and maximum length over the edges of the mesh. /// Set the minimum and maximum length over the edges of the mesh.
void calcEdgeLengthRange(); void calcEdgeLengthRange();
...@@ -163,6 +173,8 @@ protected: ...@@ -163,6 +173,8 @@ protected:
std::vector<Element*> _elements; std::vector<Element*> _elements;
std::size_t _n_base_nodes; std::size_t _n_base_nodes;
Properties _properties; Properties _properties;
bool _is_axially_symmetric = false;
}; /* class */ }; /* class */
......
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