https://mooseframework.inl.gov
GapPerfectConductance.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 #include "GapPerfectConductance.h"
11 
12 registerMooseObject("HeatTransferApp", GapPerfectConductance);
13 
16 {
18  params.addClassDescription("Enforces equal temperatures across the gap.");
19  params.addRequiredCoupledVar("gap_distance", "Distance across the gap.");
20  params.addRequiredCoupledVar("gap_temp", "Temperature on the other side of the gap.");
21  params.addParam<Real>("penalty", 1e3, "Penalty value to be applied to the constraint.");
22  return params;
23 }
24 
26  : IntegratedBC(parameters),
27  _gap_distance(coupledValue("gap_distance")),
28  _gap_temp(coupledValue("gap_temp")),
29  _penalty(getParam<Real>("penalty"))
30 {
31 }
32 
33 Real
35 {
36  return _penalty * (_u[_qp] - _gap_temp[_qp]);
37 }
38 
39 Real
41 {
42  return _penalty;
43 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
registerMooseObject("HeatTransferApp", GapPerfectConductance)
const VariableValue & _gap_temp
AuxVariable holding the temperature on the secondary surface.
static InputParameters validParams()
unsigned int _qp
virtual Real computeQpJacobian() override
virtual Real computeQpResidual() override
const Real _penalty
Penatly applied to the difference between the temperature on both sides of the gap.
GapPerfectConductance(const InputParameters &parameters)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
Boundary condition enforcing perfect gap conductance across gap through the use of a penalty paramete...
const VariableValue & _u