-
Notifications
You must be signed in to change notification settings - Fork 0
/
param_types.py
70 lines (41 loc) · 1.14 KB
/
param_types.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
60
61
62
63
64
65
66
67
68
69
70
from enum import Enum
class VolumeCubicMeter(float):
"""A volume in cubic meters"""
pass
class LengthMeter(float):
"""A length in meters"""
pass
class MassKiloGramm(float):
"""A mass in kilogramms"""
pass
class CoolPropFluid(Enum):
"""Fluid string of coolprop library
Couldn't find full documentation yet.
See: http://www.coolprop.org/coolprop/HighLevelAPI.html
"""
Nitrogen = "Nitrogen"
Ethanol = "Ethanol"
N2O = "N2O"
Water = "Water"
LOX = "Oxygen"
class CEAFuelType(Enum):
"""One of RocketCEA supported fuel types
see https://rocketcea.readthedocs.io/en/latest/propellants.html
"""
Ethanol = "Ethanol"
class CEAOxidizerType(Enum):
"""One of RocketCEA supported oxidizer types
see https://rocketcea.readthedocs.io/en/latest/propellants.html
"""
N2O = "N2O"
LOX = "LOX"
class TKelvin(float):
"""Temperature value in Kelvin."""
class PPascal(float):
"""Pressure in Pascal."""
class DensityKGPCM(float):
"""Density in kg/m³"""
class FNewton(float):
"""Force in Newton"""
class CustomFuels(Enum):
ETHANOL_WATER = "EthanolWater"