![]() |
OGS
|
|
Definition at line 19 of file DiameterProfile.h.
#include <DiameterProfile.h>
Public Member Functions | |
| DiameterProfile (std::vector< double > bounds, std::vector< double > diams) | |
| int | getSectionIndex (double distance_from_wellhead) const |
| Find the section index for a given distance from wellhead. Uses binary search for O(log n) lookup. | |
| double | diameterAtDistance (double distance_from_wellhead) const |
| Get diameter at a given distance from wellhead. | |
| double | areaAtDistance (double distance_from_wellhead) const |
| Get cross-sectional area at a given distance from wellhead. | |
| double | diameterAtSection (int const section_index) const |
| Get diameter for a specific section. | |
| double | areaAtSection (int const section_index) const |
| Get cross-sectional area for a specific section. | |
| int | getNumberOfSections () const |
| Get the number of sections. | |
Public Attributes | |
| std::vector< double > const | section_boundaries |
| std::vector< double > const | section_diameters |
Static Private Member Functions | |
| static double | circleArea (double const diameter) |
|
inline |
Definition at line 21 of file DiameterProfile.h.
References section_boundaries, and section_diameters.
|
inline |
Get cross-sectional area at a given distance from wellhead.
| distance_from_wellhead | Distance from wellhead [m]. |
Definition at line 80 of file DiameterProfile.h.
References circleArea(), and diameterAtDistance().
|
inline |
Get cross-sectional area for a specific section.
| section_index | Section index (0-based). |
Definition at line 101 of file DiameterProfile.h.
References circleArea(), and diameterAtSection().
|
inlinestaticprivate |
Definition at line 114 of file DiameterProfile.h.
Referenced by areaAtDistance(), and areaAtSection().
|
inline |
Get diameter at a given distance from wellhead.
| distance_from_wellhead | Distance from wellhead [m]. |
Definition at line 72 of file DiameterProfile.h.
References getSectionIndex(), and section_diameters.
Referenced by areaAtDistance().
|
inline |
Get diameter for a specific section.
| section_index | Section index (0-based). |
Definition at line 88 of file DiameterProfile.h.
References OGS_FATAL, and section_diameters.
Referenced by areaAtSection().
|
inline |
Get the number of sections.
Definition at line 108 of file DiameterProfile.h.
References section_diameters.
|
inline |
Find the section index for a given distance from wellhead. Uses binary search for O(log n) lookup.
| distance_from_wellhead | Distance from wellhead [m]. |
Definition at line 120 of file DiameterProfile.h.
References OGS_FATAL, and section_boundaries.
Referenced by diameterAtDistance().
| std::vector<double> const ProcessLib::HeatTransportBHE::BHE::DiameterProfile::section_boundaries |
Cumulative distances from wellhead [m] marking section boundaries. section_boundaries[i] marks the start of section i. Length = number of sections.
Definition at line 55 of file DiameterProfile.h.
Referenced by DiameterProfile(), and getSectionIndex().
| std::vector<double> const ProcessLib::HeatTransportBHE::BHE::DiameterProfile::section_diameters |
Diameters [m] for each section. section_diameters[i] is the diameter for section i. Length = number of sections.
Definition at line 60 of file DiameterProfile.h.
Referenced by DiameterProfile(), diameterAtDistance(), diameterAtSection(), and getNumberOfSections().