21 "Heat transfer coefficient function [W/(m^2-K)]");
24 "Couples boundaries of two 2D heat structures via a heat transfer coefficient");
40 logError(
"The primary and secondary boundaries must be aligned.");
48 for (
unsigned int i = 0; i < 2; i++)
52 const std::string class_name =
53 _is_cylindrical[i] ?
"HeatStructure2DCouplerRZBC" :
"HeatStructure2DCouplerBC";
59 params.
set<FunctionName>(
"heat_transfer_coefficient") =
60 getParam<FunctionName>(
"heat_transfer_coefficient");
registerMooseObject("ThermalHydraulicsApp", HeatStructure2DCoupler)
virtual void addMooseObjects()
void logError(Args &&... args) const
Logs an error.
THMProblem & getTHMProblem() const
Gets the THM problem.
Factory & _factory
The Factory associated with the MooseApp.
virtual RealVectorValue getDirection() const
virtual Point getPosition() const
virtual void addBoundaryCondition(const std::string &bc_name, const std::string &name, InputParameters ¶meters)
InputParameters getValidParams(const std::string &name) const
static const std::string TEMPERATURE
Couples boundaries of two 2D heat structures.
virtual void check() const override
Check the component integrity.
MeshAlignment _mesh_alignment
Mesh alignment.
const std::vector< std::string > _hs_names
Primary and secondary heat structure names.
static InputParameters validParams()
std::vector< bool > _is_cylindrical
Flag for each heat structure deriving from HeatStructureCylindricalBase.
const std::vector< BoundaryName > _hs_boundaries
Primary and secondary heat structure boundaries.
std::vector< Real > _coupling_area_fractions
Area fractions by which to multiply coupling terms.
Couples boundaries of two 2D heat structures via a heat transfer coefficient.
virtual void check() const override
Check the component integrity.
static InputParameters validParams()
HeatStructure2DCoupler(const InputParameters ¶meters)
virtual void addMooseObjects() override
Base class for 2D generated heat structures.
bool meshesAreAligned() const
Returns true if the primary and secondary meshes are aligned.
Builds mapping between two aligned subdomains/boundaries.
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.