GRINS-0.8.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-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_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"
34 #include "grins/single_variable.h"
35 
36 // libMesh
37 #include "libmesh/enum_order.h"
38 #include "libmesh/enum_fe_family.h"
39 
40 namespace GRINS
41 {
42 
44  /*
45  This physics class implements the classical Axisymmetric Heat Transfer (neglecting viscous dissipation)
46  */
47  template<class Conductivity>
49  {
50  public:
51 
52  AxisymmetricHeatTransfer( const std::string& physics_name, const GetPot& input );
53 
55 
57  virtual void set_time_evolving_vars( libMesh::FEMSystem* system );
58 
59  // Context initialization
60  virtual void init_context( AssemblyContext& context );
61 
62  // residual and jacobian calculations
63  // element_*, side_* as *time_derivative, *constraint, *mass_residual
64 
65  // Time dependent part(s)
66  virtual void element_time_derivative( bool compute_jacobian,
67  AssemblyContext & context );
68 
69  // Mass matrix part(s)
70  virtual void mass_residual( bool compute_jacobian,
71  AssemblyContext & context );
72 
73  // Registers all parameters in this physics and in its property
74  // class
75  virtual void register_parameter
76  ( const std::string & param_name,
78  const;
79 
80  protected:
81 
85 
87 
91  libMesh::Number _rho, _Cp;
92 
93  Conductivity _k;
94 
95  private:
96 
98 
100  void read_input_options( const GetPot& input );
101 
102  };
103 
104 } //End namespace block
105 
106 #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:106
const PrimitiveTempFEVariables & _temp_vars
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.
const VelocityVariable & _flow_vars
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.
virtual void mass_residual(bool compute_jacobian, AssemblyContext &context)
Mass matrix part(s) for element interiors. All boundary terms lie within the time_derivative part...
libMesh::Number _rho
Material parameters, read from input.
virtual void element_time_derivative(bool compute_jacobian, AssemblyContext &context)
Time dependent part(s) of physics for element interiors.
const PressureFEVariable & _press_var

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