GRINS-0.7.0
gas_recombination_catalytic_wall.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 #ifndef GRINS_GAS_RECOMBINATION_CATALYTIC_WALL_H
26 #define GRINS_GAS_RECOMBINATION_CATALYTIC_WALL_H
27 
28 // GRINS
29 #include "grins/var_typedefs.h"
31 
32 namespace GRINS
33 {
34 
35  template<typename Chemistry>
37  {
38  public:
39 
40  GasRecombinationCatalyticWall( SharedPtr<Chemistry>& chem,
41  SharedPtr<CatalycityBase>& gamma,
42  const std::vector<VariableIndex>& species_vars,
43  VariableIndex T_var,
44  libMesh::Real p0,
45  unsigned int reactant_species_idx,
46  unsigned int product_species_idx );
47 
49  GasRecombinationCatalyticWall( const Chemistry& chem_mixture,
50  CatalycityBase& gamma,
51  const unsigned int reactant_species_idx,
52  const unsigned int product_species_idx );
53 
55 
57  virtual void init( const libMesh::FEMSystem& system );
58 
60  virtual void apply_fluxes( AssemblyContext& context,
61  const CachedValues& cache,
62  const bool request_jacobian );
63 
64  virtual bool eval_flux( bool compute_jacobian,
65  AssemblyContext& context,
66  libMesh::Real sign,
67  bool is_axisymmetric );
68 
69  libMesh::Real compute_reactant_mass_flux( const libMesh::Real rho,
70  const libMesh::Real Y_r,
71  const libMesh::Real T );
72 
73  libMesh::Real compute_product_mass_flux( const libMesh::Real rho,
74  const libMesh::Real Y_r,
75  const libMesh::Real T );
76 
77  protected:
78 
79  const unsigned int _reactant_species_idx;
81 
82  const unsigned int _product_species_idx;
84 
85  };
86 
87  template<typename Chemistry>
88  inline
90  const libMesh::Real Y_r,
91  const libMesh::Real T )
92  {
93  const libMesh::Real rho_r = rho*Y_r;
94 
95  const libMesh::Real omega_dot = this->omega_dot( rho_r, T );
96 
97  return -omega_dot;
98  }
99 
100  template<typename Chemistry>
101  inline
103  const libMesh::Real Y_r,
104  const libMesh::Real T )
105  {
106  return -(this->compute_reactant_mass_flux(rho,Y_r,T));
107  }
108 
109 } // end namespace GRINS
110 
111 #endif // GRINS_GAS_RECOMBINATION_CATALYTIC_WALL_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:42
virtual void init(const libMesh::FEMSystem &system)
Deprecated.
virtual void apply_fluxes(AssemblyContext &context, const CachedValues &cache, const bool request_jacobian)
Deprecated.
GRINS namespace.
virtual bool eval_flux(bool compute_jacobian, AssemblyContext &context, libMesh::Real sign, bool is_axisymmetric)
libMesh::Real compute_reactant_mass_flux(const libMesh::Real rho, const libMesh::Real Y_r, const libMesh::Real T)
libMesh::Real compute_product_mass_flux(const libMesh::Real rho, const libMesh::Real Y_r, const libMesh::Real T)
GasRecombinationCatalyticWall(SharedPtr< Chemistry > &chem, SharedPtr< CatalycityBase > &gamma, const std::vector< VariableIndex > &species_vars, VariableIndex T_var, libMesh::Real p0, unsigned int reactant_species_idx, unsigned int product_species_idx)
libMesh::Real rho(libMesh::Real T, libMesh::Real p0, libMesh::Real R_mix) const

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