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 : #include "OneDEnergyWallHeatFlux.h" 11 : 12 : registerMooseObject("ThermalHydraulicsApp", OneDEnergyWallHeatFlux); 13 : 14 : InputParameters 15 0 : OneDEnergyWallHeatFlux::validParams() 16 : { 17 0 : InputParameters params = Kernel::validParams(); 18 0 : params.addRequiredParam<MaterialPropertyName>("q_wall", "Wall heat flux material property"); 19 0 : params.addRequiredCoupledVar("P_hf", "heat flux perimeter"); 20 0 : params.addClassDescription("Adds a heat flux along the local heated perimeter"); 21 0 : return params; 22 0 : } 23 : 24 0 : OneDEnergyWallHeatFlux::OneDEnergyWallHeatFlux(const InputParameters & parameters) 25 0 : : Kernel(parameters), _q_wall(getMaterialProperty<Real>("q_wall")), _P_hf(coupledValue("P_hf")) 26 : { 27 0 : } 28 : 29 : Real 30 0 : OneDEnergyWallHeatFlux::computeQpResidual() 31 : { 32 0 : return -_q_wall[_qp] * _P_hf[_qp] * _test[_i][_qp]; 33 : } 34 : 35 : Real 36 0 : OneDEnergyWallHeatFlux::computeQpJacobian() 37 : { 38 0 : return 0.; 39 : } 40 : 41 : Real 42 0 : OneDEnergyWallHeatFlux::computeQpOffDiagJacobian(unsigned int /*jvar*/) 43 : { 44 0 : return 0.; 45 : }