www.mooseframework.org
GapConductance.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef GAPCONDUCTANCE_H
8 #define GAPCONDUCTANCE_H
9 
10 #include "Material.h"
11 
15 class GapConductance : public Material
16 {
17 public:
19  {
23  };
24 
25  GapConductance(const InputParameters & parameters);
26 
27  static InputParameters actionParameters();
28 
29  static Real gapLength(
30  const GAP_GEOMETRY & gap_geom, Real radius, Real r1, Real r2, Real min_gap, Real max_gap);
31 
32  static Real gapRect(Real distance, Real min_gap, Real max_gap);
33  static Real gapCyl(Real radius, Real r1, Real r2, Real min_denom, Real max_denom);
34  static Real gapSphere(Real radius, Real r1, Real r2, Real min_denom, Real max_denom);
35 
36  static void setGapGeometryParameters(const InputParameters & params,
37  const Moose::CoordinateSystemType coord_sys,
38  GAP_GEOMETRY & gap_geometry_type,
39  Point & p1,
40  Point & p2);
41 
42  static void computeGapRadii(const GAP_GEOMETRY gap_geometry_type,
43  const Point & current_point,
44  const Point & p1,
45  const Point & p2,
46  const Real & gap_distance,
47  const Point & current_normal,
48  Real & r1,
49  Real & r2,
50  Real & radius);
51 
52  virtual void initialSetup() override;
53 
54 protected:
55  virtual void computeQpProperties() override;
56 
60  virtual void computeQpConductance();
61 
62  virtual Real h_conduction();
63  virtual Real h_radiation();
64  virtual Real dh_conduction();
65  virtual Real dh_radiation();
66  virtual Real gapK();
67 
68  virtual void computeGapValues();
69 
70  const std::string _appended_property_name;
71 
72  const VariableValue & _temp;
73 
75 
77 
78  Real _gap_temp;
80  Real _radius;
81  Real _r1;
82  Real _r2;
83 
84  bool _has_info;
85 
86  const VariableValue & _gap_distance_value;
87  const VariableValue & _gap_temp_value;
88  MaterialProperty<Real> & _gap_conductance;
89  MaterialProperty<Real> & _gap_conductance_dT;
90  MaterialProperty<Real> & _gap_thermal_conductivity;
91 
92  const Real _gap_conductivity;
93  Function * const _gap_conductivity_function;
94  const VariableValue * _gap_conductivity_function_variable;
95 
96  const Real _stefan_boltzmann;
98 
99  Real _min_gap;
100  Real _max_gap;
101 
102  MooseVariable * _temp_var;
103  PenetrationLocator * _penetration_locator;
104  const NumericVector<Number> ** _serialized_solution;
105  DofMap * _dof_map;
106  const bool _warnings;
107 
108  Point & _p1;
109  Point & _p2;
110 };
111 
112 template <>
113 InputParameters validParams<GapConductance>();
114 
115 #endif // GAPCONDUCTANCE_H
static Real gapRect(Real distance, Real min_gap, Real max_gap)
MaterialProperty< Real > & _gap_conductance_dT
const VariableValue * _gap_conductivity_function_variable
const Real _stefan_boltzmann
InputParameters validParams< GapConductance >()
static InputParameters actionParameters()
static void computeGapRadii(const GAP_GEOMETRY gap_geometry_type, const Point &current_point, const Point &p1, const Point &p2, const Real &gap_distance, const Point &current_normal, Real &r1, Real &r2, Real &radius)
MaterialProperty< Real > & _gap_thermal_conductivity
Function *const _gap_conductivity_function
const Real _gap_conductivity
const std::string _appended_property_name
virtual Real h_radiation()
virtual Real dh_radiation()
virtual void initialSetup() override
virtual Real h_conduction()
const VariableValue & _gap_temp_value
static Real gapLength(const GAP_GEOMETRY &gap_geom, Real radius, Real r1, Real r2, Real min_gap, Real max_gap)
virtual Real dh_conduction()
static Real gapCyl(Real radius, Real r1, Real r2, Real min_denom, Real max_denom)
const NumericVector< Number > ** _serialized_solution
Generic gap heat transfer model, with h_gap = h_conduction + h_contact + h_radiation.
virtual void computeGapValues()
const bool _warnings
const VariableValue & _gap_distance_value
virtual void computeQpProperties() override
virtual void computeQpConductance()
Override this to compute the conductance at _qp.
GAP_GEOMETRY & _gap_geometry_type
virtual Real gapK()
const VariableValue & _temp
static Real gapSphere(Real radius, Real r1, Real r2, Real min_denom, Real max_denom)
PenetrationLocator * _penetration_locator
MooseVariable * _temp_var
GapConductance(const InputParameters &parameters)
static void setGapGeometryParameters(const InputParameters &params, const Moose::CoordinateSystemType coord_sys, GAP_GEOMETRY &gap_geometry_type, Point &p1, Point &p2)
MaterialProperty< Real > & _gap_conductance