https://mooseframework.inl.gov
OneDEnergyWallHeatFlux.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 "OneDEnergyWallHeatFlux.h"
11 
12 registerMooseObject("ThermalHydraulicsApp", OneDEnergyWallHeatFlux);
13 
16 {
18  params.addRequiredParam<MaterialPropertyName>("q_wall", "Wall heat flux material property");
19  params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
20  params.addClassDescription("Adds a heat flux along the local heated perimeter");
21  return params;
22 }
23 
25  : Kernel(parameters), _q_wall(getMaterialProperty<Real>("q_wall")), _P_hf(coupledValue("P_hf"))
26 {
27 }
28 
29 Real
31 {
32  return -_q_wall[_qp] * _P_hf[_qp] * _test[_i][_qp];
33 }
34 
35 Real
37 {
38  return 0.;
39 }
40 
41 Real
43 {
44  return 0.;
45 }
static InputParameters validParams()
OneDEnergyWallHeatFlux(const InputParameters &parameters)
const MaterialProperty< Real > & _q_wall
Heat flux.
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
void addRequiredParam(const std::string &name, const std::string &doc_string)
const VariableTestValue & _test
unsigned int _i
const VariableValue & _P_hf
Heat flux perimeter.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
registerMooseObject("ThermalHydraulicsApp", OneDEnergyWallHeatFlux)
unsigned int _qp