Skip to content

Commit

Permalink
[skip-ci] update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Mar 18, 2024
1 parent f01de09 commit aea8690
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ In principle, any Conda/Mamba distribution will work. A few Conda/Mamba options
This example assumes you have installed the MambaForge option or separately
installed Mamba with ```conda install -c conda-forge mamba -y```

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

```bash
mamba create --name new_env python=3.9 -y
mamba create --name new_env python=3.10 -y
```

Activate the environment
Expand All @@ -42,25 +41,28 @@ mamba activate new_env
Install the dependencies, if this fails to solve the environment you could also try [installing OpenMC from source](https://docs.openmc.org/en/stable/quickinstall.html) which might be prefered.

```bash
mamba install -y -c conda-forge moab gmsh python-gmsh "openmc=0.14.0=dagmc*nompi*"
mamba install -y -c conda-forge moab>=5.3.0 gmsh python-gmsh "openmc=0.14.0=dagmc*nompi*"
```

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

```bash
mamba install -y -c cadquery ocp=7.7.4 cadquery=2.4.0
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.

```bash
python -m pip install git+https://github.com/CadQuery/cadquery.git
python -m pip install cadquery-ocp==7.7.2 cadquery==2.4.0
```

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

```bash
python -m pip install cad_to_dagmc
```
or
```bash
python -m pip install CAD_to_OpenMC
```

Expand Down

0 comments on commit aea8690

Please sign in to comment.