GRINS-0.6.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-2015 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 #include "boost/tr1/memory.hpp"
33 
34 // libMesh
35 #include "libmesh/equation_systems.h"
36 
37 // libMesh forward declarations
38 class GetPot;
39 namespace libMesh
40 {
41  class ParameterVector;
42 }
43 
44 namespace GRINS
45 {
46  // Forward declarations
47  class MultiphysicsSystem;
48 
50  {
51  public:
52 
53  Visualization( const GetPot& input,
54  const libMesh::Parallel::Communicator &comm
55  LIBMESH_CAN_DEFAULT_TO_COMMWORLD );
56  virtual ~Visualization();
57 
58  void output( std::tr1::shared_ptr<libMesh::EquationSystems> equation_system );
59  void output( std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
60  const unsigned int time_step, const libMesh::Real time );
61 
62  void output_residual( std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
63  GRINS::MultiphysicsSystem* system );
64 
65  virtual void output_residual( std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
67  const unsigned int time_step, const libMesh::Real time ) =0;
68 
70  (std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
72  const libMesh::ParameterVector & params);
73 
75  (std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
77  const libMesh::ParameterVector & params,
78  const unsigned int time_step, const libMesh::Real time ) =0;
79 
80  void output_adjoint( std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
81  GRINS::MultiphysicsSystem* system );
82 
83  virtual void output_adjoint( std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
85  const unsigned int time_step,
86  const libMesh::Real time ) =0;
87 
89  (std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
91  const libMesh::ParameterVector & params);
92 
94  (std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
96  const libMesh::ParameterVector & params,
97  const unsigned int time_step, const libMesh::Real time ) =0;
98 
99  void dump_visualization( std::tr1::shared_ptr<libMesh::EquationSystems> equation_system,
100  const std::string& filename_prefix, const libMesh::Real time );
101 
102  protected:
103 
104  // Visualization options
106  std::vector<std::string> _output_format;
107  };
108 }// namespace GRINS
109 #endif // GRINS_VISUALIZATION_H
void dump_visualization(std::tr1::shared_ptr< libMesh::EquationSystems > equation_system, const std::string &filename_prefix, const libMesh::Real time)
void output_residual_sensitivities(std::tr1::shared_ptr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector &params)
void output_solution_sensitivities(std::tr1::shared_ptr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector &params)
void output(std::tr1::shared_ptr< libMesh::EquationSystems > equation_system)
Definition: visualization.C:98
std::vector< std::string > _output_format
std::string _vis_output_file_prefix
virtual ~Visualization()
Definition: visualization.C:93
GRINS namespace.
void output_adjoint(std::tr1::shared_ptr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system)
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_residual(std::tr1::shared_ptr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system)

Generated on Mon Jun 22 2015 21:32:20 for GRINS-0.6.0 by  doxygen 1.8.9.1