https://github.com/blegouix/similie
https://github.com/blegouix/similie
cpp ddc electromagnetism gravitation hpc kokkos mechanics physics-simulation
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/blegouix/similie
- Owner: blegouix
- Created: 2024-09-20T17:29:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-05-22T17:03:01.000Z (27 days ago)
- Last Synced: 2026-05-22T21:26:05.869Z (27 days ago)
- Topics: cpp, ddc, electromagnetism, gravitation, hpc, kokkos, mechanics, physics-simulation
- Language: C++
- Homepage: https://blegouix.github.io/similie/
- Size: 13.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSES/MIT.txt
- Agents: AGENTS.md
Awesome Lists containing this project
README
# SimiLie

Documentation [here](https://blegouix.github.io/similie/).
SimiLie is a performance-portable (CPU & GPU) C++20 library aiming to extent the capabilities of [Kokkos](https://github.com/kokkos/kokkos) and [DDC](https://github.com/CExA-project/ddc) to offer a complete toolkit able to perform tensor calculus, differential calculus and solving PDE. A key paradigm is the exclusive support of structured meshes to avoid sparse linear algebra and produce mostly-embarrassing parallel code. It should be able to address any multiphysical problem on fixed grid from eventually-relativistic classical field theory (in particular: solid & fluid mechanics, electromagnetism and gravitation)
**Absolute WIP, there is no guarantee for proper working. Only OPENMP and CUDA backends have been tested.**
## AI-operability
Coding agents are extensively used to develop SimiLie. The `AGENTS.md` file provides the procedure to operate and develop with SimiLie, with the instruction to automatically detect the presence of a GPU and use the `similie_env` Dockerfile with `OPENMP` or `CUDA` environment/compilation. Ie.:
```
vibe
run tests
```
Should detect the presence of a GPU, build the corresponding docker image, compile Similie with `g++` or `nvcc` and run the tests.
## Development plan
1. Short term: simulate electromagnetism on manifold.
2. Mid term (months): simulate geometrodynamics.
3. Long term: generalize to all kinds of *classical* gauge theories.
4. Extra-long term (years): quantization.
## Initial roadmap
DONE:
- Tensors (any dimension, rank and structure), tensor fields, tensor product, covariant/contravariant character, metric.
- Differential forms: (co)simplices, (co)chains, (co)boundary operator, discrete Hodge star.
- GPU support.
TODO:
- Finite elements solver.
- Application to an electromagnetism problem on manifold.
- ...
## Contact
Send an email to baptistelegouix@gmail.com
## References
- Desbrun, M., Kanso, E., Tong, Y. (2008). [Discrete Differential Forms for Computational Modeling](https://link.springer.com/chapter/10.1007/978-3-7643-8621-4_16). In: Bobenko, A.I., Sullivan, J.M., Schröder, P., Ziegler, G.M. (eds) Discrete Differential Geometry. Oberwolfach Seminars, vol 38. Birkhäuser Basel.
- [Finite element exterior calculus](https://doi.org/10.1137/1.9781611975543). Douglas N. Arnold. CBMS-NSF Regional Conference Series in Applied Mathematics. SIAM 2018.
- [Gravitation](https://ui.adsabs.harvard.edu/abs/1973grav.book.....M/abstract). By C.W. Misner, K.S. Thorne and J.A. Wheeler. ISBN 0-7167-0334-3, ISBN 0-7167-0344-0 (pbk). San Francisco: W.H. Freeman and Company, 1973
- Celada, M., González, D., & Montesinos, M. (2016). [BF gravity](https://arxiv.org/abs/1610.02020). Classical and Quantum Gravity, 33(21), 213001.
- [Group Theory, Birdtracks, Lie’s, and Exceptional Groups](https://birdtracks.eu/), Predrag Cvitanović, Princeton University Press July 2008.