-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
example.py
59 lines (51 loc) · 1.28 KB
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
49
50
51
52
53
54
55
56
57
58
59
import buckinghampy
from buckinghampy.parameters import *
parameters = []
# Use to find the Reynolds number.
parameters.append([velocity, density, length, viscosity])
# Use to find Planck's exponential
parameters.append([speed_of_light, boltzmann, planck, temperature, frequency])
# Use to find the Rayleigh number.
parameters.append(
[
density,
gravity,
thermal_expansivity,
temperature,
length,
thermal_diffusivity,
viscosity,
]
)
# Use to find the Rayleigh number and alpha dt
parameters.append(
[
density,
gravity,
thermal_expansivity,
temperature,
length,
thermal_conductivity,
heat_capacity,
viscosity,
]
)
# Use to find the Darcy number
parameters.append([hydraulic_permeability, length])
# Use to find the rotational convection numbers
parameters.append(
[
length,
magnetic_permeability,
kinematic_viscosity,
velocity,
length,
electrical_conductivity,
rotation_rate,
]
)
for parameter_set in parameters:
nondimensional_numbers = buckinghampy.find_nondimensional_numbers(parameter_set)
print('Finding nondimensional numbers...')
for n in nondimensional_numbers:
print(n)