GRINS-0.6.0
arrhenius_catalycity.C
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 // This class
27 
28 // C++
29 #include <cmath>
30 
31 namespace GRINS
32 {
33  ArrheniusCatalycity::ArrheniusCatalycity( const libMesh::Real gamma0,
34  const libMesh::Real Ta )
35  : _gamma0(gamma0),
36  _Ta(Ta)
37  {
38  return;
39  }
40 
42  {
43  return;
44  }
45 
46  libMesh::Real ArrheniusCatalycity::operator()( const libMesh::Real T ) const
47  {
48  return _gamma0*std::exp(-_Ta/T);
49  }
50 
51  libMesh::Real ArrheniusCatalycity::dT( const libMesh::Real T ) const
52  {
53  return _gamma0*_Ta/(T*T)*std::exp(-_Ta/T);
54  }
55 
56  void ArrheniusCatalycity::set_params( const std::vector<libMesh::Real>& params )
57  {
58  libmesh_assert_equal_to( params.size(), 2 );
59 
60  _gamma0 = params[0];
61 
62  _Ta = params[1];
63 
64  return;
65  }
66 
68  {
69  return new ArrheniusCatalycity( *this );
70  }
71 
72 } // end namespace GRINS
virtual CatalycityBase * clone() const
Creates a new copy of the current class.
virtual void set_params(const std::vector< libMesh::Real > &params)
GRINS namespace.
virtual libMesh::Real dT(const libMesh::Real T) const
virtual libMesh::Real operator()(const libMesh::Real T) const

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