https://mooseframework.inl.gov
HeatRateHeatFlux.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 "HeatRateHeatFlux.h"
11 #include "Function.h"
12 
13 registerMooseObject("ThermalHydraulicsApp", HeatRateHeatFlux);
14 
17 {
19 
20  params.addParam<FunctionName>("scale", 1.0, "Function by which to scale the heat flux");
21 
22  params.renameParam("function", "q", "Heat flux function");
23 
24  params.addClassDescription("Integrates a heat flux function over a boundary");
25 
26  return params;
27 }
28 
30  : FunctionSideIntegral(parameters),
31 
32  _scale_fn(getFunction("scale"))
33 {
34 }
35 
36 Real
38 {
40 }
void renameParam(const std::string &old_name, const std::string &new_name, const std::string &new_docstring)
registerMooseObject("ThermalHydraulicsApp", HeatRateHeatFlux)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
const Function & _scale_fn
Function by which to scale the heat flux.
virtual Real computeQpIntegral() override
static InputParameters validParams()
const MooseArray< Point > & _q_point
Integrates a heat flux function over a boundary.
virtual Real computeQpIntegral() override
static InputParameters validParams()
HeatRateHeatFlux(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const