GRINS-0.7.0
simulation_builder.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2016 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 
26 #ifndef GRINS_SIMULATION_BUILDER_H
27 #define GRINS_SIMULATION_BUILDER_H
28 
29 // GRINS
30 #include "grins/mesh_builder.h"
31 #include "grins/solver_factory.h"
33 #include "grins/qoi_factory.h"
35 #include "grins/shared_ptr.h"
36 
37 namespace GRINS
38 {
40  {
41  public:
42 
44  virtual ~SimulationBuilder(){};
45 
46  SharedPtr<libMesh::UnstructuredMesh> build_mesh
47  ( const GetPot& input,
48  const libMesh::Parallel::Communicator &comm
49  LIBMESH_CAN_DEFAULT_TO_COMMWORLD );
50 
51  SharedPtr<GRINS::Solver> build_solver( const GetPot& input );
52 
53  SharedPtr<GRINS::Visualization> build_vis
54  ( const GetPot& input,
55  const libMesh::Parallel::Communicator &comm
56  LIBMESH_CAN_DEFAULT_TO_COMMWORLD );
57 
58  SharedPtr<CompositeQoI> build_qoi( const GetPot& input );
59 
60  SharedPtr<PostProcessedQuantities<libMesh::Real> > build_postprocessing( const GetPot& input );
61 
62  void attach_solver_factory( SharedPtr<SolverFactory> solver_factory );
63 
64  void attach_mesh_builder( SharedPtr<MeshBuilder> mesh_builder );
65 
66  void attach_vis_factory( SharedPtr<VisualizationFactory> vis_factory );
67 
68  void attach_qoi_factory( SharedPtr<QoIFactory> qoi_factory );
69 
70  void attach_postprocessing_factory( SharedPtr<PostprocessingFactory> postprocessing_factory );
71 
72  const MeshBuilder& mesh_builder() const;
73 
74  protected:
75 
76  SharedPtr<MeshBuilder> _mesh_builder;
77  SharedPtr<SolverFactory> _solver_factory;
78  SharedPtr<VisualizationFactory> _vis_factory;
79  SharedPtr<QoIFactory> _qoi_factory;
80  SharedPtr<PostprocessingFactory> _postprocessing_factory;
81 
82  }; //class SimulationBuilder
83 } // namespace GRINS
84 
85 #endif //GRINS_SIMULATION_BUILDER_H
SharedPtr< GRINS::Solver > build_solver(const GetPot &input)
SharedPtr< SolverFactory > _solver_factory
SharedPtr< VisualizationFactory > _vis_factory
SharedPtr< CompositeQoI > build_qoi(const GetPot &input)
GRINS namespace.
const MeshBuilder & mesh_builder() const
SharedPtr< QoIFactory > _qoi_factory
void attach_mesh_builder(SharedPtr< MeshBuilder > mesh_builder)
SharedPtr< PostprocessingFactory > _postprocessing_factory
void attach_vis_factory(SharedPtr< VisualizationFactory > vis_factory)
SharedPtr< MeshBuilder > _mesh_builder
void attach_solver_factory(SharedPtr< SolverFactory > solver_factory)
void attach_qoi_factory(SharedPtr< QoIFactory > qoi_factory)
SharedPtr< GRINS::Visualization > build_vis(const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD)
SharedPtr< PostProcessedQuantities< libMesh::Real > > build_postprocessing(const GetPot &input)
SharedPtr< libMesh::UnstructuredMesh > build_mesh(const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD)
void attach_postprocessing_factory(SharedPtr< PostprocessingFactory > postprocessing_factory)

Generated on Thu Jun 2 2016 21:52:28 for GRINS-0.7.0 by  doxygen 1.8.10