pipe
Pipe
Pipe(
pipe_input: PipeInputSchema, outer_radius_cable: float
)
Represents a pipe surrounding a cable, including its filling material and geometry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pipe_input
|
PipeInputSchema
|
Schema containing pipe configuration (SDR, fill type, radii). |
required |
outer_radius_cable
|
float
|
Outer radius of the cable that the pipe surrounds, in meters. |
required |
Source code in cable_thermal_model/model/cables/pipe.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
determine_pipe_size
determine_pipe_size(
inner_radius: float | None = None,
outer_radius: float | None = None,
) -> tuple[float, float]
Determine the correct pipe size for a given cable.
Notes
The missing radius size values are calculated using the following rules: - If only the inner ór outer radius is specified: The SDR value is used to compute the other radius. (SDR or Standard Dimensional Ratio is defined as the ratio of outer diameter to the pipe thickness.) - If neither is specified: The first conventional size that leaves enough space for the cable is chosen according to the S7002.
If the method is called with both inner_radius and outer_radius already prefilled, this method only checks if the inner radius is smaller than the outer radius, raising a ValueError if not the case.
Returns:
| Type | Description |
|---|---|
tuple[float, float]
|
tuple[float, float]: A tuple indicating, in order, the inner and outer radius for the pipe. |
Source code in cable_thermal_model/model/cables/pipe.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
choose_default_pipe_size
choose_default_pipe_size() -> tuple[float, float]
Choose a default pipe size for a given cable.
The first conventional size that leaves enough space for the cable is chosen.
Returns:
| Type | Description |
|---|---|
tuple[float, float]
|
tuple[float, float]: A tuple indicating, in order, the inner and outer radius for the pipe. |
Source code in cable_thermal_model/model/cables/pipe.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
get_thermal_resistivity_pipe_fill
get_thermal_resistivity_pipe_fill(T: float = 20) -> float
This method computes the thermal resistivity by extracting it from the lump sum resistivity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
T
|
float
|
temperature of the medium in the pipe in degrees Celsius |
20
|
Returns:
| Name | Type | Description |
|---|---|---|
float |
float
|
The thermal resistivity (Km/W) of the pipe filling material. |
Source code in cable_thermal_model/model/cables/pipe.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | |