13 #include "libmesh/replicated_mesh.h" 32 std::unique_ptr<MeshBase>
generate()
override;
39 const std::vector<std::unique_ptr<MeshBase> *>
_mesh_ptrs;
42 const std::vector<std::vector<unsigned int>> &
_pattern;
45 std::vector<std::unique_ptr<ReplicatedMesh>>
_meshes;
59 const std::map<subdomain_id_type, std::string> & increment_subdomain_map);
Reads one or more 2D mesh files and stitches them together based on a provided two-dimensional patter...
void mergeSubdomainNameMaps(std::map< subdomain_id_type, std::string > &main_subdomain_map, const std::map< subdomain_id_type, std::string > &increment_subdomain_map)
Merges the subdomain name maps between two meshes, throws an error if input maps contain shared subdo...
PatternedMeshGenerator(const InputParameters ¶meters)
std::vector< std::unique_ptr< ReplicatedMesh > > _meshes
Holds the pointers to the input generated meshes.
const std::vector< std::vector< unsigned int > > & _pattern
The pattern, starting with the upper left corner.
std::vector< std::unique_ptr< ReplicatedMesh > > _row_meshes
Holds a mesh for each row, these will be stitched together in the end.
static InputParameters validParams()
const std::vector< std::unique_ptr< MeshBase > * > _mesh_ptrs
Holds pointers to the meshes before they are generated.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
MeshGenerators are objects that can modify or add to an existing mesh.
const std::vector< MeshGeneratorName > & _input_names
The mesh generators to read.