Batsrus.jl

BATSRUS/SWMF Data Processor
Author henry2004y
Popularity
5 Stars
Updated Last
1 Year Ago
Started In
February 2020

Batsrus.jl

Build Status License: MIT DOI

Fast BATSRUS/SWMF data reading, converting, and visualizing using Julia, successor of VisAnaMatlab.

This package provides the following functionalities:

  • simulation data reader
  • 2D/3D region cut from the whole domain
  • interpolation from unstructured to structured data
  • data format conversion to VTK
  • simulation data visualization through multiple plotting libraries

For more details, please check the document.

Prerequisites

  • Julia 1.6+

  • (Optional) Python and Matplotlib

Installation

using Pkg
Pkg.add("Batsrus")

Usage

See the examples.

Using from Python

In Python, you can easily take advantage of this package with the aid of PyJulia. After the installation, in the Python repl:

from julia import Batsrus
dir = 'test'
filename = '1d__raw_2_t25.60000_n00000258.out'
data = Batsrus.readdata(filename, dir=dir)

There you have it! Enjoy!

Benchmark

See the benchmark in the document.

Author

Acknowledgments

  • All the nice guys who share their codes!

Used By Packages

No packages found.