GRINS-0.7.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-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_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"
36 
37 // libMesh
38 #include "libmesh/enum_order.h"
39 #include "libmesh/enum_fe_family.h"
40 
41 namespace GRINS
42 {
43 
45  /*
46  This physics class implements the classical Axisymmetric Heat Transfer (neglecting viscous dissipation)
47  */
48  template<class Conductivity>
50  {
51  public:
52 
53  AxisymmetricHeatTransfer( const std::string& physics_name, const GetPot& input );
54 
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  // Mass matrix part(s)
78  virtual void mass_residual( bool compute_jacobian,
79  AssemblyContext& context,
80  CachedValues& cache );
81 
82  // Registers all parameters in this physics and in its property
83  // class
84  virtual void register_parameter
85  ( const std::string & param_name,
87  const;
88 
89  protected:
90 
92 
93  unsigned int _dim;
94 
98 
100 
104  libMesh::Number _rho, _Cp;
105 
106  Conductivity _k;
107 
108  private:
109 
111 
113  void read_input_options( const GetPot& input );
114 
115  void register_variables();
116  };
117 
118 } //End namespace block
119 
120 #endif // GRINS_AXISYM_HEAT_TRANSFER_H
void read_input_options(const GetPot &input)
Read options from GetPot input file.
Physics class for Axisymmetric Heat Transfer.
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
Definition: physics.h:107
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.
virtual void register_parameter(const std::string &param_name, libMesh::ParameterMultiAccessor< libMesh::Number > &param_pointer) const
Each subclass will register its copy of an independent.
libMesh::Number _rho
Material parameters, read from input.
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...
PrimitiveTempFEVariables _temp_vars
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context, CachedValues &cache)
Time dependent part(s) of physics for element interiors.

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