![]() |
stroid v0.6.0
Multi-block curvilinear mesh generation
|
Mesh serialization and visualization helpers. More...
Enumerations | |
| enum class | VISUALIZATION_MODE : uint8_t { NONE , ELEMENT_ID , BOUNDARY_ELEMENT_ID } |
| Visualization modes for GLVis display. More... | |
Functions | |
| void | SaveStroidMesh (const StroidMesh &mesh, const std::string &filename, const std::string &comment="") |
| void | SaveMesh (const mfem::Mesh &mesh, const std::string &filename) |
Save a mesh to MFEM's native .mesh format. | |
| void | SaveMesh (const stroid::StroidMesh &mesh, const std::string &filename) |
| Overload of SaveMesh which accepts a StroidMesh type and will internally unpack it. | |
| void | SaveVTU (mfem::Mesh &mesh, const std::string &exportName) |
| Save a mesh as a ParaView VTU dataset. | |
| void | SaveVTU (const stroid::StroidMesh &mesh, const std::string &exportName) |
| Overload of SaveVTU which accepts a StroidMesh type and will internally unpack it. | |
| std::unique_ptr< mfem::Mesh > | MakeConformingVisualizationMesh (const mfem::Mesh &mesh) |
| Make a display-only mesh copy with matching face subdivisions. This is purely for visualization and should not be used for any science goals. | |
| void | ViewMesh (mfem::Mesh &mesh, const std::string &title, VISUALIZATION_MODE mode, const std::string &vishost, int visport, bool conforming_display=true) |
| Stream a mesh to a running GLVis server for interactive viewing. | |
| void | ViewMesh (const stroid::StroidMesh &mesh, const std::string &title, VISUALIZATION_MODE mode, const std::string &vishost, int visport, bool conforming_display=true) |
| void | VisualizeFaceValence (mfem::Mesh &mesh, const std::string &vishost, int visport, bool conforming_display=true) |
| Color boundary-adjacent elements by face valence (1=surface, 2=internal). Untagged elements are zero; elements touching several tagged faces use the maximum valence. Values are computed before display subdivision. | |
| void | VisualizeFaceValence (const stroid::StroidMesh &mesh, const std::string &vishost, int visport, bool conforming_display=true) |
| std::expected< StroidMesh, std::string > | ParseStroidMesh (std::istream &is) |
| std::expected< StroidMesh, std::string > | LoadStroidMesh (const std::string &filename) |
Mesh serialization and visualization helpers.
|
strong |
| std::expected< StroidMesh, std::string > stroid::IO::LoadStroidMesh | ( | const std::string & | filename | ) |
| std::unique_ptr< mfem::Mesh > stroid::IO::MakeConformingVisualizationMesh | ( | const mfem::Mesh & | mesh | ) |
Make a display-only mesh copy with matching face subdivisions. This is purely for visualization and should not be used for any science goals.
| mesh | Source mesh whose geometry is to be displayed. |
| std::expected< StroidMesh, std::string > stroid::IO::ParseStroidMesh | ( | std::istream & | is | ) |
| void stroid::IO::SaveMesh | ( | const mfem::Mesh & | mesh, |
| const std::string & | filename ) |
Save a mesh to MFEM's native .mesh format.
| mesh | Mesh to serialize. |
| filename | Output path (including extension). |
| void stroid::IO::SaveMesh | ( | const stroid::StroidMesh & | mesh, |
| const std::string & | filename ) |
Overload of SaveMesh which accepts a StroidMesh type and will internally unpack it.
| mesh | StroidMesh to serialize. |
| filename | Path to save to |
| void stroid::IO::SaveStroidMesh | ( | const StroidMesh & | mesh, |
| const std::string & | filename, | ||
| const std::string & | comment = "" ) |
| void stroid::IO::SaveVTU | ( | const stroid::StroidMesh & | mesh, |
| const std::string & | exportName ) |
Overload of SaveVTU which accepts a StroidMesh type and will internally unpack it.
| mesh | StroidMesh to serialize. |
| filename | Path to save to |
| void stroid::IO::SaveVTU | ( | mfem::Mesh & | mesh, |
| const std::string & | exportName ) |
Save a mesh as a ParaView VTU dataset.
| mesh | Mesh to export. |
| exportName | Output base name (ParaView will add extensions). |
| void stroid::IO::ViewMesh | ( | const stroid::StroidMesh & | mesh, |
| const std::string & | title, | ||
| VISUALIZATION_MODE | mode, | ||
| const std::string & | vishost, | ||
| int | visport, | ||
| bool | conforming_display = true ) |
| void stroid::IO::ViewMesh | ( | mfem::Mesh & | mesh, |
| const std::string & | title, | ||
| VISUALIZATION_MODE | mode, | ||
| const std::string & | vishost, | ||
| int | visport, | ||
| bool | conforming_display = true ) |
Stream a mesh to a running GLVis server for interactive viewing.
| mesh | Mesh to display. |
| title | Window title shown in GLVis. |
| mode | Attribute visualization mode. |
| vishost | GLVis server host. |
| visport | GLVis server port. |
| conforming_display | Refine a display-only copy at hanging interfaces to prevent GLVis tessellation gaps. Set false to inspect the original element layout, which can show rendering gaps on curved interfaces. |
| void stroid::IO::VisualizeFaceValence | ( | const stroid::StroidMesh & | mesh, |
| const std::string & | vishost, | ||
| int | visport, | ||
| bool | conforming_display = true ) |
| void stroid::IO::VisualizeFaceValence | ( | mfem::Mesh & | mesh, |
| const std::string & | vishost, | ||
| int | visport, | ||
| bool | conforming_display = true ) |
Color boundary-adjacent elements by face valence (1=surface, 2=internal). Untagged elements are zero; elements touching several tagged faces use the maximum valence. Values are computed before display subdivision.
| mesh | Mesh whose boundary faces are inspected. |
| vishost | GLVis server host. |
| visport | GLVis server port. |
| conforming_display | Use the same display-only refinement as ViewMesh. |