www.mooseframework.org
GapConductance.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Material.h"
13 
17 class GapConductance : public Material
18 {
19 public:
21  {
25  };
26  static InputParameters validParams();
27 
28  GapConductance(const InputParameters & parameters);
29 
30  static InputParameters actionParameters();
31 
32  static Real gapLength(const GAP_GEOMETRY & gap_geom, Real radius, Real r1, Real r2, Real max_gap);
33 
34  static Real gapRect(Real distance, Real max_gap);
35  static Real gapCyl(Real radius, Real r1, Real r2, Real max_denom);
36  static Real gapSphere(Real radius, Real r1, Real r2, Real max_denom);
37 
38  static Real gapAttenuation(Real adjusted_length, Real min_gap, unsigned int min_gap_order);
39 
40  static void setGapGeometryParameters(const InputParameters & params,
41  const Moose::CoordinateSystemType coord_sys,
42  unsigned int axisymmetric_radial_coord,
43  GAP_GEOMETRY & gap_geometry_type,
44  Point & p1,
45  Point & p2);
46 
47  static void computeGapRadii(const GAP_GEOMETRY gap_geometry_type,
48  const Point & current_point,
49  const Point & p1,
50  const Point & p2,
51  const Real & gap_distance,
52  const Point & current_normal,
53  Real & r1,
54  Real & r2,
55  Real & radius);
56 
57  virtual void initialSetup() override;
58 
60  static Real gapLength(
61  const GAP_GEOMETRY & gap_geom, Real radius, Real r1, Real r2, Real min_gap, Real max_gap)
62  {
63  return std::max(min_gap, gapLength(gap_geom, radius, r1, r2, max_gap));
64  }
65 
66 protected:
67  virtual void computeQpProperties() override;
68 
72  virtual void computeQpConductance();
73 
74  virtual Real h_conduction();
75  virtual Real h_radiation();
76  virtual Real dh_conduction();
77  virtual Real dh_radiation();
78  virtual Real gapK();
79 
80  virtual void computeGapValues();
81 
82  const std::string _appended_property_name;
83 
84  const VariableValue & _temp;
85 
87 
89 
90  Real _gap_temp;
92  Real _radius;
93  Real _r1;
94  Real _r2;
95 
96  bool _has_info;
97 
98  const VariableValue & _gap_distance_value;
99  const VariableValue & _gap_temp_value;
100  MaterialProperty<Real> & _gap_conductance;
101  MaterialProperty<Real> & _gap_conductance_dT;
102  MaterialProperty<Real> & _gap_thermal_conductivity;
103 
104  const Real _gap_conductivity;
105  const Function * const _gap_conductivity_function;
106  const VariableValue * _gap_conductivity_function_variable;
107 
108  const Real _stefan_boltzmann;
110 
111  const Real _min_gap;
112  const unsigned int _min_gap_order;
113  const Real _max_gap;
114 
115  MooseVariable * _temp_var;
116  PenetrationLocator * _penetration_locator;
117  const NumericVector<Number> * const * _serialized_solution;
118  DofMap * _dof_map;
119  const bool _warnings;
120 
121  Point & _p1;
122  Point & _p2;
123 };
124 
125 template <>
126 InputParameters validParams<GapConductance>();
GapConductance::_gap_conductance_dT
MaterialProperty< Real > & _gap_conductance_dT
Definition: GapConductance.h:101
GapConductance::_gap_thermal_conductivity
MaterialProperty< Real > & _gap_thermal_conductivity
Definition: GapConductance.h:102
GapConductance::_serialized_solution
const NumericVector< Number > *const * _serialized_solution
Definition: GapConductance.h:117
GapConductance::_gap_conductivity
const Real _gap_conductivity
Definition: GapConductance.h:104
GapConductance::_appended_property_name
const std::string _appended_property_name
Definition: GapConductance.h:82
GapConductance::_temp_var
MooseVariable * _temp_var
Definition: GapConductance.h:115
GapConductance::_gap_conductance
MaterialProperty< Real > & _gap_conductance
Definition: GapConductance.h:100
GapConductance::initialSetup
virtual void initialSetup() override
Definition: GapConductance.C:176
GapConductance::_dof_map
DofMap * _dof_map
Definition: GapConductance.h:118
GapConductance::validParams
static InputParameters validParams()
Definition: GapConductance.C:27
GapConductance::CYLINDER
Definition: GapConductance.h:23
GapConductance::_gap_conductivity_function
const Function *const _gap_conductivity_function
Definition: GapConductance.h:105
GapConductance::_gap_conductivity_function_variable
const VariableValue * _gap_conductivity_function_variable
Definition: GapConductance.h:106
GapConductance::_r1
Real _r1
Definition: GapConductance.h:93
GapConductance::_quadrature
bool _quadrature
Definition: GapConductance.h:88
GapConductance::gapAttenuation
static Real gapAttenuation(Real adjusted_length, Real min_gap, unsigned int min_gap_order)
Definition: GapConductance.C:287
GapConductance::_gap_distance
Real _gap_distance
Definition: GapConductance.h:91
GapConductance::_gap_temp_value
const VariableValue & _gap_temp_value
Definition: GapConductance.h:99
validParams< GapConductance >
InputParameters validParams< GapConductance >()
GapConductance::_radius
Real _radius
Definition: GapConductance.h:92
GapConductance::gapLength
static Real gapLength(const GAP_GEOMETRY &gap_geom, Real radius, Real r1, Real r2, Real max_gap)
Definition: GapConductance.C:361
GapConductance::dh_radiation
virtual Real dh_radiation()
Definition: GapConductance.C:351
GapConductance::setGapGeometryParameters
static void setGapGeometryParameters(const InputParameters &params, const Moose::CoordinateSystemType coord_sys, unsigned int axisymmetric_radial_coord, GAP_GEOMETRY &gap_geometry_type, Point &p1, Point &p2)
Definition: GapConductance.C:183
GapConductance::_p2
Point & _p2
Definition: GapConductance.h:122
GapConductance::_r2
Real _r2
Definition: GapConductance.h:94
GapConductance::_has_info
bool _has_info
Definition: GapConductance.h:96
GapConductance::_max_gap
const Real _max_gap
Definition: GapConductance.h:113
GapConductance::_min_gap_order
const unsigned int _min_gap_order
Definition: GapConductance.h:112
GapConductance::gapCyl
static Real gapCyl(Real radius, Real r1, Real r2, Real max_denom)
Definition: GapConductance.C:379
GapConductance::h_radiation
virtual Real h_radiation()
Definition: GapConductance.C:322
GapConductance::gapLength
static Real gapLength(const GAP_GEOMETRY &gap_geom, Real radius, Real r1, Real r2, Real min_gap, Real max_gap)
Legacy method that clamps at min_gap.
Definition: GapConductance.h:60
GapConductance::gapSphere
static Real gapSphere(Real radius, Real r1, Real r2, Real max_denom)
Definition: GapConductance.C:386
GapConductance::gapRect
static Real gapRect(Real distance, Real max_gap)
Definition: GapConductance.C:373
GapConductance::_min_gap
const Real _min_gap
Definition: GapConductance.h:111
GapConductance::computeGapValues
virtual void computeGapValues()
Definition: GapConductance.C:410
GapConductance::h_conduction
virtual Real h_conduction()
Definition: GapConductance.C:308
GapConductance::SPHERE
Definition: GapConductance.h:24
GapConductance::_gap_temp
Real _gap_temp
Definition: GapConductance.h:90
GapConductance::GAP_GEOMETRY
GAP_GEOMETRY
Definition: GapConductance.h:20
GapConductance::_gap_distance_value
const VariableValue & _gap_distance_value
Definition: GapConductance.h:98
GapConductance::dh_conduction
virtual Real dh_conduction()
Definition: GapConductance.C:316
GapConductance::_warnings
const bool _warnings
Definition: GapConductance.h:119
GapConductance::_emissivity
Real _emissivity
Definition: GapConductance.h:109
GapConductance::_p1
Point & _p1
Definition: GapConductance.h:121
GapConductance::PLATE
Definition: GapConductance.h:22
GapConductance::computeQpProperties
virtual void computeQpProperties() override
Definition: GapConductance.C:265
GapConductance::_gap_geometry_type
GAP_GEOMETRY & _gap_geometry_type
Definition: GapConductance.h:86
GapConductance::_penetration_locator
PenetrationLocator * _penetration_locator
Definition: GapConductance.h:116
GapConductance::_stefan_boltzmann
const Real _stefan_boltzmann
Definition: GapConductance.h:108
GapConductance::GapConductance
GapConductance(const InputParameters &parameters)
Definition: GapConductance.C:108
GapConductance::computeQpConductance
virtual void computeQpConductance()
Override this to compute the conductance at _qp.
Definition: GapConductance.C:272
GapConductance::_temp
const VariableValue & _temp
Definition: GapConductance.h:84
GapConductance::gapK
virtual Real gapK()
Definition: GapConductance.C:393
GapConductance::actionParameters
static InputParameters actionParameters()
Definition: GapConductance.C:74
GapConductance::computeGapRadii
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)
Definition: GapConductance.C:462
GapConductance
Generic gap heat transfer model, with h_gap = h_conduction + h_contact + h_radiation.
Definition: GapConductance.h:17