ivc_functions
Module containing functions common to multiple in vessel components
calculate_pipe_bend_radius(i_ps, radius_fw_channel, b_bz_liq)
Set the pipe bend radius based on the coolant type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
i_ps
|
int
|
switch for primary or secondary coolant |
required |
radius_fw_channel
|
float
|
radius of first wall cooling channels [m] |
required |
b_bz_liq
|
float
|
radial width of the rectangular cooling channel [m] for long poloidal sections of blanket breeding zone |
required |
Source code in process/models/engineering/ivc_functions.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
pumping_powers_as_fractions(f_p_fw_coolant_pump_total_heat, f_p_blkt_coolant_pump_total_heat, f_p_shld_coolant_pump_total_heat, f_p_div_coolant_pump_total_heat, p_fw_nuclear_heat_total_mw, psurffwi, psurffwo, p_blkt_nuclear_heat_total_mw, p_shld_nuclear_heat_mw, p_cp_shield_nuclear_heat_mw, p_plasma_separatrix_mw, p_div_nuclear_heat_total_mw, p_div_rad_total_mw)
Calculate mechanical pumping powers as fractions of thermal power in each component.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
f_p_fw_coolant_pump_total_heat
|
float
|
Fraction for FW coolant pump. |
required |
f_p_blkt_coolant_pump_total_heat
|
float
|
Fraction for blanket coolant pump. |
required |
f_p_shld_coolant_pump_total_heat
|
float
|
Fraction for shield coolant pump. |
required |
f_p_div_coolant_pump_total_heat
|
float
|
Fraction for divertor coolant pump. |
required |
p_fw_nuclear_heat_total_mw
|
float
|
Total FW nuclear heating (MW). |
required |
psurffwi
|
float
|
Inboard FW surface heating (MW). |
required |
psurffwo
|
float
|
Outboard FW surface heating (MW). |
required |
p_blkt_nuclear_heat_total_mw
|
float
|
Total blanket nuclear heating (MW). |
required |
p_shld_nuclear_heat_mw
|
float
|
Shield nuclear heating (MW). |
required |
p_cp_shield_nuclear_heat_mw
|
float
|
CP shield nuclear heating (MW). |
required |
p_plasma_separatrix_mw
|
float
|
Plasma separatrix power (MW). |
required |
p_div_nuclear_heat_total_mw
|
float
|
Divertor nuclear heating (MW). |
required |
p_div_rad_total_mw
|
float
|
Divertor radiative power (MW). |
required |
Returns:
| Type | Description |
|---|---|
tuple[float, float, float, float]
|
Tuple of pumping powers (MW) for FW, blanket, shield, and divertor. |
Source code in process/models/engineering/ivc_functions.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 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 | |
eshellarea(rshell, rmini, rmino, zminor)
Routine to calculate the inboard, outboard and total surface areas of a toroidal shell comprising two elliptical sections
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rshell
|
float
|
major radius of centre of both ellipses [m] |
required |
rmini
|
float
|
horizontal distance from rshell to inboard elliptical shell [m] |
required |
rmino
|
float
|
horizontal distance from rshell to outboard elliptical shell [m] |
required |
zminor
|
float
|
vertical internal half-height of shell [m] |
required |
Returns:
| Type | Description |
|---|---|
tuple[float, float, float]
|
Tuple containing: - ain: Surface area of inboard straight section (m²) - aout: Surface area of outboard curved section (m²) - atot: Total surface area of shell (m²) |
Source code in process/models/engineering/ivc_functions.py
98 99 100 101 102 103 104 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 | |
dshellarea(rmajor, rminor, zminor)
Calculate the inboard, outboard, and total surface areas of a D-shaped toroidal shell.
The inboard section is assumed to be a cylinder. The outboard section is defined by a semi-ellipse, centred on the major radius of the inboard section.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rmajor
|
float
|
Major radius of inboard straight section (m) |
required |
rminor
|
float
|
Horizontal width of shell (m) |
required |
zminor
|
float
|
Vertical half-height of shell (m) |
required |
Returns:
| Type | Description |
|---|---|
tuple[float, float, float]
|
Tuple containing: - ain: Surface area of inboard straight section (m²) - aout: Surface area of outboard curved section (m²) - atot: Total surface area of shell (m²) |
Source code in process/models/engineering/ivc_functions.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
eshellvol(rshell, rmini, rmino, zminor, drin, drout, dz)
Routine to calculate the inboard, outboard and total volumes of a toroidal shell comprising two elliptical sections
This routine calculates the volume of the inboard and outboard sections of a toroidal shell defined by two co-centred semi-ellipses. Each section's internal and external surfaces are in turn defined by two semi-ellipses. The volumes of each section are calculated as the difference in those of the volumes of revolution enclosed by their inner and outer surfaces.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rshell
|
major radius of centre of both ellipses (m) |
required | |
rmini
|
horizontal distance from rshell to outer edge of inboard elliptical shell (m) |
required | |
rmino
|
horizontal distance from rshell to inner edge of outboard elliptical shell (m) |
required | |
zminor
|
vertical internal half-height of shell (m) |
required | |
drin
|
horiz. thickness of inboard shell at midplane (m) |
required | |
drout
|
horiz. thickness of outboard shell at midplane (m) |
required | |
dz
|
vertical thickness of shell at top/bottom (m) |
required |
Returns:
| Name | Type | Description |
|---|---|---|
vin |
volume of inboard section (m3) |
|
vout |
volume of outboard section (m3) |
|
vtot |
total volume of shell (m3) |
|
-------
|
|
Source code in process/models/engineering/ivc_functions.py
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | |
dshellvol(rmajor, rminor, zminor, drin, drout, dz)
Routine to calculate the inboard, outboard and total volumes of a D-shaped toroidal shell
This routine calculates the volume of the inboard and outboard sections of a D-shaped toroidal shell defined by the above input parameters. The inboard section is assumed to be a cylinder of uniform thickness. The outboard section's internal and external surfaces are defined by two semi-ellipses, centred on the outer edge of the inboard section; its volume is calculated as the difference in those of the volumes of revolution enclosed by the two surfaces.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rmajor
|
major radius to outer point of inboardstraight section of shell (m) |
required | |
rminor
|
horizontal internal width of shell (m) |
required | |
zminor
|
vertical internal half-height of shell (m) |
required | |
drin
|
horiz. thickness of inboard shell at midplane (m) |
required | |
drout
|
horiz. thickness of outboard shell at midplane (m) |
required | |
dz
|
vertical thickness of shell at top/bottom (m) |
required |
Returns:
| Name | Type | Description |
|---|---|---|
vin |
volume of inboard straight section (m3) |
|
vout |
volume of outboard curved section (m3) |
|
vtot |
total volume of shell (m3) |
Source code in process/models/engineering/ivc_functions.py
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | |