Gridap
Gridap: An extensible Finite Element toolbox in Julia - Published in JOSS (2020)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 10 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
18 of 51 committers (35.3%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Scientific Fields
Repository
Grid-based approximation of partial differential equations in Julia
Basic Info
Statistics
- Stars: 802
- Watchers: 20
- Forks: 102
- Open Issues: 98
- Releases: 83
Topics
Metadata Files
README.md
| Documentation |
|:------------ |
|
|
|Build Status |
|
|
| Community |
|
|
| Citation |
|
|
What
Gridap provides a set of tools for the grid-based approximation of partial differential equations (PDEs) written in the Julia programming language. The library currently supports linear and nonlinear PDE systems for scalar and vector fields, single and multi-field problems, conforming and nonconforming finite element (FE) discretizations, on structured and unstructured meshes of simplices and n-cubes. It also provides methods for time integration. Gridap is extensible and modular. One can implement new FE spaces, new reference elements, use external mesh generators, linear solvers, post-processing tools, etc. See, e.g., the list of available Gridap plugins.
Gridap has a very expressive API allowing one to solve complex PDEs with very few lines of code. The user can write the underlying weak form with a syntax almost 1:1 to the mathematical notation, and Gridap generates an efficient FE assembly loop automatically by leveraging the Julia JIT compiler. For instance, the weak form for an interior penalty DG method for the Poisson equation can be simply specified as: ```julia a(u,v) = ∫( ∇(v)⋅∇(u) )dΩ + ∫( (γ/h)vu - v(nΓ⋅∇(u)) - (nΓ⋅∇(v))u )dΓ + ∫( (γ/h)jump(vnΛ)⋅jump(u*nΛ) - jump(vn_Λ)⋅mean(∇(u)) - mean(∇(v))⋅jump(un_Λ) )*dΛ
l(v) =
∫( vf )dΩ +
∫( (γ/h)vu - (n_Γ⋅∇(v))u )dΓ
See the complete code [here](https://github.com/gridap/Gridap.jl/blob/master/test/GridapTests/PoissonDGTests.jl). As an example for multi-field PDEs, this is how the weak form for the Stokes equation with Neumann boundary conditions can be specified:
julia
a((u,p),(v,q)) =
∫( ∇(v)⊙∇(u) - (∇⋅v)p + q(∇⋅u) )*dΩ
l((v,q)) = ∫( v⋅f + qg )dΩ + ∫( v⋅(nΓ⋅∇u) - (nΓ⋅v)p )dΓ ``` See the complete code here.
Documentation
- STABLE — Documentation for the most recently tagged version of Gridap.jl.
- DEVEL — Documentation for the in-development version of Gridap.
Tutorials
A hands-on user-guide to the library is available as a set of tutorials. They are available as Jupyter notebooks and html pages.
Installation
Gridap is a registered package in the official Julia package registry. Thus, the installation of Gridap is straight forward using the Julia's package manager. Open the Julia REPL, type ] to enter package mode, and install as follows
julia
pkg> add Gridap
Plugins
- GridapDistributed Distributed-memory extension of Gridap.
- GridapSolvers Scalable multiphysics finite element solvers.
- GridapEmbedded Embedded finite elements in Julia.
- GridapGmsh Generate a FE mesh with GMSH and use it in Gridap.
- GridapMakie Makie plotting recipes for Gridap.
- GridapPardiso Use the Intel Pardiso MKL direct sparse solver in Gridap.
- GridapPETSc Use PETSc linear and nonlinear solvers in Gridap.
Examples
These are some popular PDEs solved with the Gridap library. Examples taken from the Gridap Tutorials.
|
|
|
|
|
|:-------------:|:-------------:|:-----:|:----:|
| Poisson equation | Linear elasticity | Hyper-elasticity | p-Laplacian |
|
|
|
|
|
| Poisson eq. with DG | Darcy eq. with RT | Incompressible Navier-Stokes | Isotropic damage |
Known issues
Since Julia 1.6 onwards we have noticed large first call latencies of Gridap.jl codes with the default compiler optimization level (i.e., -O2).
In general, while developing code, but specially if you are noting high first call latencies, we recommend to run julia with the -O1 flag. For production runs use -O2 or -O3.
## Gridap community
You can ask questions and interact with the Gridap community on the Julia Slack channel #gridap (see here how to join). or our gitter.
Contributing to Gridap
Gridap is a collaborative project open to contributions. If you want to contribute, please take into account:
- Before opening a PR with a significant contribution, contact the project administrators, e.g., by writing a message in our gitter chat or by opening an issue describing what you are willing to implement. Wait for feed-back.
- Carefully read and follow the instructions in the CONTRIBUTING.md file.
- Carefully read and follow the instructions in the CODEOFCONDUCT.md file.
- Open a PR with your contribution.
Want to help? We have a number of issues waiting for help. You can start contributing to the Gridap project by solving some of those issues.
How to cite Gridap
In order to give credit to the Gridap contributors, we simply ask you to cite the references below in any publication in which you have made use of the Gridap project. If you are using other Gridap sub-packages, please cite them as indicated in their repositories.
``` @article{Badia2020, doi = {10.21105/joss.02520}, url = {https://doi.org/10.21105/joss.02520}, year = {2020}, publisher = {The Open Journal}, volume = {5}, number = {52}, pages = {2520}, author = {Santiago Badia and Francesc Verdugo}, title = {Gridap: An extensible Finite Element toolbox in Julia}, journal = {Journal of Open Source Software} }
@article{Verdugo2022, doi = {10.1016/j.cpc.2022.108341}, url = {https://doi.org/10.1016/j.cpc.2022.108341}, year = {2022}, month = jul, publisher = {Elsevier {BV}}, volume = {276}, pages = {108341}, author = {Francesc Verdugo and Santiago Badia}, title = {The software design of Gridap: A Finite Element package based on the Julia {JIT} compiler}, journal = {Computer Physics Communications} } ```
Contact
Please, contact the project administrators, Santiago Badia, Francesc Verdugo, and Alberto F. Martin for further questions about licenses and terms of use.
Owner
- Name: Gridap
- Login: gridap
- Kind: organization
- Repositories: 21
- Profile: https://github.com/gridap
Software ecosystem to solve PDEs in Julia
JOSS Publication
Gridap: An extensible Finite Element toolbox in Julia
Authors
Tags
julia pdes partial differential equations finite elementsGitHub Events
Total
- Create event: 39
- Commit comment event: 19
- Release event: 10
- Issues event: 45
- Watch event: 106
- Delete event: 19
- Issue comment event: 196
- Push event: 443
- Pull request review event: 36
- Pull request review comment event: 25
- Pull request event: 108
- Fork event: 10
Last Year
- Create event: 40
- Commit comment event: 19
- Release event: 10
- Issues event: 46
- Watch event: 106
- Delete event: 20
- Issue comment event: 199
- Push event: 447
- Pull request review event: 36
- Pull request review comment event: 25
- Pull request event: 112
- Fork event: 10
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Francesc Verdugo | f****o@c****u | 1,987 |
| Santiago Badia | s****a@m****u | 756 |
| JordiManyer | j****r@m****u | 656 |
| amartin | a****n@m****u | 260 |
| Oriol Colomes | o****s@g****m | 162 |
| RAPPAPORT Ari | a****t@i****r | 113 |
| victorsndvg | v****v@g****m | 78 |
| Kishore Nori | s****i@m****u | 74 |
| Antoine Marteau | a****u@p****m | 68 |
| Erik Schnetter | s****r@g****m | 50 |
| Alexandre Magueresse | a****e@m****u | 47 |
| Pere Antoni Martorell | p****l@c****u | 40 |
| Eric Neiva | e****a@c****r | 37 |
| Connor | c****n@m****u | 34 |
| Jesus Bonilla | j****a@c****u | 27 |
| Balaje K | b****6@g****m | 21 |
| Omega-xyZac | O****c | 16 |
| Jan Weidner | j****6@g****m | 14 |
| dhtan | d****n@g****m | 13 |
| Tamara Tambyah | t****h@m****u | 11 |
| github-actions[bot] | 4****] | 10 |
| Shreyas | s****2@g****m | 10 |
| MU00232207 | j****3@g****m | 10 |
| janmodderman | j****n@g****m | 8 |
| Olivier Vanvincq | o****q@u****r | 8 |
| Shagun@Watson | s****4@g****m | 7 |
| mochen4 | m****n@m****u | 7 |
| CompatHelper Julia | c****y@j****g | 7 |
| Jai Tushar | jt@d****u | 7 |
| ConnorMallon | c****2@s****u | 4 |
| and 21 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 128
- Total pull requests: 292
- Average time to close issues: 7 months
- Average time to close pull requests: about 2 months
- Total issue authors: 67
- Total pull request authors: 38
- Average comments per issue: 2.99
- Average comments per pull request: 1.77
- Merged pull requests: 212
- Bot issues: 0
- Bot pull requests: 25
Past Year
- Issues: 28
- Pull requests: 117
- Average time to close issues: 13 days
- Average time to close pull requests: 8 days
- Issue authors: 21
- Pull request authors: 19
- Average comments per issue: 1.57
- Average comments per pull request: 1.74
- Merged pull requests: 87
- Bot issues: 0
- Bot pull requests: 9
Top Authors
Issue Authors
- amartinhuertas (13)
- JordiManyer (8)
- oriolcg (7)
- Antoinemarteau (4)
- zjwegert (4)
- wei3li (3)
- JanSuntajs (3)
- hgpeterson (3)
- stevengj (3)
- kishore-nori (3)
- ericneiva (3)
- fverdugo (3)
- larsudb (2)
- iajzenszmi (2)
- DimhamT (2)
Pull Request Authors
- JordiManyer (80)
- Antoinemarteau (36)
- amartinhuertas (36)
- github-actions[bot] (21)
- kishore-nori (11)
- oriolcg (10)
- pmartorell (8)
- ericneiva (8)
- santiagobadia (8)
- fverdugo (6)
- AlexandreMagueresse (6)
- aerappa (5)
- shagun751 (5)
- janmodderman (5)
- Jai-Tushar (5)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- julia 310 total
- Total dependent packages: 18
- Total dependent repositories: 0
- Total versions: 85
juliahub.com: Gridap
Grid-based approximation of partial differential equations in Julia
- Documentation: https://docs.juliahub.com/General/Gridap/stable/
- License: MIT
-
Latest release: 0.19.4
published 5 months ago
Rankings
Dependencies
- JuliaRegistries/TagBot v1 composite
- actions/cache v1 composite
- actions/checkout v2 composite
- codecov/codecov-action v1 composite
- julia-actions/julia-buildpkg v1 composite
- julia-actions/julia-processcoverage v1 composite
- julia-actions/julia-runtest v1 composite
- julia-actions/setup-julia v1 composite
- actions/cache v1 composite
- actions/checkout v2 composite
- julia-actions/julia-buildpkg v1 composite
- julia-actions/julia-runtest v1 composite
- julia-actions/setup-julia v1 composite

