Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #44 from fusion-energy/develop
Browse files Browse the repository at this point in the history
adding tet mesh support
  • Loading branch information
shimwell authored Sep 5, 2021
2 parents d0134df + 28ac281 commit 144dc86
Show file tree
Hide file tree
Showing 14 changed files with 216 additions and 131 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
# test:
build:
docker:
- image: ghcr.io/fusion-energy/paramak-neutronics:dependencies
- image: ghcr.io/fusion-energy/openmc-dagmc-wrapper:dependencies
steps:
- checkout
- run:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/autopep8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: autopep8
on: pull_request
jobs:
autopep8:
# Check if the PR is not from a fork
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
- name: autopep8
id: autopep8
uses: peter-evans/autopep8@v1
with:
args: --exclude=make_faceteted_neutronics_model.py --exit-code --recursive --in-place --aggressive --aggressive .
- name: Commit autopep8 changes
if: steps.autopep8.outputs.exit-code == 2
run: |
git config --global user.name 'autopep8'
git config --global user.email '[email protected]'
git commit -am "Automated autopep8 fixes"
git push
7 changes: 6 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(master_doc, "paramak-neutronics", "Paramak Documentation", [author], 1)]
man_pages = [
(master_doc,
"paramak-neutronics",
"Paramak Documentation",
[author],
1)]


# -- Options for Texinfo output ----------------------------------------------
Expand Down
9 changes: 7 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ neutronics simulations of fusion reactors in a reproducible manner.

The source code is distributed with a permissive open-source
license (MIT) and is available from the GitHub repository
`https://github.com/fusion-energy/paramak-neutronics <https://github.com/fusion-energy/paramak-neutronics>`_
`https://github.com/fusion-energy/openmc-dagmc-wrapper <https://github.com/fusion-energy/openmc-dagmc-wrapper>`_


Features
--------

In general the openmc-dagmc-wrapper takes a DAGMC geometry in the form of a h5m
file and helps all tallies, materials and a source term to be easily added to
file and helps adding tallies, materials and a source term to be easily added to
create a complete neutronics model. The package will also post processes the
results of the neutronics simulation to allow easy access to the outputs.
The simulated results are extracted from the statepoint.h5 file that
Expand All @@ -51,5 +51,10 @@ The `OpenMC workflow <https://github.com/fusion-energy/neutronics_workflow>`_
demonstrates the use of this package along side others in a complete neutronics
tool chain.

`CAD-to-h5m <https://github.com/fusion-energy/cad_to_h5m>`_ makes use of the
`Cubit API <https://coreform.com/products/coreform-cubit/>`_ to convert CAD
files (stp or sat format) into `DAGMC <https://svalinn.github.io/DAGMC/>`_
compatible h5m files for use in DAGMC enabled neutronics codes.

For magnetic confinement fusion simulations you might want to use the parametric-plasma-source
`Git repository <https://github.com/open-radiation-sources/parametric-plasma-source>`_
12 changes: 8 additions & 4 deletions examples/segmented_blanket_ball_reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def make_model_and_simulate():
temperature=blanket_rear_wall_coolant_temperature,
pressure=blanket_rear_wall_coolant_pressure,
),
nmm.Material.from_library(name=blanket_rear_wall_structural_material),
nmm.Material.from_library(
name=blanket_rear_wall_structural_material),
],
fracs=[
blanket_rear_wall_coolant_fraction,
Expand Down Expand Up @@ -156,7 +157,8 @@ def make_model_and_simulate():
temperature=center_column_shield_coolant_temperature_k,
pressure=center_column_shield_coolant_pressure_Pa,
),
nmm.Material.from_library(name=center_column_shield_structural_material),
nmm.Material.from_library(
name=center_column_shield_structural_material),
],
fracs=[
center_column_shield_coolant_fraction,
Expand Down Expand Up @@ -184,8 +186,10 @@ def make_model_and_simulate():
temperature=inboard_tf_coils_coolant_temperature_k,
pressure=inboard_tf_coils_coolant_pressure_Pa,
),
nmm.Material.from_library(name=inboard_tf_coils_conductor_material),
nmm.Material.from_library(name=inboard_tf_coils_structure_material),
nmm.Material.from_library(
name=inboard_tf_coils_conductor_material),
nmm.Material.from_library(
name=inboard_tf_coils_structure_material),
],
fracs=[
inboard_tf_coils_coolant_fraction,
Expand Down
Loading

0 comments on commit 144dc86

Please sign in to comment.