-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
cleanup units, split off stellar_type unit
Showing
2 changed files
with
41 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from amuse.units.si import core | ||
|
||
stellar_type = core.enumeration_unit( | ||
'stellar_type', | ||
'stellar_type', | ||
None, | ||
[ | ||
"deeply or fully convective low mass MS star", # 0 | ||
"Main Sequence star", # 1 | ||
"Hertzsprung Gap", # 2 | ||
"First Giant Branch", # 3 | ||
"Core Helium Burning", # 4 | ||
"First Asymptotic Giant Branch", # 5 | ||
"Second Asymptotic Giant Branch", # 6 | ||
"Main Sequence Naked Helium star", # 7 | ||
"Hertzsprung Gap Naked Helium star", # 8 | ||
"Giant Branch Naked Helium star", # 9 | ||
"Helium White Dwarf", # 10 | ||
"Carbon/Oxygen White Dwarf", # 11 | ||
"Oxygen/Neon White Dwarf", # 12 | ||
"Neutron Star", # 13 | ||
"Black Hole", # 14 | ||
"Massless Supernova", # 15 | ||
"Unknown stellar type", # 16 | ||
"Pre-main-sequence Star", # 17 | ||
"Planet", # 18 | ||
"Brown Dwarf", # 19 | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters