Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scivision/lcpfct
NRL Flux-corrected Algorithm for Solving Generalized Continuity Equations LCPFCT from Python
https://github.com/scivision/lcpfct
f2py fortran geoscience plasma-physics plasma-turbulence python
Last synced: 3 months ago
JSON representation
NRL Flux-corrected Algorithm for Solving Generalized Continuity Equations LCPFCT from Python
- Host: GitHub
- URL: https://github.com/scivision/lcpfct
- Owner: scivision
- License: mit
- Created: 2015-03-26T22:52:49.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T05:31:33.000Z (over 3 years ago)
- Last Synced: 2024-05-02T03:09:05.647Z (9 months ago)
- Topics: f2py, fortran, geoscience, plasma-physics, plasma-turbulence, python
- Language: Python
- Homepage: https://www.nrl.navy.mil/lcp/LCPFCT
- Size: 1.85 MB
- Stars: 10
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LCPFCT
[![image](https://zenodo.org/badge/32956122.svg)](https://zenodo.org/badge/latestdoi/32956122)
[![Actions Status](https://github.com/scivision/LCPFCT/workflows/ci/badge.svg)](https://github.com/scivision/LCPFCT/actions)NRL Flux-Corrected Transport algorithm for Solving Generalized
Continuity Equations--now in Python with Examples!![fancy output plot animated](tests/fast2d.gif)
demonstrates use of Fortran code called from Python. In this case, using
Fortran code as a Python module is about 50 times faster than the very
slow writing Fortran output to a text file, and parsing the text in
Python or Matlab.## Install
For the Python wrapping Fortran:
pip install -e .
(optional) to use just Fortran alone:
cmake -B build
cmake --build build --parallel## Examples
### 2-D explosion
./runfast2d.py
### 1-D shock
./runshock.py
## References