25 _number_of_hs(_n_regions)
79 comp->connectObject(k_fn->
parameters(), k_fn->
name(),
"k",
"value");
83 comp->connectObject(cp_fn->
parameters(), cp_fn->
name(),
"cp",
"value");
87 if (rho_fn !=
nullptr)
88 comp->connectObject(rho_fn->
parameters(), rho_fn->
name(),
"rho",
"value");
94 const auto sp_names = getParam<std::vector<UserObjectName>>(
"solid_properties");
95 const auto T_ref = getParam<std::vector<Real>>(
"solid_properties_T_ref");
96 for (
unsigned int i = 0; i < sp_names.size(); i++)
104 unsigned int i_region)
const 107 const auto region_names =
getNames();
109 const std::string class_name =
"ADConstantDensityThermalSolidPropertiesMaterial";
111 params.
set<std::vector<SubdomainName>>(
"block") = {
blocks[i_region]};
113 params.
set<UserObjectName>(
"sp") = sp_name;
114 params.
set<
Real>(
"T_ref") = T_ref;
116 class_name,
genName(
name(), class_name, region_names[i_region]), params);
void addConstantDensitySolidPropertiesMaterial(const UserObjectName &sp_name, const Real &T_ref, unsigned int i_region) const
Adds a ADConstantDensityThermalSolidPropertiesMaterial for a heat structure region.
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.
T & getUserObject(const std::string &name, unsigned int tid=0) const
THMProblem & getTHMProblem() const
Gets the THM problem.
virtual void check() const override
Check the component integrity.
const Function & getRhoFunction() const
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters ¶meters)
InputParameters getValidParams(const std::string &name) const
Component * _parent
Pointer to a parent component (used in composed components)
std::vector< std::string > _material_names
Material names.
const unsigned int & getIndexFromName(const std::string &name) const
Get index of the block from its name.
virtual const std::string & name() const
bool isParamValid(const std::string &name) const
void check() const
Method to be called in the component's check() method.
unsigned int _n_regions
Number of transverse regions.
const Function & getKFunction() const
static const std::string TEMPERATURE
static InputParameters validParams()
virtual void init()
Initializes the component.
HeatStructureBase(const InputParameters ¶ms)
Interface class for heat structure components.
Base class for THM components.
std::shared_ptr< HeatConductionModel > _hc_model
The heat conduction model used by this heat structure.
static const libMesh::FEType & feType()
Get the FE type used for heat conduction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
void init()
Method to be called in the component's init() method.
Factory & _factory
The Factory associated with the MooseApp.
void addMooseObjects()
Method to be called in the component's addMooseObjects() method.
void addVariables()
Method to be called in the component's addVariables() method.
virtual void check() const override
Check the component integrity.
const Function & getCpFunction() const
virtual void addVariables() override
virtual bool usingSecondOrderMesh() const override
Check if second order mesh is being used by this geometrical component.
static InputParameters validParams()
const InputParameters & parameters() const
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
std::map< std::string, unsigned int > _name_index
Map from block name to block index.
virtual void addMooseObjects() override
virtual void init() override
Initializes the component.
const std::vector< std::string > & getNames() const
Gets the names of the transverse regions.