22 "The functors defining each material property. Each entry is paired with the corresponding " 23 "entry in 'properties'.");
25 "The material properties to create");
37 const auto & functor_names = getParam<std::vector<MooseFunctorName>>(
"functors");
38 const auto & property_names = getParam<std::vector<MaterialPropertyName>>(
"properties");
40 if (functor_names.size() != property_names.size())
41 mooseError(
"The parameters 'functors' and 'properties' must have the same size.");
43 const std::string class_name =
"MaterialFunctorConverter";
46 params.
set<std::vector<MooseFunctorName>>(
"functors_in") = functor_names;
47 params.
set<std::vector<MaterialPropertyName>>(
"ad_props_out") = property_names;
FunctorClosures(const InputParameters ¶ms)
THMProblem & _sim
Simulation.
std::string genName(const std::string &prefix, unsigned int id, const std::string &suffix="") const
Build a name from a prefix, number and possible suffix.
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters ¶meters)
virtual void addMooseObjectsFlowChannel(const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a flow channel component.
InputParameters getValidParams(const std::string &name) const
A base class for flow channels.
static InputParameters validParams()
static InputParameters validParams()
virtual const std::string & name() const
Creates arbitrary closures from functors.
Base class for closures implementations.
Base class for heat transfer connections.
virtual void addMooseObjectsHeatTransfer(const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a heat transfer component.
Factory & _factory
Factory associated with the MooseApp.
void mooseError(Args &&... args) const
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
registerMooseObject("ThermalHydraulicsApp", FunctorClosures)