GRINS-0.8.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-2017 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"
32 #include "grins/qoi_factory.h"
34 #include "grins/shared_ptr.h"
35 
36 namespace GRINS
37 {
39  {
40  public:
41 
43  virtual ~SimulationBuilder(){};
44 
45  SharedPtr<libMesh::UnstructuredMesh> build_mesh
46  ( const GetPot& input,
47  const libMesh::Parallel::Communicator &comm
48  LIBMESH_CAN_DEFAULT_TO_COMMWORLD );
49 
50  SharedPtr<GRINS::Visualization> build_vis
51  ( const GetPot& input,
52  const libMesh::Parallel::Communicator &comm
53  LIBMESH_CAN_DEFAULT_TO_COMMWORLD );
54 
55  SharedPtr<CompositeQoI> build_qoi( const GetPot& input );
56 
57  SharedPtr<PostProcessedQuantities<libMesh::Real> > build_postprocessing( const GetPot& input );
58 
59  void attach_mesh_builder( SharedPtr<MeshBuilder> mesh_builder );
60 
61  void attach_vis_factory( SharedPtr<VisualizationFactory> vis_factory );
62 
63  void attach_qoi_factory( SharedPtr<QoIFactory> qoi_factory );
64 
65  void attach_postprocessing_factory( SharedPtr<PostprocessingFactory> postprocessing_factory );
66 
67  const MeshBuilder& mesh_builder() const;
68 
69  protected:
70 
71  SharedPtr<MeshBuilder> _mesh_builder;
72  SharedPtr<VisualizationFactory> _vis_factory;
73  SharedPtr<QoIFactory> _qoi_factory;
74  SharedPtr<PostprocessingFactory> _postprocessing_factory;
75 
76  }; //class SimulationBuilder
77 } // namespace GRINS
78 
79 #endif //GRINS_SIMULATION_BUILDER_H
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_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 Tue Dec 19 2017 12:47:28 for GRINS-0.8.0 by  doxygen 1.8.9.1