GRINS-0.8.0
constant_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-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 // This class
27 
28 namespace GRINS
29 {
30  ConstantCatalycity::ConstantCatalycity( const libMesh::Real gamma )
31  : _gamma(gamma)
32  {
33  return;
34  }
35 
37  {
38  return;
39  }
40 
41  libMesh::Real ConstantCatalycity::operator()( const libMesh::Real /*T*/ ) const
42  {
43  return _gamma;
44  }
45 
46  libMesh::Real ConstantCatalycity::dT( const libMesh::Real /*T*/ ) const
47  {
48  return 0.0;
49  }
50 
51  void ConstantCatalycity::set_params( const std::vector<libMesh::Real>& params )
52  {
53  libmesh_assert_equal_to( params.size(), 1 );
54 
55  _gamma = params[0];
56 
57  return;
58  }
59 
61  {
62  return new ConstantCatalycity( *this );
63  }
64 
65  void ConstantCatalycity::set_parameters(const GetPot & input, const std::string & param_base)
66  {
67  std::string gamma_str = param_base+"gamma";
68  this->set_parameter(_gamma,input,gamma_str,_gamma);
69  }
70 
71 } // end namespace GRINS
virtual void set_parameter(libMesh::Number &param_variable, const GetPot &input, const std::string &param_name, libMesh::Number param_default)
Each subclass can simultaneously read a parameter value from.
GRINS namespace.
virtual CatalycityBase * clone() const
Creates a new copy of the current class.
virtual libMesh::Real dT(const libMesh::Real T) const
virtual libMesh::Real operator()(const libMesh::Real T) const
virtual void set_params(const std::vector< libMesh::Real > &params)
virtual void set_parameters(const GetPot &input, const std::string &param_base)
Sets parameters for use in sensitivity analysis.

Generated on Tue Dec 19 2017 12:47:27 for GRINS-0.8.0 by  doxygen 1.8.9.1