Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/_static/vault.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions docs/modules/libra_toolbox.neutronics.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
libra\_toolbox.neutronics package
=================================

Submodules
----------

libra\_toolbox.neutronics.neutron\_source module
------------------------------------------------

.. automodule:: libra_toolbox.neutronics.neutron_source
:members:
:undoc-members:
:show-inheritance:

libra\_toolbox.neutronics.vault module
--------------------------------------

.. automodule:: libra_toolbox.neutronics.vault
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: libra_toolbox.neutronics
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/modules/libra_toolbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Subpackages
:maxdepth: 4

libra_toolbox.neutron_detection
libra_toolbox.neutronics
libra_toolbox.tritium

Module contents
Expand Down
21 changes: 21 additions & 0 deletions libra_toolbox/_version.py

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not track this file in version control

Avoid using git add .

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# file generated by setuptools-scm
# don't change, don't track in version control

__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]

TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple
from typing import Union

VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '0.1.dev162+g197f0c1.d20250314'
__version_tuple__ = version_tuple = (0, 1, 'dev162', 'g197f0c1.d20250314')
6 changes: 3 additions & 3 deletions libra_toolbox/neutronics/neutron_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def A325_generator_diamond(
by default (0, 0, 0)
reference_uvw : tuple, optional
direction for the polar angle (tuple or list of versors)
it is the same for the openmc.PolarAzimuthal class
more specifically, polar angle = 0 is the direction of the D accelerator
towards the Zr-T target, by default (0, 0, 1)
it is the same for the openmc.PolarAzimuthal class
more specifically, polar angle = 0 is the direction of the D accelerator
towards the Zr-T target, by default (0, 0, 1)

Returns
-------
Expand Down
6 changes: 6 additions & 0 deletions libra_toolbox/neutronics/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ def build_vault_model(
"""
Builds a complete OpenMC model for a simulation setup representing a
shielding system for MIT Vault Laboratory.

.. image:: ../../docs/_static/vault.png
:alt: Descriptive text for the image
:align: center

Parameters:
----------
Expand Down Expand Up @@ -48,6 +52,8 @@ def build_vault_model(
for neutrons using the `openmc_data_downloader` library.
- If an `overall_exclusion_region` is provided, it will be incorporated
to exclude specific parts of the geometry.
- The model's origin point (0.0, 0.0, 0.0) is located at the bottom right
corner when entering the vault room.
"""

# optional dependency
Expand Down
Loading