GRINS-0.8.0
visualization.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_VISUALIZATION_H
27 #define GRINS_VISUALIZATION_H
28 
29 // C++
30 #include <string>
31 #include <vector>
32 
33 // libMesh
34 #include "libmesh/equation_systems.h"
35 
36 // GRINS
37 #include "grins/shared_ptr.h"
38 
39 // libMesh forward declarations
40 class GetPot;
41 namespace libMesh
42 {
43  class ParameterVector;
44 }
45 
46 namespace GRINS
47 {
48  // Forward declarations
49  class MultiphysicsSystem;
50 
52  {
53  public:
54 
55  Visualization( const GetPot& input,
56  const libMesh::Parallel::Communicator &comm
57  LIBMESH_CAN_DEFAULT_TO_COMMWORLD );
58  virtual ~Visualization();
59 
60  void output( SharedPtr<libMesh::EquationSystems> equation_system );
61  void output( SharedPtr<libMesh::EquationSystems> equation_system,
62  const unsigned int time_step, const libMesh::Real time );
63 
64  void output_residual( SharedPtr<libMesh::EquationSystems> equation_system,
65  GRINS::MultiphysicsSystem* system );
66 
67  virtual void output_residual( SharedPtr<libMesh::EquationSystems> equation_system,
69  const unsigned int time_step, const libMesh::Real time ) =0;
70 
72  (SharedPtr<libMesh::EquationSystems> equation_system,
74  const libMesh::ParameterVector & params);
75 
77  (SharedPtr<libMesh::EquationSystems> equation_system,
79  const libMesh::ParameterVector & params,
80  const unsigned int time_step, const libMesh::Real time ) =0;
81 
82  void output_adjoint( SharedPtr<libMesh::EquationSystems> equation_system,
83  GRINS::MultiphysicsSystem* system );
84 
85  virtual void output_adjoint( SharedPtr<libMesh::EquationSystems> equation_system,
87  const unsigned int time_step,
88  const libMesh::Real time ) =0;
89 
91  (SharedPtr<libMesh::EquationSystems> equation_system,
93  const libMesh::ParameterVector & params);
94 
96  (SharedPtr<libMesh::EquationSystems> equation_system,
98  const libMesh::ParameterVector & params,
99  const unsigned int time_step, const libMesh::Real time ) =0;
100 
101  void dump_visualization( SharedPtr<libMesh::EquationSystems> equation_system,
102  const std::string& filename_prefix, const libMesh::Real time );
103 
104  protected:
105 
106  // Visualization options
108  std::vector<std::string> _output_format;
109  };
110 }// namespace GRINS
111 #endif // GRINS_VISUALIZATION_H
void output_residual(SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system)
void dump_visualization(SharedPtr< libMesh::EquationSystems > equation_system, const std::string &filename_prefix, const libMesh::Real time)
void output_adjoint(SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system)
void output_residual_sensitivities(SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector &params)
std::vector< std::string > _output_format
std::string _vis_output_file_prefix
virtual ~Visualization()
Definition: visualization.C:93
GRINS namespace.
Visualization(const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD)
Definition: visualization.C:50
Interface with libMesh for solving Multiphysics problems.
void output(SharedPtr< libMesh::EquationSystems > equation_system)
Definition: visualization.C:98
void output_solution_sensitivities(SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector &params)

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