GRINS-0.6.0
reacting_low_mach_navier_stokes.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_REACTING_LOW_MACH_NAVIER_STOKES_H
27 #define GRINS_REACTING_LOW_MACH_NAVIER_STOKES_H
28 
29 // GRINS
31 
32 namespace GRINS
33 {
34  template<typename Mixture, typename Evaluator>
36  {
37  public:
38 
39  ReactingLowMachNavierStokes(const PhysicsName& physics_name, const GetPot& input);
41 
43  virtual void read_input_options( const GetPot& input );
44 
46  virtual void register_postprocessing_vars( const GetPot& input,
48 
49  // Context initialization
50  virtual void init_context( AssemblyContext& context );
51 
52  // Time dependent part(s)
53  virtual void element_time_derivative( bool compute_jacobian,
54  AssemblyContext& context,
55  CachedValues& cache );
56 
57  virtual void side_time_derivative( bool compute_jacobian,
58  AssemblyContext& context,
59  CachedValues& cache );
60 
61  virtual void side_constraint( bool compute_jacobian,
62  AssemblyContext& context,
63  CachedValues& cache );
64 
65  // Mass matrix part(s)
66  virtual void mass_residual( bool compute_jacobian,
67  AssemblyContext& context,
68  CachedValues& cache );
69 
70  virtual void compute_element_time_derivative_cache( const AssemblyContext& context,
71  CachedValues& cache );
72 
73  virtual void compute_side_time_derivative_cache( const AssemblyContext& context,
74  CachedValues& cache );
75 
76  virtual void compute_postprocessed_quantity( unsigned int quantity_index,
77  const AssemblyContext& context,
78  const libMesh::Point& point,
79  libMesh::Real& value );
80 
81 
82 
83  protected:
84 
87 
89 
91  unsigned int _rho_index;
92 
94  std::vector<unsigned int> _species_viscosity;
95 
97  unsigned int _mu_index;
98 
100  unsigned int _k_index;
101 
103  unsigned int _cp_index;
104 
106  std::vector<unsigned int> _mole_fractions_index;
107 
109  std::vector<unsigned int> _h_s_index;
110 
112  std::vector<unsigned int> _omega_dot_index;
113 
114  private:
115 
117 
118  };
119 
120 } // namespace GRINS
121 
122 #endif //GRINS_REACTING_LOW_MACH_NAVIER_STOKES_H
virtual void register_postprocessing_vars(const GetPot &input, PostProcessedQuantities< libMesh::Real > &postprocessing)
Register postprocessing variables for ReactingLowMachNavierStokes.
std::vector< unsigned int > _species_viscosity
Index from registering this quantity. Each species will have it's own index.
std::vector< unsigned int > _mole_fractions_index
Index from registering this quantity. Each species will have it's own index.
virtual void side_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for boundaries of elements on the domain boundary.
unsigned int _k_index
Index from registering this quantity.
virtual void compute_side_time_derivative_cache(const AssemblyContext &context, CachedValues &cache)
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for element interiors.
GRINS namespace.
virtual void compute_element_time_derivative_cache(const AssemblyContext &context, CachedValues &cache)
std::string PhysicsName
unsigned int _mu_index
Index from registering this quantity.
std::vector< unsigned int > _omega_dot_index
Index from registering this quantity. Each species will have it's own index.
unsigned int _rho_index
Index from registering this quantity.
std::vector< unsigned int > _h_s_index
Index from registering this quantity. Each species will have it's own index.
virtual void mass_residual(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part...
virtual void side_constraint(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Constraint part(s) of physics for boundaries of elements on the domain boundary.
virtual void compute_postprocessed_quantity(unsigned int quantity_index, const AssemblyContext &context, const libMesh::Point &point, libMesh::Real &value)
Class to hold typical boundary condition methods.
unsigned int _cp_index
Index from registering this quantity.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
virtual void read_input_options(const GetPot &input)
Read options from GetPot input file.

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