6 releases

0.1.5 Aug 24, 2022
0.1.4 Aug 9, 2021

#641 in Math

30 downloads per month

MIT license

90KB
241 lines

Particle methods for 1D conservation laws

Crates.io docs.rs GitHub Workflow Status MIT license Lines of code

This crate implements the deterministic particle schemes described in the article Entropy solutions of non-local scalar conservation laws with congestion via deterministic particle method, E. Radici, F. Stra (2021), https://arxiv.org/abs/2107.10760.

You can cite the article as

@online{RadiciStra2021,
    title={Entropy solutions of non-local scalar conservation laws with congestion via deterministic particle method}, 
    author={Emanuela Radici and Federico Stra},
    year={2021},
    eprint={2107.10760},
    archivePrefix={arXiv},
    primaryClass={math.AP},
    url={https://arxiv.org/abs/2107.10760}
}

This is a reimplementation in Rust of the Julia package ConservationLawsParticles.jl.

The goal of this crate is to solve non-local conservation laws with congestion of the form

∂ₜρ + divₓ[ρ⋅v(ρ)(V - ∂ₓW⋆ρ)] = 0

via deterministic particle schemes. Plotting the trajectories of the particles produces images such as trajectories

Dependencies

~2.5–3.5MB
~76K SLoC