GRINS-0.8.0
|
Manages runtime construction of Physics objects. More...
#include <physics_builder.h>
Public Member Functions | |
PhysicsBuilder () | |
~PhysicsBuilder () | |
Static Public Member Functions | |
static PhysicsList | build_physics_map (const GetPot &input) |
Returns container of constructed Physics objects. More... | |
Static Private Member Functions | |
static void | parse_requested_physics (const GetPot &input, std::set< std::string > &requested_physics) |
Parses the requested Physics from input and populates the set passed to this function. More... | |
Manages runtime construction of Physics objects.
This will parse the input file for the requested Physics and manage their construction. Actual construction of the Physics object is delegated to PhysicsFactoryBase subclasses. The PhysicsBuilder merely manages tasks around them as needed. To add a new Physics, the user should instantiate an appropriate PhysicsFactoryBase subclass.
Definition at line 49 of file physics_builder.h.
|
inline |
Definition at line 53 of file physics_builder.h.
|
inline |
Definition at line 55 of file physics_builder.h.
|
static |
Returns container of constructed Physics objects.
Definition at line 38 of file physics_builder.C.
References GRINS::FactoryAbstract< Physics >::build(), GRINS::PhysicsNaming::clear_suffix(), GRINS::PhysicsNaming::extract_physics(), GRINS::PhysicsNaming::extract_suffix(), parse_requested_physics(), GRINS::FactoryWithGetPot< Physics >::set_getpot(), GRINS::FactoryWithGetPotPhysicsName< Physics >::set_physics_name(), and GRINS::PhysicsNaming::set_suffix().
Referenced by GRINS::Simulation::init_multiphysics_system().
|
staticprivate |
Parses the requested Physics from input and populates the set passed to this function.
Definition at line 96 of file physics_builder.C.
Referenced by build_physics_map().