GRINS-0.7.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-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_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"
36 
37 // libMesh
38 #include "libmesh/enum_order.h"
39 #include "libmesh/enum_fe_family.h"
40 #include "libmesh/point.h"
41 
42 namespace GRINS
43 {
45 
59  {
60  public:
61 
62  AxisymmetricBoussinesqBuoyancy( const std::string& physics_name, const GetPot& input );
63 
65 
67  virtual void init_variables( libMesh::FEMSystem* system );
68 
69  virtual void init_context( AssemblyContext& context );
70 
72 
75  virtual void element_time_derivative( bool compute_jacobian,
76  AssemblyContext& context,
77  CachedValues& cache );
78 
79  protected:
80 
82  unsigned int _dim;
83 
87 
89  libMesh::Number _rho;
90 
92  libMesh::Number _T_ref;
93 
95  libMesh::Number _beta_T;
96 
98  /* \todo This should be stashed in a singleton class and brought in from there */
99  libMesh::Point _g;
100 
101  private:
102 
104 
106  void read_input_options( const GetPot& input );
107 
108  void register_variables();
109 
110  }; // class AxisymmetricBoussinesqBuoyancy
111 
112 } // namespace GRINS
113 #endif // GRINS_AXISYM_BOUSSINESQ_BUOYANCY_H
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:107
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.
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Source term contribution for AxisymmetricBoussinesqBuoyancy.
virtual void init_variables(libMesh::FEMSystem *system)
Initialization of AxisymmetricBoussinesqBuoyancy variables.
libMesh::Point _g
Gravitational vector.
libMesh::Number _T_ref
reference temperature
libMesh::Number _beta_T
coefficient of thermal expansion
unsigned int _dim
Physical dimension of problem.

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