-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get cold mass working and add way to disable calc
- Loading branch information
Showing
4 changed files
with
28 additions
and
13 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
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
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 |
---|---|---|
@@ -1,16 +1,22 @@ | ||
""" | ||
magnet_cold_mass(cur_solution=solve_magnet_equations()) | ||
Lorem ipsum dolor sit amet. | ||
Total volume of magnets times density (~8000 kg/m3) in [tons]. | ||
""" | ||
function magnet_cold_mass(cur_solution=solve_magnet_equations()) | ||
# comes from total volume of magnets x density (~8000 kg/m3) in [tons] | ||
|
||
# cur_cold_mass = Vol_ST_Total(cur_solution) | ||
if !enable_cold_mass_calc | ||
return magnet_standard_cold_mass | ||
end | ||
|
||
# cur_cold_mass += Vol_HTS_Total(cur_solution) | ||
cur_cold_mass = Vol_ST_Total(cur_solution) | ||
|
||
# cur_cold_mass *= 8000 # density | ||
cur_cold_mass += Vol_HTS_Total(cur_solution) | ||
|
||
cur_cold_mass *= St_Rho | ||
|
||
cur_cold_mass *= 1e-3 | ||
|
||
cur_cold_mass | ||
|
||
10135 | ||
end |
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