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