GRINS-0.8.0
|
#include <mesh_builder.h>
Public Member Functions | |
MeshBuilder () | |
This Object handles building a libMesh::UnstructuredMesh subclass. More... | |
~MeshBuilder () | |
SharedPtr< libMesh::UnstructuredMesh > | build (const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD) |
Builds the libMesh::Mesh according to input options. More... | |
void | do_mesh_refinement_from_input (const GetPot &input, const libMesh::Parallel::Communicator &comm, libMesh::UnstructuredMesh &mesh) const |
Refine the mesh based on user input parameters. More... | |
Private Member Functions | |
void | generate_mesh (const std::string &mesh_build_type, const GetPot &input, libMesh::UnstructuredMesh *mesh) |
template<typename T > | |
void | deprecated_option (const GetPot &input, const std::string &old_option, const std::string &new_option, const T &default_value, T &option_value) const |
Helper function for displaying deprecated warnings. More... | |
Definition at line 41 of file mesh_builder.h.
|
inline |
This Object handles building a libMesh::UnstructuredMesh subclass.
Based on runtime input, either a generic 1, 2, or 3-dimensional mesh is built; or is read from input from a specified file.
Definition at line 48 of file mesh_builder.h.
|
inline |
Definition at line 49 of file mesh_builder.h.
SharedPtr< libMesh::UnstructuredMesh > GRINS::MeshBuilder::build | ( | const GetPot & | input, |
const libMesh::Parallel::Communicator &comm | LIBMESH_CAN_DEFAULT_TO_COMMWORLD | ||
) |
Builds the libMesh::Mesh according to input options.
Definition at line 46 of file mesh_builder.C.
Referenced by GRINSTesting::MeshBuilderTest::build_mesh(), GRINSTesting::RayfireTest::build_mesh(), GRINSTesting::RayfireTestAMR::build_mesh(), main(), and GRINSTesting::SystemHelper::setup_multiphysics_system().
|
inlineprivate |
Helper function for displaying deprecated warnings.
Definition at line 81 of file mesh_builder.h.
References grins_warning.
Referenced by do_mesh_refinement_from_input(), and generate_mesh().
void GRINS::MeshBuilder::do_mesh_refinement_from_input | ( | const GetPot & | input, |
const libMesh::Parallel::Communicator & | comm, | ||
libMesh::UnstructuredMesh & | mesh | ||
) | const |
Refine the mesh based on user input parameters.
There are several parameters that allow for the user to specify mesh refinements. They are factored out here because where we need to apply the refinements depends on the existence of a restart file.
Definition at line 355 of file mesh_builder.C.
References deprecated_option().
Referenced by GRINS::Simulation::init_restart().
|
private |
Definition at line 173 of file mesh_builder.C.
References deprecated_option().