56 std::array<double, number_of_flow_legs>
flowLegs()
const
66 Eigen::Vector3d
const& elem_direction)
const;
75 template <
int NPoints,
76 typename SingleUnknownMatrixType,
78 typename RPiSMatrixType,
79 typename RSMatrixType>
81 int const idx_bhe_unknowns,
82 Eigen::MatrixBase<SingleUnknownMatrixType>
const& matBHE_loc_R,
83 Eigen::MatrixBase<RMatrixType>& R_matrix,
84 Eigen::MatrixBase<RPiSMatrixType>& R_pi_s_matrix,
85 Eigen::MatrixBase<RSMatrixType>& R_s_matrix)
87 switch (idx_bhe_unknowns)
90 R_matrix.block(0, NPoints, NPoints, NPoints) +=
92 R_matrix.block(NPoints, 0, NPoints, NPoints) +=
95 R_matrix.block(0, 0, NPoints, NPoints) +=
97 R_matrix.block(NPoints, NPoints, NPoints, NPoints) +=
101 R_s_matrix += matBHE_loc_R;
103 R_pi_s_matrix.block(NPoints, 0, NPoints, NPoints) +=
106 R_matrix.block(NPoints, NPoints, NPoints, NPoints) +=
111 "BHE_1P::assembleRMatrices: unknown index {:d} "
123 static std::array<std::pair<std::size_t ,
int >, 2>
125 std::size_t
const bottom_node_id,
126 int const in_component_id);
128 static std::optional<
129 std::array<std::pair<std::size_t ,
int >, 2>>
bool const use_python_bcs
RefrigerantProperties const refrigerant
GroutParameters const grout
BHECommon(BoreholeGeometry const &borehole_geometry_, RefrigerantProperties const &refrigerant_, GroutParameters const &grout_, FlowAndTemperatureControl const &flowAndTemperatureControl_, bool const use_python_bcs_)
FlowAndTemperatureControl const flowAndTemperatureControl
void updateHeatTransferCoefficients(double const flow_rate)
static constexpr int number_of_flow_legs
std::array< double, number_of_unknowns > pipeHeatConductions() const
static std::optional< std::array< std::pair< std::size_t, int >, 2 > > getBHEBottomDirichletBCNodesAndComponents(std::size_t const, int const, int const)
PipeConfiguration1PType const _pipe
static constexpr std::pair< int, int > inflow_outflow_bc_component_ids[]
std::array< double, number_of_unknowns > crossSectionAreas(ParameterLib::SpatialPosition const &pos) const
static constexpr int number_of_unknowns
static constexpr int number_of_grout_zones
std::array< double, number_of_unknowns > pipeHeatCapacities() const
BHE_1P(BoreholeGeometry const &borehole, RefrigerantProperties const &refrigerant, GroutParameters const &grout, FlowAndTemperatureControl const &flowAndTemperatureControl, PipeConfiguration1PType const &pipes, bool const use_python_bcs)
static void assembleRMatrices(int const idx_bhe_unknowns, Eigen::MatrixBase< SingleUnknownMatrixType > const &matBHE_loc_R, Eigen::MatrixBase< RMatrixType > &R_matrix, Eigen::MatrixBase< RPiSMatrixType > &R_pi_s_matrix, Eigen::MatrixBase< RSMatrixType > &R_s_matrix)
double updateFlowRateAndTemperature(double T_out, double current_time)
Return the inflow temperature for the boundary condition.
std::array< Eigen::Vector3d, number_of_unknowns > pipeAdvectionVectors(Eigen::Vector3d const &elem_direction) const
std::vector< double > calcThermalResistances(double const Nu, ParameterLib::SpatialPosition const &pos) const
std::vector< double > thermalResistances(ParameterLib::SpatialPosition const &pos) const
static std::array< std::pair< std::size_t, int >, 2 > getBHEInflowDirichletBCNodesAndComponents(std::size_t const top_node_id, std::size_t const bottom_node_id, int const in_component_id)
std::array< double, number_of_flow_legs > flowLegs() const
std::variant< InflowTemperature, Power, BuildingPower, BuildingPowerHotWaterActiveCooling, BuildingPowerHotWaterPassiveCooling, BuildingPowerHotWater, BuildingPowerActiveCooling, BuildingPowerPassiveCooling, ActiveCooling > FlowAndTemperatureControl