![]() |
OGS
|
|
The BHE_2U class is the realization of 2U type of Borehole Heat Exchanger. In this class, the pipe heat capacity, pipe heat conduction, pipe advection vectors are initialized according to the geometry of 2U type of BHE. For 2U type of BHE, 8 primary unknowns are assigned on the 1D BHE elements. They are the temperature in inflow pipe T_i1 and T_i2, temperature in outflow pipe T_o1 and T_o2, temperature of the four grout zones surrounding the inflow and outflow pipe T_g1, T_g2, T_g3 and T_g4. These primary variables are solved according to heat convection and conduction equations on the pipes and also in the grout zones. The interaction of the 2U type of BHE and the surrounding soil is regulated through the thermal resistance values, which are calculated specifically during the initialization of the class.
#include <BHE_2U.h>
Public Member Functions | |
| BHE_2U (BoreholeGeometry const &borehole, RefrigerantProperties const &refrigerant, GroutParameters const &grout, FlowAndTemperatureControl const &flowAndTemperatureControl, PipeConfigurationUType const &pipes, bool const use_python_bcs) | |
| BHE_2U | withGeometry (BoreholeGeometry const &g) const |
| std::array< double, number_of_unknowns > | pipeHeatCapacities () const |
| std::array< double, number_of_unknowns > | pipeHeatConductions (int const section_index=0) const |
| std::array< Eigen::Vector3d, number_of_unknowns > | pipeAdvectionVectors (Eigen::Vector3d const &, int const section_index=0) const |
| double | updateFlowRateAndTemperature (double T_out, double current_time) |
| Return the inflow temperature for the boundary condition. | |
| std::array< double, number_of_unknowns > | crossSectionAreas (int const section_index=0) const |
| void | updateHeatTransferCoefficients (double const flow_rate) |
| Public Member Functions inherited from ProcessLib::HeatTransportBHE::BHE::BHECommonUType | |
| BHECommonUType (BoreholeGeometry const &borehole, RefrigerantProperties const &refrigerant, GroutParameters const &grout, FlowAndTemperatureControl const &flowAndTemperatureControl, PipeConfigurationUType const &pipes, bool const use_python_bcs) | |
| Public Member Functions inherited from ProcessLib::HeatTransportBHE::BHE::BHECommon | |
| BHECommon (BoreholeGeometry const &borehole_geometry_, RefrigerantProperties const &refrigerant_, GroutParameters const &grout_, FlowAndTemperatureControl const &flowAndTemperatureControl_, bool const use_python_bcs_) | |
| constexpr bool | isPowerBC () const |
| int | getNumberOfSections () const |
| Get number of sections in the borehole geometry. | |
| std::vector< double > const & | getSectionBoundaries () const |
| Get section boundaries (cumulative distance from wellhead). | |
| double | thermalResistanceAtSection (int const unknown_index, int const section_index) const |
| Get thermal resistance for a specific section and unknown. | |
Static Public Member Functions | |
| template<int NPoints, typename SingleUnknownMatrixType, typename RMatrixType, typename RPiSMatrixType, typename RSMatrixType> | |
| 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) |
| static std::array< std::pair< std::size_t, int >, 2 > | getBHEInflowDirichletBCNodesAndComponents (std::size_t const top_node_id, std::size_t const, int const in_component_id) |
| static std::optional< std::array< std::pair< std::size_t, int >, 2 > > | getBHEBottomDirichletBCNodesAndComponents (std::size_t const bottom_node_id, int const in_component_id, int const out_component_id) |
Static Public Attributes | |
| static constexpr int | number_of_unknowns = 8 |
| static constexpr int | number_of_grout_zones = 4 |
| static constexpr std::pair< int, int > | inflow_outflow_bc_component_ids [] |
Private Member Functions | |
| std::vector< double > | calcThermalResistances (double const Nu, int const section_index=0) const |
Additional Inherited Members | |
| Public Attributes inherited from ProcessLib::HeatTransportBHE::BHE::BHECommon | |
| BoreholeGeometry const | borehole_geometry |
| RefrigerantProperties const | refrigerant |
| GroutParameters const | grout |
| FlowAndTemperatureControl const | flowAndTemperatureControl |
| bool const | use_python_bcs |
| Protected Member Functions inherited from ProcessLib::HeatTransportBHE::BHE::BHECommon | |
| template<typename Fn> | |
| void | recomputeSectionalResistances (Fn &&calcForSection) |
| Recompute _sectional_thermal_resistances for all sections. | |
| double | getClampedFlowVelocity (int const section_index) const |
| Get velocity for a section, clamping to last section if index exceeds the number of velocity entries. Returns 0 when empty. | |
| std::vector< double > const & | getThermalResistancesAtSection (int const section_index) const |
| Get the thermal resistance vector for a given section. | |
| Protected Attributes inherited from ProcessLib::HeatTransportBHE::BHE::BHECommonUType | |
| PipeConfigurationUType const | _pipes |
| Protected Attributes inherited from ProcessLib::HeatTransportBHE::BHE::BHECommon | |
| std::vector< double > | _flow_velocities |
| std::vector< std::vector< double > > | _sectional_thermal_resistances |
| ProcessLib::HeatTransportBHE::BHE::BHE_2U::BHE_2U | ( | BoreholeGeometry const & | borehole, |
| RefrigerantProperties const & | refrigerant, | ||
| GroutParameters const & | grout, | ||
| FlowAndTemperatureControl const & | flowAndTemperatureControl, | ||
| PipeConfigurationUType const & | pipes, | ||
| bool const | use_python_bcs ) |
Definition at line 18 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::BHECommonUType(), ProcessLib::HeatTransportBHE::BHE::BHECommon::flowAndTemperatureControl, ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant, updateHeatTransferCoefficients(), and ProcessLib::HeatTransportBHE::BHE::BHECommon::use_python_bcs.
Referenced by withGeometry().
|
inlinestatic |
Definition at line 69 of file BHE_2U.h.
References OGS_FATAL.
|
private |
Nu is the Nusselt number. section_index is the borehole section index for depth-varying borehole diameter (default: 0).
Definition at line 162 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::borehole_geometry, ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant, and ProcessLib::HeatTransportBHE::BHE::thermalResistancesGroutSoil2U().
Referenced by updateHeatTransferCoefficients().
| std::array< double, BHE_2U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_2U::crossSectionAreas | ( | int const | section_index = 0 | ) | const |
Definition at line 245 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::borehole_geometry, ProcessLib::HeatTransportBHE::BHE::checkedGroutArea(), and number_of_grout_zones.
|
static |
Definition at line 236 of file BHE_2U.cpp.
|
static |
Definition at line 225 of file BHE_2U.cpp.
| std::array< Eigen::Vector3d, BHE_2U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeAdvectionVectors | ( | Eigen::Vector3d const & | , |
| int const | section_index = 0 ) const |
Definition at line 88 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommon::getClampedFlowVelocity(), and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
| std::array< double, BHE_2U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeHeatCapacities | ( | ) | const |
Definition at line 38 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
| std::array< double, BHE_2U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeHeatConductions | ( | int const | section_index = 0 | ) | const |
Definition at line 57 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::getClampedFlowVelocity(), ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
| double ProcessLib::HeatTransportBHE::BHE::BHE_2U::updateFlowRateAndTemperature | ( | double | T_out, |
| double | current_time ) |
Return the inflow temperature for the boundary condition.
Definition at line 270 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommon::flowAndTemperatureControl, and updateHeatTransferCoefficients().
| void ProcessLib::HeatTransportBHE::BHE::BHE_2U::updateHeatTransferCoefficients | ( | double const | flow_rate | ) |
Definition at line 147 of file BHE_2U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommon::_flow_velocities, ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::borehole_geometry, calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::calculateThermoMechanicalFlowPropertiesPipe(), ProcessLib::HeatTransportBHE::BHE::BHECommon::recomputeSectionalResistances(), and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
Referenced by BHE_2U(), and updateFlowRateAndTemperature().
|
inline |
Construct a copy with different borehole geometry. Used for grouped BHE definitions.
Definition at line 46 of file BHE_2U.h.
References BHE_2U(), ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::flowAndTemperatureControl, ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant, and ProcessLib::HeatTransportBHE::BHE::BHECommon::use_python_bcs.
|
staticconstexpr |
|
staticconstexpr |
Definition at line 53 of file BHE_2U.h.
Referenced by crossSectionAreas().
|
staticconstexpr |