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: 20 days 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 (about 10 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T05:31:33.000Z (over 3 years ago)
- Last Synced: 2025-04-12T08:12:44.430Z (20 days 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: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LCPFCT
[](https://zenodo.org/badge/latestdoi/32956122)
[](https://github.com/scivision/LCPFCT/actions)NRL Flux-Corrected Transport algorithm for Solving Generalized
Continuity Equations--now in Python with Examples!
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