GRINS-0.7.0
gas_catalytic_wall_neumann_bc_old_style_factories.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_CATALYTIC_WALL_NEUMANN_BC_OLD_STYLE_FACTORIES_H
26 #define GRINS_GAS_CATALYTIC_WALL_NEUMANN_BC_OLD_STYLE_FACTORIES_H
27 
28 // GRINS
32 
33 namespace GRINS
34 {
36  public CatalyticWallNeumannBCOldStyleFactoryBase<GasRecombinationCatalyticWallNeumannBCFactoryImpl>
37  {
38  public:
39 
40  GasRecombinationCatalyticWallNeumannBCOldStyleFactory( const std::string& bc_type_name )
42  {}
43 
45 
46  protected:
47 
48  virtual std::string reactant_for_catalycity(const std::string& reaction) const
49  {
50  std::string reactant;
51  std::string product; // dummy in this function
52  this->_wall_impl.parse_reactant_and_product(reaction,reactant,product);
53  return reactant;
54  }
55 
56  virtual std::string catalytic_wall_prefix_str() const
57  {
58  return "wall_catalytic_reactions";
59  }
60  };
61 
63  public CatalyticWallNeumannBCOldStyleFactoryBase<GasSolidCatalyticWallNeumannBCFactoryImpl>
64  {
65  public:
66 
67  GasSolidCatalyticWallNeumannBCOldStyleFactory( const std::string& bc_type_name )
69  {}
70 
72 
73  virtual std::string reactant_for_catalycity(const std::string& reaction) const
74  {
75  std::string gas_reactant;
76  std::string solid_reactant; // dummy in this function
77  std::string product; // dummy in this function
78  this->_wall_impl.parse_reactants_and_product(reaction,gas_reactant,solid_reactant,product);
79  return gas_reactant;
80  }
81 
82  virtual std::string catalytic_wall_prefix_str() const
83  {
84  return "wall_gas_solid_reactions";
85  }
86 
87  };
88 } // end namespace GRINS
89 
90 #endif // GRINS_GAS_CATALYTIC_WALL_NEUMANN_BC_OLD_STYLE_FACTORIES_H
virtual std::string reactant_for_catalycity(const std::string &reaction) const
void parse_reactants_and_product(const std::string &reaction, std::string &gas_reactant, std::string &solid_reactant, std::string &product) const
GRINS namespace.
void parse_reactant_and_product(const std::string &reaction, std::string &reactant, std::string &product) const

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