-
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.
Merge pull request #6 from fusion-energy/develop
latest developments
- Loading branch information
Showing
6 changed files
with
325 additions
and
86 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,28 @@ | ||
from openmc_depletion_plotter import plot_materials | ||
import openmc | ||
|
||
my_mat = openmc.Material() | ||
my_mat.add_element('Fe', 1) | ||
my_mat.add_element('Li', 0.5) | ||
my_mat.add_element('Be', 0.5) | ||
my_mat.add_element('Al', 0.5) | ||
my_mat.add_element('B', 0.5) | ||
my_mat.add_element('Co', 0.5) | ||
my_mat.set_density('g/cm3', 7.7) | ||
my_mat.volume = 1 | ||
|
||
|
||
my_mat_2 = openmc.Material() | ||
my_mat_2.add_element('Fe', 1) | ||
my_mat_2.add_element('Li', 0.5) | ||
my_mat_2.add_element('C', 0.5) | ||
my_mat_2.add_element('Al', 0.5) | ||
my_mat_2.add_element('Ni', 0.5) | ||
my_mat_2.add_element('Co', 0.5) | ||
my_mat_2.set_density('g/cm3', 7.7) | ||
my_mat_2.volume = 1 | ||
|
||
plot_materials( | ||
[my_mat, my_mat_2], | ||
filenames=['my_mat_1.png', 'my_mat_2.png'] | ||
) |
File renamed without changes.
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
Oops, something went wrong.