-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding version 1.3.0 to docs (#274) * Update version_switcher.json Adding the new version to the documentation. * correction sphere additional plane * Adding the mention of libmamba solver to installation instructions (#280) * optimal bounbox to fix Torus bug * optimal bounbox to fix Torus bug * Torus envelope fix (partially) (#286) * Update of the documentation layout (#285) * update_of_docs * test * update 2 * update 3 * update 4 * test 5 * update 6 * update 7 * update 8 * test materials * test again * final --------- Co-authored-by: Jonathan Shimwell <[email protected]> Co-authored-by: Patrick Sauvan <[email protected]> Co-authored-by: Aljaz Kolsek (F4E) <[email protected]>
- Loading branch information
1 parent
8cccf75
commit 6c41e53
Showing
31 changed files
with
346 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Developer guide | ||
Developers guide | ||
=============== | ||
|
||
Developer install with Mamba | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
Quick Install Guide | ||
=================== | ||
|
||
Linux | ||
~~~~~ | ||
|
||
First we need to install a Conda distribution. There are a few options but we here we opt for `MiniConda3 <https://docs.anaconda.com/free/miniconda/>`_ as it downloads quicker than the fuller `Anaconda <https://www.anaconda.com/download>`_. | ||
|
||
You can follow the install instructions for `MiniConda3 <https://docs.anaconda.com/free/miniconda/>`_ or follow the commands below. | ||
Download. | ||
|
||
.. code-block:: sh | ||
mkdir -p ~/miniconda3 | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh | ||
Install MiniConda3 | ||
|
||
.. code-block:: sh | ||
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 | ||
Activate the base environment in your current terminal | ||
|
||
.. code-block:: sh | ||
~/miniconda3/bin/conda init bash | ||
It is recommended to create a new environment | ||
|
||
.. code-block:: sh | ||
conda create --name new_env python=3.11 | ||
Activate the new environment | ||
|
||
.. code-block:: sh | ||
conda activate new_env | ||
Install GEOUNED from conda-forge | ||
|
||
.. code-block:: sh | ||
conda install -c conda-forge geouned -y | ||
Then you will be able to run import GEOUNED from within Python | ||
|
||
.. code-block:: python | ||
import geouned | ||
You will also be able to use the GEOUNED command line tool | ||
|
||
.. code-block:: bash | ||
geouned_cadtocsg --help | ||
Windows | ||
~~~~~~~ | ||
|
||
First we need to install a Conda distribution. There are a few options but we here we opt for `MiniConda3 <https://docs.anaconda.com/free/miniconda/>`_ as it downloads quicker than the fuller `Anaconda <https://www.anaconda.com/download>`_. | ||
|
||
You can follow the install instructions for `MiniConda3 <https://docs.anaconda.com/free/miniconda/>`_ | ||
|
||
Download and execute the Miniforge3 Windows installer | ||
|
||
You can get it from the `Miniforge3 GitHub repository here <https://docs.anaconda.com/free/miniconda/>`_ or from the link below | ||
|
||
`https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe <https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe>`_ | ||
|
||
Open "Anaconda Prompt (miniconda3)" which will now be available on your start menu. | ||
|
||
It is recommended to create a new environment | ||
|
||
.. code-block:: sh | ||
conda create --name new_env python=3.11 | ||
Activate the new environment | ||
|
||
.. code-block:: sh | ||
conda activate new_env | ||
Since one of the GEOUNED dependencies is FreeCAD, classic conda solver of dependencies may significantly slow down the installation. For this reason, it is recommended to install and use conda-libmamba-solver | ||
|
||
.. code-block:: sh | ||
conda install conda-libmamba-solver | ||
Install GEOUNED from conda-forge, forcing the use of libmamba solver | ||
|
||
.. code-block:: sh | ||
conda install -c conda-forge geouned -y --solver=libmamba | ||
Then you will be able to run import GEOUNED from within Python | ||
|
||
.. code-block:: python | ||
import geouned | ||
You will also be able to use the GEOUNED command line tool | ||
|
||
.. code-block:: bash | ||
geouned_cadtocsg --help |
9 changes: 2 additions & 7 deletions
9
docs/usage/index.rst → ...uide/execution_settings/cad2csg/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
.. usage | ||
Usage | ||
===== | ||
CAD to CSG Translation | ||
====================== | ||
|
||
GEOUNED can be used as a Python package with the API or as a command line tool with the CLI. | ||
|
||
|
||
.. toctree:: | ||
:numbered: | ||
:maxdepth: 1 | ||
|
||
python_cadtocsg_api_usage | ||
python_cadtocsg_cli_usage | ||
python_csgtocad_api_usage | ||
python_csgtocad_cli_usage |
4 changes: 2 additions & 2 deletions
4
docs/usage/python_cadtocsg_api_usage.rst → ...ngs/cad2csg/python_cadtocsg_api_usage.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/usage/python_cadtocsg_cli_usage.rst → ...ngs/cad2csg/python_cadtocsg_cli_usage.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CSG to CAD Translation | ||
====================== | ||
|
||
GEOUNED can be used as a Python package with the API or as a command line tool with the CLI. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
python_csgtocad_api_usage | ||
python_csgtocad_cli_usage |
4 changes: 2 additions & 2 deletions
4
docs/usage/python_csgtocad_api_usage.rst → ...ngs/csg2cad/python_csgtocad_api_usage.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
docs/usage/python_csgtocad_cli_usage.rst → ...ngs/csg2cad/python_csgtocad_cli_usage.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Execution Settings | ||
================== | ||
|
||
GEOUNED can be used as a Python package with the API or as a command line tool with the CLI. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
cad2csg/index | ||
csg2cad/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Users Guide | ||
=========== | ||
|
||
GEOUNED can be used as a Python package with the API or as a command line tool with the CLI. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
installation/index | ||
execution_settings/index | ||
simplification | ||
material_allocation | ||
void_generation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Material Allocation | ||
=================== | ||
|
||
The material of the components can be assigned directly in the tree CAD by including a text with _mXX_ within the component name. | ||
|
||
.. image:: /images/mat_tag.png | ||
:alt: Example of a CAD tree with a _mXX_ tag. | ||
:align: center | ||
:width: 50% | ||
|
||
The material assigned to the corresponding cell should be defined in the material definition file whose name is provided by the matFile keyword. | ||
This file has the following format: | ||
|
||
.. image:: /images/mat_list.png | ||
:alt: Example of a material list. | ||
:align: center | ||
:width: 50% | ||
|
||
Where # is used for comments and the rest of the lines specifies the id of the material, the nominal density and the text to be included as a comment. | ||
The nominal density value is multiplied by -1 so the criterium is inverted with respect to MCNP one (i.e. g/cm3 positive and atm/b/cm negative). | ||
The nominal density can be changed by the inclusion of a multiplication factor using the following text in the CAD tree _mXX_dXX.XX_. | ||
For example, in our case _m01_d2.0_ will produce a cell with material 1 and density 2.0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Simplification of Geometry | ||
=========================== | ||
|
||
To be added. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Void Generation | ||
=============== | ||
|
||
To be added. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.