Compose that runs this release:
services:
jupyter-notebook:
platform: linux/amd64
image: ghcr.io/ruifilipecampos/montycarlo:v0.1.0-alpha.3
command: jupyter notebook --ip='0.0.0.0' --port=${MONTY_JUPYTER_PORT:-8888} --no-browser --allow-root --NotebookApp.token=${MONTY_JUPYTER_TOKEN:-''}
ports:
- ${MONTY_JUPYTER_PORT:-8888}:8888
volumes:
- ${MONTY_NOTEBOOKS:-./notebooks}:/notebooks
Instructions:
docker compose up
localhost:8888
mat
import pyvista as pv
from MontyCarlo import *
from MontyCarlo.sources import *
from MontyCarlo.geometry.CSG import *
from MontyCarlo.plotter import Plotter
pv.set_plot_theme("dark")
pv.set_jupyter_backend('panel')
water = Mat({1:2, 8:1}, 1, name = "Water")
gold = Mat({79:1}, 1.93200000E+01, name = "Gold")
infinity = 100_000
with InfiniteVolume() as space:
space.configure("OUTER", render = False)
space.fill(gold)
with Sphere(infinity) as roi:
roi in space
roi.configure("limit", render = False)
roi.fill(water)
electron_beam = Beam(
"electron",
roi,
E = 10e6, # initial eneryg in eV
N = 200, # number of particles in the source, careful with this number, might break your run and fill your ram
pos = (0, 0, 0) # initial position
)
plotter = Plotter(electron_beam)
fig = plotter.new_plot()
fig.show()
Published by RuiFilipeCampos over 1 year ago
Just some workflow fixes.
Compose yml that runs this release:
services:
jupyter-notebook:
platform: linux/amd64
image: ghcr.io/ruifilipecampos/montycarlo:v0.1.0-alpha.2
command: jupyter notebook --ip='0.0.0.0' --port=${MONTY_JUPYTER_PORT:-8888} --no-browser --allow-root --NotebookApp.token=${MONTY_JUPYTER_TOKEN:-''}
ports:
- ${MONTY_JUPYTER_PORT:-8888}:8888
volumes:
- ${MONTY_NOTEBOOKS:-./notebooks}:/notebooks
Published by RuiFilipeCampos over 1 year ago
This features an easy to run Jupyer notebook server (docker compose up -d
) and an example notebook on how to run Monty.
Limitations of the pre-release:
Hopefully I will get these resolved and do an actual release, but it is possible to do a lot with this pre-release, even without the interface changes.
Published by RuiFilipeCampos about 3 years ago
Monty Carlo is only available on 64-bit machines, python versions 3.7, 3.8 and 3.9, and on Windows/macos systems.
This is a pre-alpha development release. It can also be found in PyPI, but see below for instructions.
It is highly recommended that you install MontyCarlo v0.1a0.dev2 on a conda virtual environment containing one of the following python versions, and nothing else: 3.7, 3.8 or 3.9. If you don't have anaconda you can download it from here.
Open an anaconda prompt and run the commands:
conda create --name myco39 python=3.9
conda activate myco39
The installation steps are simple:
pip install MontyCarlo==0.1a0.dev2
python -c "import MontyCarlo"
If you have a previous installation of MyCo, you must delete the environment first and then re-do the previous installation steps.
conda env remove --name myco39
Once you've installed MontyCarlo, clone the following repository: https://github.com/RuiFilipeCampos/MyCo-EXAMPLE1
Inside this repository folder simply run:
python main.py
Have fun exploring high energy particle tracks in a 3d environment!
water = Mat({1:2, 8:1}, 1)
;your_project\mat
.|
&
and -
operators;with
statements;your_project/geo
;IsotropicPoint
Beam
Z_TALLY
- calculates PDD'sPublished by RuiFilipeCampos about 3 years ago
Monty Carlo is only available on 64-bit machines, python versions 3.7, 3.8 and 3.9, and on Windows/macos systems.
This is a pre-alpha development release.
It is highly recommended that you install MontyCarlo v0.1a0.dev1 on a conda virtual environment containing one of the following python versions, and nothing else: 3.7, 3.8 or 3.9. If you don't have anaconda you can download it from here.
Open an anaconda prompt and run the commands:
conda create --name myco39 python=3.9
conda activate myco39
The installation steps are simple:
pip install MontyCarlo==0.1a0.dev1
python -c "import MontyCarlo"
If you have a previous installation of MyCo, you must delete the environment first and then re-do the previous installation steps.
conda env remove --name myco39
Once you've installed MontyCarlo, clone the following repository: https://github.com/RuiFilipeCampos/MyCo-EXAMPLE1
Inside this repository folder simply run:
python main.py
Have fun exploring high energy particle tracks in a 3d environment!
water = Mat({1:2, 8:1}, 1)
;your_project\mat
.|
&
and -
operators;with
statements;your_project/geo
;IsotropicPoint
Beam
Z_TALLY
- calculates PDD'sPublished by RuiFilipeCampos about 3 years ago
This is the first release !
Monty Carlo is only available on 64-bit machines, python versions 3.7, 3.8 and 3.9, and on Windows/macos systems.
It is highly recommended that you install MontyCarlo v0.0.41-pre-alpha on a conda virtual environment containing one of the following python versions, and nothing else: 3.7, 3.8 or 3.9. If you don't have anaconda you can download it from here.
Open an anaconda prompt and run the commands:
conda create --name py39 python=3.9
conda activate py39
The installation steps are simple:
pip install MontyCarlo
python -c "import MontyCarlo"
Once you've installed MontyCarlo, clone the following repository: https://github.com/RuiFilipeCampos/MyCo-EXAMPLE1
Inside this repository folder simply run:
python main.py
Have fun exploring high energy particle tracks in a 3d environment!
water = Mat({1:2, 8:1}, 1)
;your_project\mat
.|
&
and -
operators;with
statements;your_project/geo
;IsotropicPoint
Beam
Z_TALLY
- calculates PDD's