![]() |
OGS
|
|
The BHE_1U class is the realization of 1U 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 1U type of BHE. For 1U type of BHE, 4 primary unknowns are assigned on the 1D BHE elements. They are the temperature in inflow pipe T_in, temperature in outflow pipe T_out temperature of the two grout zones surrounding the inflow and outflow pipe T_g1 and T_g2. 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 1U 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_1U.h>
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 = 4 |
| static constexpr int | number_of_grout_zones = 2 |
| static constexpr int | number_of_flow_legs = 2 |
| static constexpr std::pair< int, int > | inflow_outflow_bc_component_ids [] |
Private Member Functions | |
| std::vector< double > | calcThermalResistances (double const Nu, ParameterLib::SpatialPosition const &pos) const |
| Nu is the Nusselt number. | |
Private Attributes | |
| double | cached_nu_ = 0.0 |
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 Attributes inherited from ProcessLib::HeatTransportBHE::BHE::BHECommonUType | |
| PipeConfigurationUType const | _pipes |
| double | flow_velocity = 0.0 |
| ProcessLib::HeatTransportBHE::BHE::BHE_1U::BHE_1U | ( | BoreholeGeometry const & | borehole, |
| RefrigerantProperties const & | refrigerant, | ||
| GroutParameters const & | grout, | ||
| FlowAndTemperatureControl const & | flowAndTemperatureControl, | ||
| PipeConfigurationUType const & | pipes, | ||
| bool const | use_python_bcs ) |
Definition at line 20 of file BHE_1U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::BHECommonUType(), ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::checkEqualPipeOutsideDiameters(), ProcessLib::HeatTransportBHE::BHE::BHECommon::flowAndTemperatureControl, ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant, updateHeatTransferCoefficients(), and ProcessLib::HeatTransportBHE::BHE::BHECommon::use_python_bcs.
|
inlinestatic |
Definition at line 80 of file BHE_1U.h.
References OGS_FATAL.
|
private |
Nu is the Nusselt number.
Definition at line 150 of file BHE_1U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::borehole_geometry, ProcessLib::HeatTransportBHE::BHE::checkAcoshArg(), ProcessLib::HeatTransportBHE::BHE::checkBoreholeVsPipeDiameter(), ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, ProcessLib::HeatTransportBHE::BHE::pipeWallThermalResistance(), ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant, ProcessLib::HeatTransportBHE::BHE::sampleStrictPositive(), ProcessLib::HeatTransportBHE::BHE::thermalResistancesGroutSoil(), and ProcessLib::HeatTransportBHE::BHE::uTypeGeometryContext().
Referenced by thermalResistances().
| std::array< double, BHE_1U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_1U::crossSectionAreas | ( | ParameterLib::SpatialPosition const & | pos | ) | const |
Definition at line 256 of file BHE_1U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::borehole_geometry, ProcessLib::HeatTransportBHE::BHE::checkedGroutArea(), ProcessLib::HeatTransportBHE::BHE::Pipe::circleArea(), number_of_grout_zones, and ProcessLib::HeatTransportBHE::BHE::sampleStrictPositive().
|
inline |
Signed fluid velocity per flow leg. Positive = flow along +elem_direction; negative = against it. Leg ordering matches the BHE unknowns: { i1 (down), o1 (up) }.
Definition at line 56 of file BHE_1U.h.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::flow_velocity.
Referenced by pipeAdvectionVectors().
|
static |
Definition at line 247 of file BHE_1U.cpp.
|
static |
Definition at line 236 of file BHE_1U.cpp.
| std::array< Eigen::Vector3d, BHE_1U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeAdvectionVectors | ( | Eigen::Vector3d const & | elem_direction | ) | const |
Definition at line 82 of file BHE_1U.cpp.
References flowLegs(), and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
| std::array< double, BHE_1U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeHeatCapacities | ( | ) | const |
Definition at line 41 of file BHE_1U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
| std::array< double, BHE_1U::number_of_unknowns > ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeHeatConductions | ( | ) | const |
Definition at line 56 of file BHE_1U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommonUType::flow_velocity, ProcessLib::HeatTransportBHE::BHE::BHECommon::grout, and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
| std::vector< double > ProcessLib::HeatTransportBHE::BHE::BHE_1U::thermalResistances | ( | ParameterLib::SpatialPosition const & | pos | ) | const |
Return the full vector of thermal resistances for the element at pos, computed once using the cached Nusselt number. Intended to be called once per element by the assembler so that the resistance computation is not repeated per unknown and per integration point.
Definition at line 143 of file BHE_1U.cpp.
References cached_nu_, and calcThermalResistances().
| double ProcessLib::HeatTransportBHE::BHE::BHE_1U::updateFlowRateAndTemperature | ( | double | T_out, |
| double | current_time ) |
Return the inflow temperature for the boundary condition.
Definition at line 270 of file BHE_1U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommon::flowAndTemperatureControl, and updateHeatTransferCoefficients().
| void ProcessLib::HeatTransportBHE::BHE::BHE_1U::updateHeatTransferCoefficients | ( | double const | flow_rate | ) |
Definition at line 134 of file BHE_1U.cpp.
References ProcessLib::HeatTransportBHE::BHE::BHECommonUType::_pipes, ProcessLib::HeatTransportBHE::BHE::BHECommon::borehole_geometry, cached_nu_, ProcessLib::HeatTransportBHE::BHE::calculateThermoMechanicalFlowPropertiesPipe(), ProcessLib::HeatTransportBHE::BHE::BHECommonUType::flow_velocity, and ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant.
Referenced by BHE_1U(), and updateFlowRateAndTemperature().
|
private |
Definition at line 169 of file BHE_1U.h.
Referenced by thermalResistances(), and updateHeatTransferCoefficients().
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
Definition at line 50 of file BHE_1U.h.
Referenced by crossSectionAreas().
|
staticconstexpr |