GRINS-0.6.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-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 #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( const Chemistry& chem_mixture,
41  CatalycityBase& gamma,
42  const unsigned int reactant_species_idx,
43  const unsigned int product_species_idx );
44 
46 
47  virtual void init( const libMesh::FEMSystem& system );
48 
49  virtual void apply_fluxes( AssemblyContext& context,
50  const CachedValues& cache,
51  const bool request_jacobian );
52 
53  libMesh::Real compute_reactant_mass_flux( const libMesh::Real rho,
54  const libMesh::Real Y_r,
55  const libMesh::Real T );
56 
57  libMesh::Real compute_product_mass_flux( const libMesh::Real rho,
58  const libMesh::Real Y_r,
59  const libMesh::Real T );
60 
61  protected:
62 
63  const unsigned int _reactant_species_idx;
65 
66  const unsigned int _product_species_idx;
68 
69  };
70 
71  template<typename Chemistry>
72  inline
74  const libMesh::Real Y_r,
75  const libMesh::Real T )
76  {
77  const libMesh::Real rho_r = rho*Y_r;
78 
79  const libMesh::Real omega_dot = this->omega_dot( rho_r, T );
80 
81  return -omega_dot;
82  }
83 
84  template<typename Chemistry>
85  inline
87  const libMesh::Real Y_r,
88  const libMesh::Real T )
89  {
90  return -(this->compute_reactant_mass_flux(rho,Y_r,T));
91  }
92 
93 } // end namespace GRINS
94 
95 #endif // GRINS_GAS_RECOMBINATION_CATALYTIC_WALL_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:40
virtual void init(const libMesh::FEMSystem &system)
virtual void apply_fluxes(AssemblyContext &context, const CachedValues &cache, const bool request_jacobian)
GRINS namespace.
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(const Chemistry &chem_mixture, CatalycityBase &gamma, const unsigned int reactant_species_idx, const unsigned int product_species_idx)

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