GRINS-0.8.0
List of all members | Public Member Functions | Protected Attributes
GRINS::SimulationBuilder Class Reference

#include <simulation_builder.h>

Public Member Functions

 SimulationBuilder ()
 
virtual ~SimulationBuilder ()
 
SharedPtr< libMesh::UnstructuredMesh > build_mesh (const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD)
 
SharedPtr< GRINS::Visualizationbuild_vis (const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD)
 
SharedPtr< CompositeQoIbuild_qoi (const GetPot &input)
 
SharedPtr< PostProcessedQuantities< libMesh::Real > > build_postprocessing (const GetPot &input)
 
void attach_mesh_builder (SharedPtr< MeshBuilder > mesh_builder)
 
void attach_vis_factory (SharedPtr< VisualizationFactory > vis_factory)
 
void attach_qoi_factory (SharedPtr< QoIFactory > qoi_factory)
 
void attach_postprocessing_factory (SharedPtr< PostprocessingFactory > postprocessing_factory)
 
const MeshBuildermesh_builder () const
 

Protected Attributes

SharedPtr< MeshBuilder_mesh_builder
 
SharedPtr< VisualizationFactory_vis_factory
 
SharedPtr< QoIFactory_qoi_factory
 
SharedPtr< PostprocessingFactory_postprocessing_factory
 

Detailed Description

Definition at line 38 of file simulation_builder.h.

Constructor & Destructor Documentation

GRINS::SimulationBuilder::SimulationBuilder ( )

Definition at line 35 of file simulation_builder.C.

36  : _mesh_builder( new MeshBuilder ),
37  _vis_factory( new VisualizationFactory ),
38  _qoi_factory( new QoIFactory ),
39  _postprocessing_factory( new PostprocessingFactory )
40  {}
SharedPtr< VisualizationFactory > _vis_factory
SharedPtr< QoIFactory > _qoi_factory
SharedPtr< PostprocessingFactory > _postprocessing_factory
SharedPtr< MeshBuilder > _mesh_builder
virtual GRINS::SimulationBuilder::~SimulationBuilder ( )
inlinevirtual

Definition at line 43 of file simulation_builder.h.

43 {};

Member Function Documentation

void GRINS::SimulationBuilder::attach_mesh_builder ( SharedPtr< MeshBuilder mesh_builder)

Definition at line 42 of file simulation_builder.C.

References _mesh_builder, and mesh_builder().

43  {
45  return;
46  }
const MeshBuilder & mesh_builder() const
SharedPtr< MeshBuilder > _mesh_builder
void GRINS::SimulationBuilder::attach_postprocessing_factory ( SharedPtr< PostprocessingFactory postprocessing_factory)

Definition at line 59 of file simulation_builder.C.

References _postprocessing_factory.

60  {
61  this->_postprocessing_factory = postprocessing_factory;
62  }
SharedPtr< PostprocessingFactory > _postprocessing_factory
void GRINS::SimulationBuilder::attach_qoi_factory ( SharedPtr< QoIFactory qoi_factory)

Definition at line 54 of file simulation_builder.C.

References _qoi_factory.

55  {
56  this->_qoi_factory = qoi_factory;
57  }
SharedPtr< QoIFactory > _qoi_factory
void GRINS::SimulationBuilder::attach_vis_factory ( SharedPtr< VisualizationFactory vis_factory)

Definition at line 48 of file simulation_builder.C.

References _vis_factory.

49  {
50  this->_vis_factory = vis_factory;
51  return;
52  }
SharedPtr< VisualizationFactory > _vis_factory
SharedPtr< libMesh::UnstructuredMesh > GRINS::SimulationBuilder::build_mesh ( const GetPot &  input,
const libMesh::Parallel::Communicator &comm  LIBMESH_CAN_DEFAULT_TO_COMMWORLD 
)

Definition at line 65 of file simulation_builder.C.

67  {
68  return (this->_mesh_builder)->build(input, comm);
69  }
SharedPtr< MeshBuilder > _mesh_builder
SharedPtr< PostProcessedQuantities< libMesh::Real > > GRINS::SimulationBuilder::build_postprocessing ( const GetPot &  input)

Definition at line 84 of file simulation_builder.C.

References _postprocessing_factory.

85  {
86  return (this->_postprocessing_factory)->build(input);
87  }
SharedPtr< PostprocessingFactory > _postprocessing_factory
SharedPtr< CompositeQoI > GRINS::SimulationBuilder::build_qoi ( const GetPot &  input)

Definition at line 78 of file simulation_builder.C.

References _qoi_factory.

Referenced by GRINS::Simulation::init_qois().

79  {
80  return (this->_qoi_factory)->build(input);
81  }
SharedPtr< QoIFactory > _qoi_factory
SharedPtr< GRINS::Visualization > GRINS::SimulationBuilder::build_vis ( const GetPot &  input,
const libMesh::Parallel::Communicator &comm  LIBMESH_CAN_DEFAULT_TO_COMMWORLD 
)

Definition at line 72 of file simulation_builder.C.

74  {
75  return (this->_vis_factory)->build(input, comm);
76  }
SharedPtr< VisualizationFactory > _vis_factory
const MeshBuilder & GRINS::SimulationBuilder::mesh_builder ( ) const

Definition at line 89 of file simulation_builder.C.

References _mesh_builder.

Referenced by attach_mesh_builder(), and GRINS::Simulation::init_restart().

90  {
91  return *_mesh_builder;
92  }
SharedPtr< MeshBuilder > _mesh_builder

Member Data Documentation

SharedPtr<MeshBuilder> GRINS::SimulationBuilder::_mesh_builder
protected

Definition at line 71 of file simulation_builder.h.

Referenced by attach_mesh_builder(), and mesh_builder().

SharedPtr<PostprocessingFactory> GRINS::SimulationBuilder::_postprocessing_factory
protected

Definition at line 74 of file simulation_builder.h.

Referenced by attach_postprocessing_factory(), and build_postprocessing().

SharedPtr<QoIFactory> GRINS::SimulationBuilder::_qoi_factory
protected

Definition at line 73 of file simulation_builder.h.

Referenced by attach_qoi_factory(), and build_qoi().

SharedPtr<VisualizationFactory> GRINS::SimulationBuilder::_vis_factory
protected

Definition at line 72 of file simulation_builder.h.

Referenced by attach_vis_factory().


The documentation for this class was generated from the following files:

Generated on Tue Dec 19 2017 12:47:32 for GRINS-0.8.0 by  doxygen 1.8.9.1