GRINS-0.6.0
axisym_boussinesq_buoyancy.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 
26 #ifndef GRINS_AXISYM_BOUSSINESQ_BUOYANCY_H
27 #define GRINS_AXISYM_BOUSSINESQ_BUOYANCY_H
28 
29 // GRINS
30 #include "grins_config.h"
31 #include "grins/grins_enums.h"
32 #include "grins/physics.h"
33 
34 // libMesh
35 #include "libmesh/enum_order.h"
36 #include "libmesh/enum_fe_family.h"
37 #include "libmesh/point.h"
38 
39 namespace GRINS
40 {
42 
56  {
57  public:
58 
59  AxisymmetricBoussinesqBuoyancy( const std::string& physics_name, const GetPot& input );
60 
62 
64  virtual void read_input_options( const GetPot& input );
65 
67  virtual void init_variables( libMesh::FEMSystem* system );
68 
70 
73  virtual void element_time_derivative( bool compute_jacobian,
74  AssemblyContext& context,
75  CachedValues& cache );
76 
77  protected:
78 
80  unsigned int _dim;
81 
83  GRINSEnums::FEFamily _T_FE_family, _V_FE_family;
84 
86  GRINSEnums::Order _T_order, _V_order;
87 
88  // Indices for each variable;
91 
94 
97 
98  // Names of each variable in the system
99 
101  std::string _u_r_var_name;
102 
104  std::string _u_z_var_name;
105 
107  std::string _T_var_name;
108 
110  libMesh::Number _rho_ref;
111 
113  libMesh::Number _T_ref;
114 
116  libMesh::Number _beta_T;
117 
119  /* \todo This should be stashed in a singleton class and brought in from there */
120  libMesh::Point _g;
121 
122  private:
124 
125  }; // class AxisymmetricBoussinesqBuoyancy
126 
127 } // namespace GRINS
128 #endif // GRINS_AXISYM_BOUSSINESQ_BUOYANCY_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:40
GRINSEnums::Order _T_order
Temperature element order, read from input.
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:106
Adds Axisymmetric Boussinesq bouyancy source term.
std::string _u_r_var_name
Name of r-velocity.
libMesh::Number _rho_ref
reference density
virtual void read_input_options(const GetPot &input)
Read options from GetPot input file.
GRINS namespace.
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Source term contribution for AxisymmetricBoussinesqBuoyancy.
VariableIndex _T_var
Index for temperature field.
VariableIndex _u_z_var
Index for z-velocity field.
virtual void init_variables(libMesh::FEMSystem *system)
Initialization of AxisymmetricBoussinesqBuoyancy variables.
std::string _T_var_name
Name of temperature.
VariableIndex _u_r_var
Index for r-velocity field.
libMesh::Point _g
Gravitational vector.
libMesh::Number _T_ref
reference temperature
std::string _u_z_var_name
Name of z-velocity.
libMesh::Number _beta_T
coefficient of thermal expansion
unsigned int _dim
Physical dimension of problem.
GRINSEnums::FEFamily _T_FE_family
Element type, read from input.

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