GRINS-0.7.0
boussinesq_buoyancy_base.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 
26 #ifndef GRINS_BOUSSINESQ_BUOYANCY_BASE_H
27 #define GRINS_BOUSSINESQ_BUOYANCY_BASE_H
28 
29 // GRINS
30 #include "grins/physics.h"
34 
35 // libMesh
36 #include "libmesh/point.h"
37 
38 namespace GRINS
39 {
41  {
42  public:
43 
44  BoussinesqBuoyancyBase( const std::string& physics_name, const GetPot& input );
45 
47 
49  virtual void init_variables( libMesh::FEMSystem* system );
50 
51  protected:
52 
54  void read_property( const GetPot& input,
55  const std::string& old_option,
56  const std::string& property,
57  libMesh::Real& value );
58 
60  void no_input_warning( const GetPot& input,
61  const std::string& old_option,
62  const std::string& material,
63  const std::string& property );
64 
68 
70  libMesh::Number _rho;
71 
73  libMesh::Number _T_ref;
74 
76  libMesh::Number _beta_T;
77 
79  libMesh::Point _g;
80 
82  unsigned int _dim;
83 
84  private:
85 
87 
88  void register_variables();
89 
90  };
91 
92 } // end namespace GRINS
93 #endif // GRINS_BOUSSINESQ_BUOYANCY_BASE_H
void read_property(const GetPot &input, const std::string &old_option, const std::string &property, libMesh::Real &value)
Helper function for parsing/maintaing backward compatibility.
libMesh::Point _g
Gravitational vector.
virtual void init_variables(libMesh::FEMSystem *system)
Initialization of BoussinesqBuoyancy variables.
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:107
unsigned int _dim
Physical dimension of problem.
GRINS namespace.
libMesh::Number _T_ref
reference temperature
void no_input_warning(const GetPot &input, const std::string &old_option, const std::string &material, const std::string &property)
Helper function for parsing/maintaing backward compatibility.
libMesh::Number _beta_T
coefficient of thermal expansion
PrimitiveTempFEVariables _temp_vars

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