polaris-MCRT / POLARIS

3D Monte Carlo radiative transfer code

Home Page:https://portia.astrophysik.uni-kiel.de/polaris/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POLARIS: POLArized RadIation Simulator

arXiv ascl bibcode doi License Version

is a 3D Monte Carlo radiative transfer code that

  • allows to simulate intensity and polarization of light emerging from analytical astrophysical models as well as complex magneto-hydrodynamic simulations on various grids

  • is capable to perform dust heating, -emission, -scattering, -grain alignment, line radiative transfer, and synchrotron simulations

  • calculates synthetic intensity and polarization maps

  • makes use of a full set of physical quantities (density, temperature, velocity, magnetic field distribution, and dust grain properties as well as different sources of radiation) as input

Requirements

The following packages are required for the installation:

  • gcc (preferred), icc, or clang++

  • cmake (preferred), or ninja

  • Python version >= 3.6 (packages: numpy, setuptools)

Installation (Linux)

Open a terminal/console and move into the POLARIS directory:

cd /YOUR/POLARIS/PATH/

To install POLARIS, run the installation script:

./compile.sh -f

For the first installation, the option -f is required to install the CCfits and cfitsio libraries. Alternatively, these libraries can be installed with a package manager (root permissions are required):

sudo apt update
sudo apt install libccfits-dev libcfitsio-dev

If these packages are installed on the system, simply install POLARIS via

./compile.sh

For more information, type:

./compile.sh -h

POLARIS can now be executed from any newly opened terminal/console. To use it in already open terminals/consoles, execute the following command to update the environmental paths:

source ~/.bashrc

HINT: Please refer to the manual for installation on macOS. An installer to use POLARIS with Windows is not available yet.

Use POLARIS

For a guide how to run first simulations, please take a look in our quickstart.

For more information about POLARIS and its capabilities, please take a look in our manual.

If you use results from POLARIS in a publication, please cite Reissl et al. (2016) or Reissl et al. (2018). If line radiative transfer and/or Zeeman simulations are used, please cite Brauer et al. (2017) as well.

Project structure

.
├── bin                                      # Directory to store POLARIS executable
├── ci                                       # CI test script (only for testing purposes)
├── ext                                      # Catch2 test framework for unit-tests (only for testing purposes)
├── input                                    # Input data used by POLARIS
│   ├── dust                                 # Dust database files in the default POLARIS format
│   ├── gas                                  # Gas database files in the LAMDA format (including Zeeman files)
│   └── interstellar_radiation_field.dat     # Spectral energy distribution of the ISRF
├── lib                                      # CCfits and cfitsio libraries
├── projects                                 # Output directory to store simulation results and examples
│   ├── disk                                 # Exemplary disk model
│   ├── test                                 # Models for testing purposes
│   └── CommandList.cmd                      # List of available POLARIS commands
├── src                                      # Source files of the POLARIS code
├── tools                                    # PolarisTools directory
│   ├── polaris_tools_custom                 # User-definable modules for PolarisTools
│   ├── polaris_tools_modules                # Modules for PolarisTools
│   ├── polaris-gen.in                       # Source file for the polaris-gen tool
│   └── setup.py                             # Setup script for PolarisTools
├── AUTHORS.md
├── LICENSE.md
├── QUICKSTART.md
├── compile.sh                               # Compile script to install POLARIS (Linux)
├── README.md
├── manual.pdf
└── quickstart.pdf

Copyright

POLARIS is licensed under GPLv3.

Copyright © 2018 Stefan Reissl

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

For a list of corresponding authors, please see AUTHORS.

contact: polaris@astrophysik.uni-kiel.de

About

3D Monte Carlo radiative transfer code

https://portia.astrophysik.uni-kiel.de/polaris/

License:GNU General Public License v3.0


Languages

Language:C++ 93.1%Language:Python 5.1%Language:Shell 0.7%Language:Batchfile 0.5%Language:CMake 0.5%