Skip to content

Commit

Permalink
Merge pull request #29 from fusion-energy/develop
Browse files Browse the repository at this point in the history
added cittation file and updated examples
  • Loading branch information
shimwell authored Oct 19, 2021
2 parents 52bd93d + f8f9b8b commit 0f8c001
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
17 changes: 17 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Delaporte-Mathurin"
given-names: "Rémi"
orcid: "https://orcid.org/0000-0003-1064-8882"
- family-names: "Shimwell"
given-names: "Jonathan"
orcid: "https://orcid.org/0000-0001-6909-0946"
- family-names: "Pranto"
given-names: "Ariful Islam"
- family-names: "Faisal"
given-names: "Mohammed"
title: "OpenMC Plasma Source"
version: 0.2.2
date-released: 2021-09-29
url: "https://github.com/fusion-energy/openmc-plasma-source"
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ my_source = TokamakSource(
shafranov_factor=0.44789,
triangularity=0.270,
ion_temperature_beta=6
)
).make_openmc_sources()
```

For a more complete example check out the [example script](https://github.com/fusion-energy/openmc-plasma-source/blob/better_readme/examples/tokamak_source_example.py).
Expand All @@ -57,9 +57,11 @@ For a more complete example check out the [example script](https://github.com/fu
Create a ring source with temperature distribution of a 2000 eV plasma.

```python
from openmc_plasma_source import FusionRingSource

my_plasma = FusionRingSource(
start_angle = 0.,
stop_angle = 6.28318530718, # input is in radians
angles = (0., 6.28318530718), # input is in radians
radius = 400, # units in cm
temperature = 20000., # ion temperature in eV
fuel='DT' # or 'DD'
)
Expand All @@ -70,6 +72,8 @@ Create a point source with temperature distribution of a 2000 eV plasma.


```python
from openmc_plasma_source import FusionPointSource

my_plasma = FusionPointSource(
coordinate = (0, 0, 0),
temperature = 20000., # ion temperature in eV
Expand Down

0 comments on commit 0f8c001

Please sign in to comment.