Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
/ transcar Public archive

Blelly, Lilensten, Zettergren Transcar 1D ionosphere precipitation model

License

Notifications You must be signed in to change notification settings

space-physics/transcar

Repository files navigation

Transcar 1-D time-dependent ionosphere flux tube model

Language grade: Python Actions Status

Fortran Authors: P.L. Blelly, J. Lilensten, M. Zettergren

Python front-end, and Fortran interfacing: Michael Hirsch

TRANSCAR 1D flux tube ionospheric energy deposition flux transport model. Considers solar input and background conditions via MSIS, HWM. Models disturbance propagation in ionosphere via models including LCPFCT.

Prereqs

Because Transcar is Python & Fortran based, it runs on any PC/Mac with Linux, MacOS, Windows, etc. Most Fortran compilers can be used, including Gfortran and Intel.

  • Linux / Windows Subsystem for Linux: apt install gfortran cmake make
  • MacOS / Homebrew: brew install gcc cmake make

Windows

From native Windows install CMake and either of:

Install

from Terminal / Command Prompt

git clone https://github.com/scivision/transcar

cd transcar

python -m pip install -e .

cmake -B build

cmake --build build

Usage

Simulations are configured in dir.input/DATCAR. Simulations are run from the top directory. Python runs Transcar in parallel using concurrent.futures.ThreadPoolExecutor, dynamically adapting to the number of CPU cores available:

python MonoenergeticBeams.py /tmp/tc

Plotting

The simulation results are loaded and plotted by the transcarread Python package.