添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Greetings!

I followed the instructions for Windows installation using Docker.

However this is unable to get called: openmc.examples nor am I able to run the code given in the documentation for Python API .

I am new to this type of coding (in Docker/Linux environment), please guide me.

Thanks!

Thanks @Shimwell

So, I originally used docker run openmc/openmc:latest and could not run any example, so if I use docker pull openmc/openmc:develop-dagmc instead, will I be able to execute the example here or here ?

Thanks!

@IIP If you want to run notebook file from the terminal, you have to convert it to python script first. Then rename the generated script to be an IPython script by changing the extension to .ipy and run it with ipython

So the steps on the command line all together would be:

jupyter nbconvert pincell.ipynb --to python
mv pincell.py pincell.ipy
ipython pincell.ipy

If I want to write and run code in a Jupyter Notebook (instead of code conversion) or Lab environment, how can I do that ?

For geometry, is there a direct way to import CAD from mainstream software like SolidWorks and Creo, instead of DAGMC ?

Thanks!

  • First, You have to install jupyter lab inside the container with the command as follows:
  • docker run -it --name=jupyter_lab openmc/openmc:latest
    pip install jupyterlab
    git clone https://github.com/openmc-dev/openmc-notebooks.git && exit
    docker commit jupyter_lab openmc_notebook
    docker run -it --rm -p 8888:8888 openmc_notebook jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --notebook-dir=/openmc-notebooks
    

    At this point, an HTTP address will appear in your terminal output, copy this address into your browser, and you’re ready to code!

  • Nope! But If you’re looking for the alternative of coreform-cubit for import and imprint/merging algorithm, you can try CAD_to_OpenMC python package.
  • Sorry for so many questions (I’m new to this) but what difference is in pulling OpenMC using
    docker pull openmc/openmc:latest from any other, such as docker pull openmc/openmc:develop-dagmc-libmesh.

    I noticed the ‘develop’ one’s are larger in size and have been pushed recently…

    Thanks again.

    @Pranto, PowerShell couldn’t run the commands. However, it worked on Command Prompt, but no link was generated…

    Please advise.

    Thanks.

    Re: For geometry, is there a direct way to import CAD from mainstream software like SolidWorks and Creo, instead of DAGMC ?

    Provided that your CAD software can output Brep, STP or STL files then there are a few tools out there for conversion to DAGMC h5m files which can then be run in OpenMC.

    We maintain a list of such software here