https://github.com/halbux/sparselizard
C++ FEM library | user-friendly | multi-physics | hp-adaptive | HPC
https://github.com/halbux/sparselizard
element finite finite-elements multiphysics simulation sparselizard
Last synced: 10 days ago
JSON representation
C++ FEM library | user-friendly | multi-physics | hp-adaptive | HPC
- Host: GitHub
- URL: https://github.com/halbux/sparselizard
- Owner: halbux
- License: other
- Created: 2019-04-09T15:27:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-08-27T17:14:15.000Z (5 months ago)
- Last Synced: 2025-08-28T02:09:45.941Z (5 months ago)
- Topics: element, finite, finite-elements, multiphysics, simulation, sparselizard
- Language: C++
- Homepage: http://www.sparselizard.org
- Size: 10.5 MB
- Stars: 373
- Watchers: 38
- Forks: 74
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Build instructions
Run the scripts in the 'install_external_libs' folder then configure and build:
```bash
mkdir build && cd build
cmake ..
cmake --build . -j$(nproc)
```
---
Provide a custom path to the petsc, gmsh (optional) or mpi (optional) folder with:
```bash
cmake .. -DPETSC_PATH=/yourpath/petsc -DGMSH_PATH=/yourpath/gmsh -DMPI_PATH=/yourpath/mpi
```
It may be convenient to use the cmake GUI:
```bash
cmake-gui
```
# Add project
Simulation projects are located under `simulations`.
In order to create a new simulation:
1. Copy `simulations/default` folder with different name. Let's say that the new folder is
`simulations/newsim`
1. Replace target name `default` with the new one in `simulations/newsim/CMakeLists.txt`
1. Add line `add_subdirectory(newsim)` to `simulations/CMakeLists.txt`
1. Configure and build. Executable file will be located in `build/simulations/newsim` folder