GRINS-0.7.0
reacting_low_mach_navier_stokes_base.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_REACTING_LOW_MACH_NAVIER_STOKES_BASE_H
27 #define GRINS_REACTING_LOW_MACH_NAVIER_STOKES_BASE_H
28 
29 // GRINS
32 
33 namespace GRINS
34 {
35  template<typename Mixture>
37  {
38  public:
39 
41  const GetPot& input)
42  : ReactingLowMachNavierStokesAbstract(physics_name,input),
43  _gas_mixture(input,MaterialsParsing::material_name(input,PhysicsNaming::reacting_low_mach_navier_stokes()))
44  {}
45 
47 
48  // Registers all parameters in this physics and in its property
49  // classes
50  virtual void register_parameter
51  ( const std::string & param_name,
53  const
54  {
55  ParameterUser::register_parameter(param_name, param_pointer);
56  _gas_mixture.register_parameter(param_name, param_pointer);
57  }
58 
59  const Mixture& gas_mixture() const;
60 
61  protected:
62 
63  Mixture _gas_mixture;
64 
65  private:
66 
68 
69  }; // class ReactingLowMachNavierStokesBase
70 
71  template<typename Mixture>
72  inline
74  {
75  return _gas_mixture;
76  }
77 
78 } // namespace GRINS
79 
80 #endif //GRINS_REACTING_LOW_MACH_NAVIER_STOKES_BASE_H
ReactingLowMachNavierStokesBase(const PhysicsName &physics_name, const GetPot &input)
GRINS namespace.
Helper functions for parsing material properties.
std::string PhysicsName
virtual void register_parameter(const std::string &param_name, libMesh::ParameterMultiAccessor< libMesh::Number > &param_pointer) const
Each subclass will register its copy of an independent.
virtual void register_parameter(const std::string &param_name, libMesh::ParameterMultiAccessor< libMesh::Number > &param_pointer) const
Each subclass will register its copy of an independent.

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