12 #include "metaphysicl/raw_type.h" 23 "prop_name",
"The name of the material property where we store the variable values.");
25 "coupled_variable",
"The coupled variable that will be stored into the material property");
34 _prop_name(getParam<MaterialPropertyName>(
"prop_name")),
35 _prop(declareGenericProperty<
Real, is_ad>(_prop_name)),
36 _value((!is_ad) ? coupledValue(
"coupled_variable") : _zero),
37 _ad_value((is_ad) ? adCoupledValue(
"coupled_variable") : _ad_zero)
48 _prop[_qp] = _value[_qp];
static InputParameters validParams()
CoupledVariableValueMaterialTempl(const InputParameters ¶meters)
Stores values of a variable into material properties.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void computeQpProperties() override
registerMooseObject("ThermalHydraulicsApp", CoupledVariableValueMaterial)