GRINS-0.8.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-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 
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"
34 #include "grins/single_variable.h"
35 
36 // libMesh
37 #include "libmesh/enum_order.h"
38 #include "libmesh/enum_fe_family.h"
39 #include "libmesh/point.h"
40 
41 namespace GRINS
42 {
44 
58  {
59  public:
60 
61  AxisymmetricBoussinesqBuoyancy( const std::string& physics_name, const GetPot& input );
62 
64 
65  virtual void init_context( AssemblyContext& context );
66 
68 
71  virtual void element_time_derivative( bool compute_jacobian,
72  AssemblyContext& context );
73 
74  protected:
75 
79 
81  libMesh::Number _rho;
82 
84  libMesh::Number _T_ref;
85 
87  libMesh::Number _beta_T;
88 
90  /* \todo This should be stashed in a singleton class and brought in from there */
91  libMesh::Point _g;
92 
93  private:
94 
96 
98  void read_input_options( const GetPot& input );
99 
100  }; // class AxisymmetricBoussinesqBuoyancy
101 
102 } // namespace GRINS
103 #endif // GRINS_AXISYM_BOUSSINESQ_BUOYANCY_H
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:106
Adds Axisymmetric Boussinesq bouyancy source term.
void read_input_options(const GetPot &input)
Read options from GetPot input file.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
GRINS namespace.
const PrimitiveTempFEVariables & _temp_vars
libMesh::Point _g
Gravitational vector.
libMesh::Number _T_ref
reference temperature
libMesh::Number _beta_T
coefficient of thermal expansion
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context)
Source term contribution for AxisymmetricBoussinesqBuoyancy.

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