Skip to content

pcrumley/spectral_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spectral_rs Build Status

A rust based relativistic pseudo-spectral PIC method

Unmagnetized shock

This is still very much a work in progress but can correctly model unmagnetized shocks

To run install rust https://www.rust-lang.org/tools/install

clone this repo. cd to the main directory (one with config.toml). Edit config.toml as you see fit, and then

cargo run --release

By default the code is in single precision, but if you want it to run in double precision

cargo run --release --features dprec

I also memory "unsafe" code but provide runtime assertions that prove memory safety is not violated. If you don't want have that very small runtime overhead you can run it as cargo run --release --features "dprec unchecked"

About

A rust based pseudo-spectral PIC method

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published