GRINS-0.6.0
axisym_heat_transfer.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_HEAT_TRANSFER_H
27 #define GRINS_AXISYM_HEAT_TRANSFER_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 
38 namespace GRINS
39 {
40 
42  /*
43  This physics class implements the classical Axisymmetric Heat Transfer (neglecting viscous dissipation)
44  */
45  template<class Conductivity>
47  {
48  public:
49 
50  AxisymmetricHeatTransfer( const std::string& physics_name, const GetPot& input );
51 
53 
55  virtual void read_input_options( const GetPot& input );
56 
58 
61  virtual void init_variables( libMesh::FEMSystem* system );
62 
64  virtual void set_time_evolving_vars( libMesh::FEMSystem* system );
65 
66  // Context initialization
67  virtual void init_context( AssemblyContext& context );
68 
69  // residual and jacobian calculations
70  // element_*, side_* as *time_derivative, *constraint, *mass_residual
71 
72  // Time dependent part(s)
73  virtual void element_time_derivative( bool compute_jacobian,
74  AssemblyContext& context,
75  CachedValues& cache );
76 
77  virtual void side_time_derivative( bool compute_jacobian,
78  AssemblyContext& context,
79  CachedValues& cache );
80 
81  // Mass matrix part(s)
82  virtual void mass_residual( bool compute_jacobian,
83  AssemblyContext& context,
84  CachedValues& cache );
85 
86  // Registers all parameters in this physics and in its property
87  // class
88  virtual void register_parameter
89  ( const std::string & param_name,
91  const;
92 
93  protected:
94 
96 
97  unsigned int _dim;
98 
99  // Indices for each variable;
102 
105 
108 
109  // Names of each variable in the system
111  std::string _T_var_name;
112 
114  std::string _u_r_var_name;
115 
117  std::string _u_z_var_name;
118 
120  GRINSEnums::FEFamily _T_FE_family, _V_FE_family;
121 
123  GRINSEnums::Order _T_order, _V_order;
124 
126 
130  libMesh::Number _rho, _Cp;
131 
132  Conductivity _k;
133 
134  private:
136 
137  };
138 
139 } //End namespace block
140 
141 #endif // GRINS_AXISYM_HEAT_TRANSFER_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:40
virtual void read_input_options(const GetPot &input)
Read options from GetPot input file.
GRINSEnums::Order _T_order
Temperature element order, read from input.
Physics class for Axisymmetric Heat Transfer.
virtual void side_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for boundaries of elements on the domain boundary.
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:106
std::string _u_z_var_name
Name of z-velocity.
unsigned int _dim
Physical dimension of problem.
virtual void init_variables(libMesh::FEMSystem *system)
Initialization AxisymmetricHeatTransfer variables.
virtual void set_time_evolving_vars(libMesh::FEMSystem *system)
Sets velocity variables to be time-evolving.
GRINS namespace.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
std::string _u_r_var_name
Name of r-velocity.
virtual void register_parameter(const std::string &param_name, libMesh::ParameterMultiPointer< libMesh::Number > &param_pointer) const
Each subclass will register its copy of an independent.
VariableIndex _u_r_var
Index for r-velocity field.
libMesh::Number _rho
Material parameters, read from input.
VariableIndex _u_z_var
Index for z-velocity field.
GRINSEnums::FEFamily _T_FE_family
Element type, read from input.
VariableIndex _T_var
Index for temperature field.
virtual void mass_residual(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part...
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for element interiors.
std::string _T_var_name
Name for temperature variable.

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