Class UnpartitionedMesh
Defined in File unpartitioned_mesh.h
Nested Relationships
Nested Types
Class Documentation
-
class UnpartitionedMesh
This object is intended for unpartitioned meshes that still require partitioning.
Public Functions
-
UnpartitionedMesh()
-
~UnpartitionedMesh()
-
inline unsigned int GetDimension() const
-
inline void SetDimension(unsigned int dim)
-
inline CoordinateSystemType GetCoordinateSystem() const
-
inline void SetCoordinateSystem(const CoordinateSystemType coord_sys)
-
inline void SetExtruded(bool extruded)
-
inline bool IsExtruded() const
-
void SetOrthoAttributes(size_t nx, size_t ny, size_t nz)
-
inline const OrthoMeshAttributes &GetOrthoAttributes() const
-
void ComputeBoundingBox()
-
inline const std::map<uint64_t, std::string> &GetBoundaryIDMap() const
-
inline std::map<uint64_t, std::string> &GetBoundaryIDMap()
-
inline const std::map<std::string, uint64_t> &GetBoundaryNameMap() const
-
inline std::map<std::string, uint64_t> &GetBoundaryNameMap()
-
inline const std::vector<std::set<uint64_t>> &GetVertextCellSubscriptions() const
-
inline size_t GetNumberOfCells() const
-
inline std::vector<std::shared_ptr<LightWeightCell>> &GetRawCells()
-
inline const std::vector<std::shared_ptr<LightWeightCell>> &GetRawCells() const
-
inline std::vector<std::shared_ptr<LightWeightCell>> &GetRawBoundaryCells()
-
inline const std::vector<std::shared_ptr<LightWeightCell>> &GetRawBoundaryCells() const
-
void BuildMeshConnectivity()
Establishes neighbor connectivity for the light-weight mesh.
Two faces are connected when they have the same vertices. Throws std::logic_error when the mesh is folded, that is, when the two cells of an interior face lie on the same side of it and overlap, or when a face belongs to more than two cells.
-
void ComputeCentroids()
Compute centroids for all cells.
-
void CheckQuality()
Checks the quality of the cells.
Throws std::logic_error when a polygon or polyhedron is inverted, with its faces ordered inward, or has zero area or volume, or when an edge is shorter than 1e-12. Warns when the centroid of a cell lies outside the plane of a triangle of one of its faces, as it can in a non-convex cell.
-
uint64_t MakeBoundaryID(const std::string &boundary_name)
Makes or gets a boundary that uniquely identifies the given name.
-
void AddBoundary(uint64_t id, const std::string &name)
Protected Attributes
-
unsigned int dim_
Spatial mesh dimension.
-
CoordinateSystemType coord_sys_
-
bool extruded_
-
OrthoMeshAttributes ortho_attrs_
-
std::map<uint64_t, std::string> boundary_id_map_
-
std::map<std::string, uint64_t> boundary_name_map_
-
std::vector<std::shared_ptr<LightWeightCell>> raw_cells_
-
std::vector<std::shared_ptr<LightWeightCell>> raw_boundary_cells_
-
std::vector<std::set<uint64_t>> vertex_cell_subscriptions_
-
struct BoundBox
-
struct LightWeightCell
-
struct LightWeightFace
-
struct Options
-
UnpartitionedMesh()