https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GapConductanceConstant.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
11
13
16{
19 // We can't just make it required in the first place because then it would always
20 // be required in the Action, even if this model isn't used.
21 params.makeParamRequired<Real>("gap_conductance");
22 params.addClassDescription("Material to compute a constant, prescribed gap conductance");
23
24 return params;
25}
26
29{
31 params.addParam<std::string>(
32 "appended_property_name", "", "Name appended to material properties to make them unique");
33 params.addParam<Real>("gap_conductance", 0.0, "Gap conductance");
34 params.addParamNamesToGroup("gap_conductance", "Gap conductivity");
35 return params;
36}
37
39 : Material(params),
40 _prescribed_gap_conductance(getParam<Real>("gap_conductance")),
41 _appended_property_name(getParam<std::string>("appended_property_name")),
42 _gap_conductance(declareProperty<Real>("gap_conductance" + _appended_property_name)),
43 _gap_conductance_dT(declareProperty<Real>("gap_conductance" + _appended_property_name + "_dT"))
44{
45 if (!params.isParamSetByUser("gap_conductance"))
46 mooseError("gap_conductance must be specified");
47}
48
49void
registerMooseObject("HeatTransferApp", GapConductanceConstant)
InputParameters emptyInputParameters()
MaterialProperty< Real > & _gap_conductance_dT
GapConductanceConstant(const InputParameters &parameters)
virtual void computeQpProperties() override
static InputParameters validParams()
MaterialProperty< Real > & _gap_conductance
static InputParameters actionParameters()
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)
bool isParamSetByUser(const std::string &name) const
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void makeParamRequired(const std::string &name)
unsigned int _qp
static InputParameters validParams()
void mooseError(Args &&... args) const