https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
11
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
33Real
38
39Real
registerMooseObject("HeatTransferApp", GapPerfectConductance)
Boundary condition enforcing perfect gap conductance across gap through the use of a penalty paramete...
virtual Real computeQpJacobian() override
GapPerfectConductance(const InputParameters &parameters)
virtual Real computeQpResidual() override
static InputParameters validParams()
const Real _penalty
Penatly applied to the difference between the temperature on both sides of the gap.
const VariableValue & _gap_temp
AuxVariable holding the temperature on the secondary surface.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
const VariableValue & _u
static InputParameters validParams()