Skip to content

caicairay/Scorpio_AMR_Loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scorpio_AMR_Loader

the external Scorpio frontend of YT

Usage

import sys
sys.path.append("/Path/of/the/package")
from data_io import ScorpioLoader
variables = [1,1,1,1,1,1,1,1]  # variables in the simulation ['den','momx','momy','momz','bx','by','bz','ene']
dimensions = [100,100,150]     # initial resolution along x,y,z direction    
periodicity = [False]*3        # whether the boundary condition is periodic
flnm = './g0000.h5'            # filename of the simulation
loader = ScorpioLoader(flnm,variables, dimensions,periodicity)
ds = loader.load()             # this will give you a YT dataset, for more tutorial, check https://yt-project.org/

About

the external Scorpio frontend of YT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages