www.mooseframework.org
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
GapConductanceConstant Class Reference

#include <GapConductanceConstant.h>

Inheritance diagram for GapConductanceConstant:
[legend]

Public Member Functions

 GapConductanceConstant (const InputParameters &parameters)
 
virtual void computeQpProperties () override
 

Static Public Member Functions

static InputParameters validParams ()
 
static InputParameters actionParameters ()
 

Protected Attributes

const Real & _prescribed_gap_conductance
 
const std::string _appended_property_name
 
MaterialProperty< Real > & _gap_conductance
 
MaterialProperty< Real > & _gap_conductance_dT
 

Detailed Description

Definition at line 14 of file GapConductanceConstant.h.

Constructor & Destructor Documentation

◆ GapConductanceConstant()

GapConductanceConstant::GapConductanceConstant ( const InputParameters &  parameters)

Definition at line 39 of file GapConductanceConstant.C.

40  : Material(params),
41  _prescribed_gap_conductance(getParam<Real>("gap_conductance")),
42  _appended_property_name(getParam<std::string>("appended_property_name")),
43  _gap_conductance(declareProperty<Real>("gap_conductance" + _appended_property_name)),
44  _gap_conductance_dT(declareProperty<Real>("gap_conductance" + _appended_property_name + "_dT"))
45 {
46  if (!params.isParamSetByUser("gap_conductance"))
47  mooseError("gap_conductance must be specified");
48 }

Member Function Documentation

◆ actionParameters()

InputParameters GapConductanceConstant::actionParameters ( )
static

Definition at line 30 of file GapConductanceConstant.C.

31 {
32  InputParameters params = emptyInputParameters();
33  params.addParam<std::string>(
34  "appended_property_name", "", "Name appended to material properties to make them unique");
35  params.addParam<Real>("gap_conductance", 0.0, "Gap conductance");
36  return params;
37 }

Referenced by validParams(), and ThermalContactAction::validParams().

◆ computeQpProperties()

void GapConductanceConstant::computeQpProperties ( )
overridevirtual

Definition at line 51 of file GapConductanceConstant.C.

52 {
54  _gap_conductance_dT[_qp] = 0.0;
55 }

◆ validParams()

InputParameters GapConductanceConstant::validParams ( )
static

Definition at line 17 of file GapConductanceConstant.C.

18 {
19  InputParameters params = Material::validParams();
21  // We can't just make it required in the first place because then it would always
22  // be required in the Action, even if this model isn't used.
23  params.makeParamRequired<Real>("gap_conductance");
24  params.addClassDescription("Material to compute a constant, prescribed gap conductance");
25 
26  return params;
27 }

Member Data Documentation

◆ _appended_property_name

const std::string GapConductanceConstant::_appended_property_name
protected

Definition at line 27 of file GapConductanceConstant.h.

◆ _gap_conductance

MaterialProperty<Real>& GapConductanceConstant::_gap_conductance
protected

Definition at line 28 of file GapConductanceConstant.h.

Referenced by computeQpProperties().

◆ _gap_conductance_dT

MaterialProperty<Real>& GapConductanceConstant::_gap_conductance_dT
protected

Definition at line 29 of file GapConductanceConstant.h.

Referenced by computeQpProperties().

◆ _prescribed_gap_conductance

const Real& GapConductanceConstant::_prescribed_gap_conductance
protected

Definition at line 26 of file GapConductanceConstant.h.

Referenced by computeQpProperties().


The documentation for this class was generated from the following files:
GapConductanceConstant::_gap_conductance_dT
MaterialProperty< Real > & _gap_conductance_dT
Definition: GapConductanceConstant.h:29
GapConductanceConstant::_prescribed_gap_conductance
const Real & _prescribed_gap_conductance
Definition: GapConductanceConstant.h:26
GapConductanceConstant::_appended_property_name
const std::string _appended_property_name
Definition: GapConductanceConstant.h:27
validParams
InputParameters validParams()
GapConductanceConstant::actionParameters
static InputParameters actionParameters()
Definition: GapConductanceConstant.C:30
GapConductanceConstant::_gap_conductance
MaterialProperty< Real > & _gap_conductance
Definition: GapConductanceConstant.h:28