https://mooseframework.inl.gov
ADHSHeatFluxBC.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 "ADHSHeatFluxBC.h"
11 #include "Function.h"
12 
13 registerMooseObject("ThermalHydraulicsApp", ADHSHeatFluxBC);
14 
17 {
19 
20  params.addDeprecatedParam<PostprocessorName>(
21  "scale_pp",
22  "1.0",
23  "Post-processor by which to scale boundary condition",
24  "The 'scale' parameter is replacing the 'scale_pp' parameter. 'scale' is a function "
25  "parameter instead of a post-processor parameter. If you need to scale from a post-processor "
26  "value, use a PostprocessorFunction.");
27  params.addParam<FunctionName>("scale", 1.0, "Function by which to scale the boundary condition");
28 
29  params.addClassDescription("Applies a specified heat flux to the side of a plate heat structure");
30 
31  return params;
32 }
33 
35  : ADFunctionNeumannBC(parameters),
36 
37  _scale_pp(getPostprocessorValue("scale_pp")),
38  _scale_fn(getFunction("scale"))
39 {
40 }
41 
42 ADReal
44 {
46 }
void addDeprecatedParam(const std::string &name, const T &value, const std::string &doc_string, const std::string &deprecation_message)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
ADHSHeatFluxBC(const InputParameters &parameters)
DualNumber< Real, DNDerivativeType, true > ADReal
Applies a specified heat flux to the side of a plate heat structure.
unsigned int _qp
const Function & _scale_fn
Function by which to scale the boundary condition.
const PostprocessorValue & _scale_pp
Post-processor by which to scale boundary condition.
const MooseArray< Point > & _q_point
static InputParameters validParams()
virtual ADReal computeQpResidual() override
virtual ADReal computeQpResidual() override
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
registerMooseObject("ThermalHydraulicsApp", ADHSHeatFluxBC)