Git Product home page Git Product logo

model_benchmark_zoo's Introduction

A collection of parametric CAD and equivalent Constructive Solid Geometry models (CSG) for comparing neutronics simulations with both geometry types.

Model Testing Status

cuboid
cuboid - cad to openmc

sphere
sphere - cad to openmc

nested_sphere
nested sphere - cad to openmc

two_touching_cuboids
two touching cuboids - cad to openmc

cylinder
cylinder - cad to openmc

nested_cylinder
nested cylinder - cad to openmc

circular_torus
circular torus - cad to openmc

elliptical_torus
elliptical torus - cad to openmc

simple_tokamak
elliptical torus - cad to openmc

Installation prerequisite

In principle, any Conda/Mamba distribution will work. A few Conda/Mamba options are:

Install using Mamba and pip

This example assumes you have installed the MiniForge option or separately installed Mamba with conda install -c conda-forge mamba -y

Create a new conda environment, I've chosen Python 3.10 here but newer versions should also work.

mamba create --name new_env python=3.10 -y

Activate the environment

mamba activate new_env

Install the dependencies, if this fails to solve the environment you could also try installing OpenMC from source which might be preferred.

mamba install -y -c conda-forge gmsh python-gmsh "openmc=0.14.0=dagmc*nompi*"

CadQuery should then be installed, here is the mamba command and the pip command.

mamba install -y -c conda-forge ocp=7.7.2 cadquery=2.4.0

If the mamba command fails to solve the environment then try this pip command.

python -m pip install cadquery-ocp==7.7.2 cadquery==2.4.0

Then you can install whichever convertor you want to test. The cad_to_dagmc and the CAD_to_OpenMC packages can both be installed with pip or conda. Warning these should be installed in separate environments as they require a different version of Open Cascade.

python -m pip install cad_to_dagmc

or

python -m pip install CAD_to_OpenMC

Then you can install the model benchmark zoo with pip

python -m pip install git+git://github.com/fusion-energy/model_benchmark_zoo.git

Usage

Example scripts that make CSG and DAGMC geometry can be found in the examples folder

model_benchmark_zoo's People

Contributors

dkatelin1702 avatar ebknudsen avatar shimwell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

model_benchmark_zoo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.