OGS 6.2.0-555-gc9b84ea78.dirty.20190716144505
ThermoMechanicalFlowProperties.h
Go to the documentation of this file.
1 
12 #pragma once
13 
14 #include "Physics.h"
15 #include "Pipe.h"
16 #include "RefrigerantProperties.h"
17 
18 namespace ProcessLib
19 {
20 namespace HeatTransportBHE
21 {
22 namespace BHE
23 {
25 {
26  double velocity;
28 };
29 
32  double const length,
33  RefrigerantProperties const& fluid,
34  double const flow_rate)
35 {
36  double const Pr =
38  fluid.thermal_conductivity);
39 
40  double const velocity = flow_rate / pipe.area();
41  double const Re = reynoldsNumber(velocity, pipe.diameter,
42  fluid.dynamic_viscosity, fluid.density);
43  double const nusselt_number = nusseltNumber(Re, Pr, pipe.diameter, length);
44  return {velocity, nusselt_number};
45 }
46 
49  Pipe const& inner_pipe, Pipe const& outer_pipe, double const length,
50  RefrigerantProperties const& fluid, double const flow_rate)
51 {
52  double const Pr =
54  fluid.thermal_conductivity);
55 
56  double const inner_pipe_outside_diameter = inner_pipe.outsideDiameter();
57 
58  // Velocity between the outer pipe and inner pipe.
59  double const velocity =
60  flow_rate / (outer_pipe.area() - inner_pipe.outsideArea());
61 
62  double const Re = reynoldsNumber(
63  velocity, outer_pipe.diameter - inner_pipe_outside_diameter,
64  fluid.dynamic_viscosity, fluid.density);
65 
66  double const diameter_ratio =
67  inner_pipe_outside_diameter / outer_pipe.diameter;
68  double const pipe_aspect_ratio =
69  (outer_pipe.diameter - inner_pipe_outside_diameter) / length;
70  double const nusselt_number =
71  nusseltNumberAnnulus(Re, Pr, diameter_ratio, pipe_aspect_ratio);
72  return {velocity, nusselt_number};
73 }
74 } // namespace BHE
75 } // namespace HeatTransportBHE
76 } // namespace ProcessLib
ThermoMechanicalFlowProperties calculateThermoMechanicalFlowPropertiesAnnulus(Pipe const &inner_pipe, Pipe const &outer_pipe, double const length, RefrigerantProperties const &fluid, double const flow_rate)
double prandtlNumber(double const &viscosity, double const &heat_capacity, double const &heat_conductivity)
Definition: Physics.h:20
double nusseltNumberAnnulus(double const reynolds_number, double const prandtl_number, double const diameter_ratio, double const pipe_aspect_ratio)
Definition: Physics.h:64
double outsideArea() const
Area of the pipe's outside including the wall thickness.
Definition: Pipe.h:36
ThermoMechanicalFlowProperties calculateThermoMechanicalFlowPropertiesPipe(Pipe const &pipe, double const length, RefrigerantProperties const &fluid, double const flow_rate)
double reynoldsNumber(double const velocity_norm, double const pipe_diameter, double const viscosity, double const density)
Definition: Physics.h:27
double nusseltNumber(double const reynolds_number, double const prandtl_number, double const pipe_diameter, double const pipe_length)
Definition: Physics.h:35
double area() const
Area of the pipe's inside without the wall.
Definition: Pipe.h:33