Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential tweaks for consideration #1

Open
1 of 6 tasks
shimwell opened this issue Mar 9, 2022 · 3 comments
Open
1 of 6 tasks

Potential tweaks for consideration #1

shimwell opened this issue Mar 9, 2022 · 3 comments

Comments

@shimwell
Copy link

shimwell commented Mar 9, 2022

Just watched your nice video 📹

Congrats on the smooth workflow 🎉 and great to see that the model and work is available to all 👍

One of the great things about putting this on GitHub is that we can all pitch in with random ideas 😉

I noticed a few things that might be of interested to you 👀

  • consider openmc.stats.CylindricalIndependent 🔴 instead of openmc.stats.Box 🟥 as this may provide more efficient source [docs link](sampling https://docs.openmc.org/en/stable/pythonapi/generated/openmc.stats.CylindricalIndependent.html)

  • consider making some materials from a chemical formula using .Material.add_elements_from_formula which is in the docs and accepts enrichment options :atom:

  • This is not always considered good practice but perhaps for your use case it is ok. Consider allowing jupyter notebook to run without login by adding the jupyter password into the entry point command something like this might be worth trying CMD ["jupyter", "lab", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''"]

  • consider using openmc.Model() which exports all the xml files needed and returns the name of the statepoint file #LineSaver.

  • consider making the github.com/openmsr/openmc_install_scripts repository pubilc as then the .gitmodules will work for all and those who are keen can build the dockerfile instead of downloading 🔗

  • Consider building the Docker image with some github actions CI and potentially running the notebook in the CI as well. Would be great to see some nice green badges in the readme.md ✔️

@ebknudsen
Copy link
Collaborator

ebknudsen commented Mar 9, 2022

Thank you for the kind words and suggestions. 👍 All good ones to keep in mind for next version of this one, or similar videos.
On the specific point on install scripts, we're currently reviewing and testing with the intention of making them public. At present they're more complicated than they have to be.

@shimwell
Copy link
Author

On the topic of simplifying the install we have made some nice progress recently by adding DAGMC to the Conda install for OpenMC

This attached picture shows how DAGMC is installed by compiling it with OpenMC on the left, a hybrid DAGMC conda and openmc compile in the center and on the right an OpenMC conda install that includes DAGMC.

This reduction in installation complexity was achieved by this pull request and we can certainly add more packages to the conda install to simplify the install further.

The DAGMC bundled with OpenMC conda install doesn't currently include Embree or Double Down but these could be included with a little development effort on the feedstock repo and associated repos.

concise_openmc_damgc_install_with_conda

@ebknudsen
Copy link
Collaborator

That's great. Thank's for pointing this out.
Specifically in terms of "home-use" MSRE double down and embree are a practical necessity, since otherwise the complexity of the model makes it very slow to run without.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants