Line data Source code
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 : #pragma once 11 : 12 : #include "IntegratedBC.h" 13 : 14 : /** 15 : * Boundary condition enforcing perfect gap conductance across gap through the use of a 16 : * penalty parameter. 17 : */ 18 : class GapPerfectConductance : public IntegratedBC 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : GapPerfectConductance(const InputParameters & parameters); 23 : 24 44 : virtual ~GapPerfectConductance() {} 25 : 26 : protected: 27 : virtual Real computeQpResidual() override; 28 : virtual Real computeQpJacobian() override; 29 : 30 : /// AuxVariable holding the gap_distance 31 : const VariableValue & _gap_distance; 32 : 33 : /// AuxVariable holding the temperature on the secondary surface 34 : const VariableValue & _gap_temp; 35 : 36 : /// Penatly applied to the difference between the temperature on both sides of the gap 37 : const Real _penalty; 38 : };