-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation: Added .css File, Changes to Chapter Structure/Hierachy…
… & Link formatting This removes the previous work-arround for bold links and replaces it with a .css file. The hierachy of different subsections has been altered to improve display in the sidebar.
- Loading branch information
Showing
10 changed files
with
3,758 additions
and
3,734 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a { | ||
font-weight: bold; | ||
} |
4,762 changes: 2,381 additions & 2,381 deletions
4,762
...ntation/gh-pages/source/configuration.rst → ...h-pages/source/configuring_simulation.rst
Large diffs are not rendered by default.
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
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,57 @@ | ||
Directory structure and environmental variables | ||
=============================================== | ||
|
||
After the compilation is completed and *Kassiopeia* has been installed to the installation directory, it is useful to | ||
set up some environment variables that allow you ton run ``Kassiopeia`` and other commands from any location. A script | ||
is provided that provides a similar functionality to the ``thisroot.sh`` script explained above. To set up *Kassiopeia* | ||
with the script, copy the following lines to your ``~/.bashrc`` (or similar), then logout and login again: | ||
|
||
.. code-block:: bash | ||
#Set up the Kassiopeia environmental variables | ||
source ~/kassiopeia/install/bin/kasperenv.sh | ||
The script will define a few environment variables that can be used outside of *Kassiopeia*: | ||
|
||
- KASPERSYS - the location of *Kassiopeia* binaries, libraries and configuration files. | ||
- KEMFIELD_CACHE - the location of the *KEMField* cache directory | ||
- KASPER_SOURCE - the location of the *Kassiopeia* source directory | ||
- KASPER_INSTALL - the location of the *Kassiopeia* installation directory | ||
|
||
The ``KASPERSYS`` and ``KEMFIELD_CACHE`` can, in principle, be changed to different locations before running | ||
simulations. This is intended to allow more flexible configurations on multi-user systems, or when multiple independent | ||
instances of the *Kassiopeia* software are installed. For the typical user, the variables can be left as they are. | ||
|
||
|
||
The complete set of *Kassiopiea* executables and configuration files will be found in the specified | ||
installation directory. The installation directory is broken down into several components, these are: | ||
|
||
- bin | ||
- cache | ||
- config | ||
- data | ||
- doc | ||
- include | ||
- lib | ||
- log | ||
- output | ||
- scratch | ||
|
||
The *Kassiopeia* executable can be found under the ``bin`` directory. Also in this directory is the script | ||
``kasperenv.sh`` that was mentioned above. | ||
|
||
The ``bin`` directory also contains other executables useful for interacting with the sub-components of *Kassiopeia* | ||
such as the *KEMField* or *KGeoBag* libraries. This included tools for generating particles without running a full | ||
simulation, for calculating electromagnetic fields, or for visualizing the simulation geometry. | ||
|
||
The ``lib`` directory contains all of the compiled libraries, as well as cmake and pkgconfig modules to enable linking | ||
against *Kassiopeia* by external programs. The ``include`` directory contains all of the header files of the compiled | ||
programs and libraries. | ||
|
||
The other directories: ``cache``, ``config``, ``data``, ``doc``, ``log``, ``output``, and ``scratch`` are all further | ||
sub-divided into parts which relate to each sub-module of the code: *Kassiopeia*, *Kommon*, *KGeoBag*, or *KEMField*. | ||
The ``cache`` and ``scratch`` directories are responsible for storing temporary files needed during run time for later | ||
reuse. The ``data`` directory contains raw data distributed with *Kassiopeia* needed for certain calculations (e.g. | ||
molecular hydrogen scattering cross sections). The ``log`` directory provides space to collect logging output from | ||
simulations, while the ``output`` directory is where simulation output is saved, unless otherwise specified. | ||
|
Large diffs are not rendered by default.
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
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,71 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Running Kassiopeia | ||
================== | ||
|
||
|
||
After installation, and assuming the proper environmental variables have been set by running the script | ||
``kasperenv.sh``, *Kassiopeia* can be run directly from the command prompt. The script sets the environment variables | ||
accordingly so that the variable ``KASPERSYS`` points to the installation directory, and *Kassiopeia* can be found | ||
in the standard executable path. To run a *Kassiopeia* simulation, the usage is simply: | ||
|
||
.. code-block:: bash | ||
Kassiopeia <path-to-xml-config-file> | ||
*Kassiopeia* also includes advanced variable replacement functionality, which makes it easy to modify one or many | ||
*simulation parameters on-the-fly. This can be done with the following usage: | ||
.. code-block:: bash | ||
Kassiopeia <path-to-xml-config-file> -r <variable1>=<value1> <variable2>=<value2> | ||
In this case, all elements after the ``-r`` flag are considered variable definitions. Alternatively, the following | ||
syntax can be used. Here all variable names are prefixed with ``--``, and options can be freely mixed: | ||
|
||
.. code-block:: bash | ||
Kassiopeia <path-to-xml-config-file> --<variable1>=<value1> --<variable2>=<value2> | ||
Verbosity levels | ||
---------------- | ||
|
||
As a quick means to change the output verbosity (i.e. the amount of messages shown on the terminal while the program | ||
is running), the ``-v`` and ``-q`` flags can be used. Each option raises/lowers the verbosity level, so that the | ||
following example would raise the level by one unit. Try it with one of the example XML files below! | ||
|
||
.. code-block:: bash | ||
Kassiopeia <path-to-xml-config-file> -v -q -v | ||
Output files | ||
------------ | ||
|
||
Upon completion of a simulation, the ROOT output files may be found in the directory | ||
``<kassiopeia-install-path>/output/Kassiopeia`` (where ``<kassiopeia-install-path>`` usually can be replaced by | ||
``$KASPERSYS``.) These output files can then be processed or analyzed by an external program, such as ``root``. If | ||
VTK_ was enabled at build time and the corresponding writer was enabled in the XML file, a set of ``.vtp`` output files | ||
(polygon data in the VTK file format) is created in the same directory. | ||
|
||
In order to prematurely terminate a running simulation, *Kassiopeia* provides a user interrupt feature. To terminate the | ||
simulation while allowing *Kassiopeia* to clean up and save the accumulated data to file, the user may type ``Crtl-C`` | ||
just once in the terminal. To immediately exit the simulation (without cleaning up or saving data), the user may press | ||
the key combination ``Crtl-C`` again, which leads to program termination. | ||
|
||
|
||
.. _VTK: http://www.vtk.org/ | ||
.. _Paraview: http://www.paraview.org/ | ||
.. _TBrowser: https://root.cern.ch/doc/master/classTBrowser.html | ||
.. _PyROOT: https://root.cern/manual/python/ | ||
.. _uproot: https://pypi.org/project/uproot/ | ||
.. _STL: https://en.wikipedia.org/wiki/STL_%28file_format%29 | ||
|
||
.. [*] D. Furse *et al.* (2017) New J. Phys. **19** 053012, `doi:10.1088/1367-2630/aa6950 <https://doi.org/10.1088/1367-2630/aa6950>`_ |
Oops, something went wrong.