![]() |
OGS
|
|
Definition at line 55 of file BHECommon.h.
#include <BHECommon.h>
Public Member Functions | |
| 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. | |
Public Attributes | |
| BoreholeGeometry const | borehole_geometry |
| RefrigerantProperties const | refrigerant |
| GroutParameters const | grout |
| FlowAndTemperatureControl const | flowAndTemperatureControl |
| bool const | use_python_bcs |
Protected Member Functions | |
| 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 | |
| std::vector< double > | _flow_velocities |
| std::vector< std::vector< double > > | _sectional_thermal_resistances |
|
inline |
Definition at line 58 of file BHECommon.h.
References borehole_geometry, flowAndTemperatureControl, grout, refrigerant, and use_python_bcs.
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_1P::BHE_1P(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::BHECommonCoaxial(), and ProcessLib::HeatTransportBHE::BHE::BHECommonUType::BHECommonUType().
|
inlineprotected |
Get velocity for a section, clamping to last section if index exceeds the number of velocity entries. Returns 0 when empty.
Definition at line 133 of file BHECommon.h.
References _flow_velocities.
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_1P::pipeAdvectionVectors(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeAdvectionVectors(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeAdvectionVectors(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeHeatConductions(), and ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeHeatConductions().
|
inline |
Get number of sections in the borehole geometry.
Definition at line 83 of file BHECommon.h.
References borehole_geometry.
Referenced by recomputeSectionalResistances().
|
inline |
Get section boundaries (cumulative distance from wellhead).
Definition at line 89 of file BHECommon.h.
References borehole_geometry.
|
inlineprotected |
Get the thermal resistance vector for a given section.
Definition at line 147 of file BHECommon.h.
References _sectional_thermal_resistances, and OGS_FATAL.
Referenced by thermalResistanceAtSection().
|
inlineconstexpr |
Definition at line 76 of file BHECommon.h.
References flowAndTemperatureControl.
|
inlineprotected |
Recompute _sectional_thermal_resistances for all sections.
| calcForSection | Callable (int section_index) -> std::vector<double> that returns the resistance vector for that section. |
Definition at line 117 of file BHECommon.h.
References _sectional_thermal_resistances, and getNumberOfSections().
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_1P::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::updateHeatTransferCoefficients(), and ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::updateHeatTransferCoefficients().
|
inline |
Get thermal resistance for a specific section and unknown.
Definition at line 95 of file BHECommon.h.
References getThermalResistancesAtSection(), and OGS_FATAL.
|
protected |
Flow velocities per section [m/s]. For single-section pipes, will have one element.
Definition at line 129 of file BHECommon.h.
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_CXA::assignVelocities(), ProcessLib::HeatTransportBHE::BHE::BHE_CXC::assignVelocities(), getClampedFlowVelocity(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::updateHeatTransferCoefficients(), and ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::velocities().
|
protected |
Thermal resistances per section. Each element is a vector of resistances for that section's unknowns.
Definition at line 144 of file BHECommon.h.
Referenced by getThermalResistancesAtSection(), and recomputeSectionalResistances().
| BoreholeGeometry const ProcessLib::HeatTransportBHE::BHE::BHECommon::borehole_geometry |
Definition at line 71 of file BHECommon.h.
Referenced by BHECommon(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::crossSectionAreas(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::crossSectionAreas(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::crossSectionAreas(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::crossSectionAreas(), ProcessLib::HeatTransportBHE::BHE::BHE_CXC::crossSectionAreas(), getNumberOfSections(), getSectionBoundaries(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::updateHeatTransferCoefficients(), and ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::updateHeatTransferCoefficients().
| FlowAndTemperatureControl const ProcessLib::HeatTransportBHE::BHE::BHECommon::flowAndTemperatureControl |
Definition at line 74 of file BHECommon.h.
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_1P::BHE_1P(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::BHE_1U(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::BHE_2U(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::BHE_CXA(), ProcessLib::HeatTransportBHE::BHE::BHE_CXC::BHE_CXC(), BHECommon(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::BHECommonCoaxial(), ProcessLib::HeatTransportBHE::BHE::BHECommonUType::BHECommonUType(), isPowerBC(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::updateFlowRateAndTemperature(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::updateFlowRateAndTemperature(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::updateFlowRateAndTemperature(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::updateFlowRateAndTemperature(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::withGeometry(), and ProcessLib::HeatTransportBHE::BHE::BHE_CXC::withGeometry().
| GroutParameters const ProcessLib::HeatTransportBHE::BHE::BHECommon::grout |
Definition at line 73 of file BHECommon.h.
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_1P::BHE_1P(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::BHE_1U(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::BHE_2U(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::BHE_CXA(), ProcessLib::HeatTransportBHE::BHE::BHE_CXC::BHE_CXC(), BHECommon(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::BHECommonCoaxial(), ProcessLib::HeatTransportBHE::BHE::BHECommonUType::BHECommonUType(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::withGeometry(), and ProcessLib::HeatTransportBHE::BHE::BHE_CXC::withGeometry().
| RefrigerantProperties const ProcessLib::HeatTransportBHE::BHE::BHECommon::refrigerant |
Definition at line 72 of file BHECommon.h.
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_1P::BHE_1P(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::BHE_1U(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::BHE_2U(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::BHE_CXA(), ProcessLib::HeatTransportBHE::BHE::BHE_CXC::BHE_CXC(), BHECommon(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::BHECommonCoaxial(), ProcessLib::HeatTransportBHE::BHE::BHECommonUType::BHECommonUType(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::calcThermalResistances(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::pipeAdvectionVectors(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeAdvectionVectors(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeAdvectionVectors(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::pipeAdvectionVectors(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::pipeHeatCapacities(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::pipeHeatConductions(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::updateHeatTransferCoefficients(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::withGeometry(), and ProcessLib::HeatTransportBHE::BHE::BHE_CXC::withGeometry().
| bool const ProcessLib::HeatTransportBHE::BHE::BHECommon::use_python_bcs |
Definition at line 75 of file BHECommon.h.
Referenced by ProcessLib::HeatTransportBHE::BHE::BHE_1P::BHE_1P(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::BHE_1U(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::BHE_2U(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::BHE_CXA(), ProcessLib::HeatTransportBHE::BHE::BHE_CXC::BHE_CXC(), BHECommon(), ProcessLib::HeatTransportBHE::BHE::BHECommonCoaxial::BHECommonCoaxial(), ProcessLib::HeatTransportBHE::BHE::BHECommonUType::BHECommonUType(), ProcessLib::HeatTransportBHE::BHE::BHE_1P::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_1U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_2U::withGeometry(), ProcessLib::HeatTransportBHE::BHE::BHE_CXA::withGeometry(), and ProcessLib::HeatTransportBHE::BHE::BHE_CXC::withGeometry().