Is a type of Body representing a body defined by a Gmsh mesh file each physical group in the Gmsh mes...
Definition BodyGmsh.h:15
std::map< std::string, int > physicalToMaterial
map from physical group name to material id
Definition BodyGmsh.h:45
static void resetSharedMesh()
Reset the shared Gmsh mesh to force reloading from file.
string particleDistribution
particle distribution in mesh elements
Definition BodyGmsh.h:46
virtual int getMaterialId() const
Return the material identification.
Definition BodyGmsh.h:38
virtual void create(Mesh &mesh, Material *material) override
Seeds particles in the body defined by a Gmsh mesh file.
virtual void setMaterialId(int material_id)
Configure the material id.
Definition BodyGmsh.h:34
BodyGmsh(const std::string &mesh_file="", std::map< std::string, int > physical_to_material={}, const std::string &particle_distribution="barycentric")
Default constructor.
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:15