Public API surface for the stroid mesh generation library.
This namespace aggregates configuration, topology construction, mapping, and mesh utilities for building curvilinear multi-block meshes.
- Example: build a mesh programmatically
#include <memory>
#include "mfem.hpp"
#include "fourdst/config/config.h"
int main() {
fourdst::config::Config<stroid::config::MeshConfig> cfg;
}
void SaveVTU(mfem::Mesh &mesh, const std::string &exportName)
Save a mesh as a ParaView VTU dataset.
Definition mesh.cpp:710
void PromoteToHighOrder(mfem::Mesh &mesh, const fourdst::config::Config< config::MeshConfig > &config)
Promote a mesh to high-order by attaching an H1 nodal finite element space.
Definition curvilinear.cpp:43
void Finalize(mfem::Mesh &mesh, const fourdst::config::Config< config::MeshConfig > &config)
Finalize topology, validate orientation, and apply the configured refinement policy.
Definition topology.cpp:234
void ProjectMesh(mfem::Mesh &mesh, const fourdst::config::Config< config::MeshConfig > &config)
Project high-order mesh nodes using the configured curvilinear mapping.
Definition curvilinear.cpp:47
std::unique_ptr< mfem::Mesh > BuildSkeleton(const fourdst::config::Config< config::MeshConfig > &config)
Build the initial multi-block mesh topology for the star model.
Definition topology.cpp:114
- Example: tweak config then visualize
fourdst::config::Config<stroid::config::MeshConfig> cfg;
cfg->order = 4;
cfg->flattening = 0.1;
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.
Definition mesh.cpp:727
@ ELEMENT_ID
Color elements by their element attribute/ID.
Definition mesh.h:19