OGS
ThermalResistancesCoaxial.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <numbers>
14
15#include "GroutParameters.h"
16#include "Pipe.h"
18
19namespace ProcessLib
20{
21namespace HeatTransportBHE
22{
23namespace BHE
24{
26{
27 double const inner_pipe_coaxial;
28 double const a_annulus;
29 double const b_annulus;
30};
31
33{
34 double const inner_pipe_coaxial;
35 double const annulus;
36};
37
43
45 Pipe const& inner_pipe, Pipe const& outer_pipe,
46 RefrigerantProperties const& fluid, double const Nu_inner_pipe,
47 double const Nu_annulus)
48{
49 double const hydraulic_diameter =
50 coaxialPipesAnnulusDiameter(inner_pipe, outer_pipe);
51
52 auto advective_thermal_resistance = [&](double Nu, double diameter_ratio)
53 {
54 return 1.0 / (Nu * fluid.thermal_conductivity * std::numbers::pi) *
55 diameter_ratio;
56 };
57 return {advective_thermal_resistance(Nu_inner_pipe, 1.),
58 advective_thermal_resistance(
59 Nu_annulus, hydraulic_diameter / inner_pipe.outsideDiameter()),
60 advective_thermal_resistance(
61 Nu_annulus, hydraulic_diameter / outer_pipe.diameter)};
62}
63
65 Pipe const& inner_pipe, Pipe const& outer_pipe)
66{
67 return {inner_pipe.wallThermalResistance(),
68 outer_pipe.wallThermalResistance()};
69}
70
71inline GroutAndGroutSoilExchangeThermalResistanceCoaxial
73 Pipe const& outer_pipe, GroutParameters const& grout_parameters,
74 double const borehole_diameter)
75{
76 double const outer_pipe_outside_diameter = outer_pipe.outsideDiameter();
77 double const chi =
78 std::log(std::sqrt(borehole_diameter * borehole_diameter +
79 outer_pipe_outside_diameter *
80 outer_pipe_outside_diameter) /
81 std::sqrt(2) / outer_pipe_outside_diameter) /
82 std::log(borehole_diameter / outer_pipe_outside_diameter);
83 double const R_g =
84 std::log(borehole_diameter / outer_pipe_outside_diameter) / 2 /
85 (std::numbers::pi * grout_parameters.lambda_g);
86 double const conductive_b = chi * R_g;
87 double const grout_soil = (1 - chi) * R_g;
88 return {conductive_b, grout_soil};
89}
90} // namespace BHE
91} // namespace HeatTransportBHE
92} // namespace ProcessLib
PipeWallThermalResistanceCoaxial calculatePipeWallThermalResistance(Pipe const &inner_pipe, Pipe const &outer_pipe)
AdvectiveThermalResistanceCoaxial calculateAdvectiveThermalResistance(Pipe const &inner_pipe, Pipe const &outer_pipe, RefrigerantProperties const &fluid, double const Nu_inner_pipe, double const Nu_annulus)
double coaxialPipesAnnulusDiameter(Pipe const &inner_pipe, Pipe const &outer_pipe)
Definition Pipe.h:55
GroutAndGroutSoilExchangeThermalResistanceCoaxial calculateGroutAndGroutSoilExchangeThermalResistance(Pipe const &outer_pipe, GroutParameters const &grout_parameters, double const borehole_diameter)