Skip to content

Commit 2f3bcbc

Browse files
Add neutronics documentation and vault image
1 parent 197f0c1 commit 2f3bcbc

File tree

6 files changed

+60
-3
lines changed

6 files changed

+60
-3
lines changed

docs/_static/vault.png

119 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
libra\_toolbox.neutronics package
2+
=================================
3+
4+
Submodules
5+
----------
6+
7+
libra\_toolbox.neutronics.neutron\_source module
8+
------------------------------------------------
9+
10+
.. automodule:: libra_toolbox.neutronics.neutron_source
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
libra\_toolbox.neutronics.vault module
16+
--------------------------------------
17+
18+
.. automodule:: libra_toolbox.neutronics.vault
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
Module contents
24+
---------------
25+
26+
.. automodule:: libra_toolbox.neutronics
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:

docs/modules/libra_toolbox.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Subpackages
88
:maxdepth: 4
99

1010
libra_toolbox.neutron_detection
11+
libra_toolbox.neutronics
1112
libra_toolbox.tritium
1213

1314
Module contents

libra_toolbox/_version.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# file generated by setuptools-scm
2+
# don't change, don't track in version control
3+
4+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5+
6+
TYPE_CHECKING = False
7+
if TYPE_CHECKING:
8+
from typing import Tuple
9+
from typing import Union
10+
11+
VERSION_TUPLE = Tuple[Union[int, str], ...]
12+
else:
13+
VERSION_TUPLE = object
14+
15+
version: str
16+
__version__: str
17+
__version_tuple__: VERSION_TUPLE
18+
version_tuple: VERSION_TUPLE
19+
20+
__version__ = version = '0.1.dev162+g197f0c1.d20250314'
21+
__version_tuple__ = version_tuple = (0, 1, 'dev162', 'g197f0c1.d20250314')

libra_toolbox/neutronics/neutron_source.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def A325_generator_diamond(
2929
by default (0, 0, 0)
3030
reference_uvw : tuple, optional
3131
direction for the polar angle (tuple or list of versors)
32-
it is the same for the openmc.PolarAzimuthal class
33-
more specifically, polar angle = 0 is the direction of the D accelerator
34-
towards the Zr-T target, by default (0, 0, 1)
32+
it is the same for the openmc.PolarAzimuthal class
33+
more specifically, polar angle = 0 is the direction of the D accelerator
34+
towards the Zr-T target, by default (0, 0, 1)
3535
3636
Returns
3737
-------

libra_toolbox/neutronics/vault.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ def build_vault_model(
99
"""
1010
Builds a complete OpenMC model for a simulation setup representing a
1111
shielding system for MIT Vault Laboratory.
12+
13+
.. image:: ../../docs/_static/vault.png
14+
:alt: Descriptive text for the image
15+
:align: center
1216
1317
Parameters:
1418
----------
@@ -48,6 +52,8 @@ def build_vault_model(
4852
for neutrons using the `openmc_data_downloader` library.
4953
- If an `overall_exclusion_region` is provided, it will be incorporated
5054
to exclude specific parts of the geometry.
55+
- The model's origin point (0.0, 0.0, 0.0) is located at the bottom right
56+
corner when entering the vault room.
5157
"""
5258

5359
# optional dependency

0 commit comments

Comments
 (0)