GRINS-0.8.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-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_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  libMesh::UniquePtr<Mixture> & gas_mix )
43  : ReactingLowMachNavierStokesAbstract(physics_name,input),
44  _gas_mixture(gas_mix.release())
45  {}
46 
48 
49  // Registers all parameters in this physics and in its property
50  // classes
51  virtual void register_parameter
52  ( const std::string & param_name,
54  const
55  {
56  ParameterUser::register_parameter(param_name, param_pointer);
57  _gas_mixture->register_parameter(param_name, param_pointer);
58  }
59 
60  const Mixture & gas_mixture() const;
61 
62  protected:
63 
64  libMesh::UniquePtr<Mixture> _gas_mixture;
65 
66  private:
67 
69 
70  }; // class ReactingLowMachNavierStokesBase
71 
72  template<typename Mixture>
73  inline
75  {
76  return *_gas_mixture;
77  }
78 
79 } // namespace GRINS
80 
81 #endif //GRINS_REACTING_LOW_MACH_NAVIER_STOKES_BASE_H
GRINS namespace.
ReactingLowMachNavierStokesBase(const PhysicsName &physics_name, const GetPot &input, libMesh::UniquePtr< Mixture > &gas_mix)
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 Tue Dec 19 2017 12:47:28 for GRINS-0.8.0 by  doxygen 1.8.9.1