Skip to content

Commit

Permalink
adding cross sections xml
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Jan 17, 2024
1 parent 7e7bba8 commit 37bdd58
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/point_source_example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import openmc
from openmc_plasma_source import FusionPointSource
from pathlib import Path

# just making use of a local cross section xml file, replace with your own cross sections or comment out
openmc.config["cross_sections"] = Path(__file__).parent.resolve() / "cross_sections.xml"

# minimal geometry
sphere_surface = openmc.Sphere(r=1000.0, boundary_type='vacuum')
Expand Down
4 changes: 4 additions & 0 deletions examples/ring_source_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import openmc
from openmc_plasma_source import FusionRingSource
import math
from pathlib import Path

# just making use of a local cross section xml file, replace with your own cross sections or comment out
openmc.config["cross_sections"] = Path(__file__).parent.resolve() / "cross_sections.xml"

# minimal geometry
sphere_surface = openmc.Sphere(r=1000.0, boundary_type='vacuum')
Expand Down
5 changes: 5 additions & 0 deletions examples/tokamak_source_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
from pathlib import Path
import openmc
from openmc_plasma_source import TokamakSource

# just making use of a local cross section xml file, replace with your own cross sections or comment out
openmc.config["cross_sections"] = Path(__file__).parent.resolve() / "cross_sections.xml"


# minimal geometry
sphere_surface = openmc.Sphere(r=1000.0, boundary_type='vacuum')
cell = openmc.Cell(region=-sphere_surface)
Expand Down

0 comments on commit 37bdd58

Please sign in to comment.