Isogeometric Analysis (IGA) integration for Ferrite.jl
Features · Installation · Documentation
FerriteGismo.jl brings Isogeometric Analysis capabilities to the Ferrite finite element framework by interfacing with the popular G+Smo (Geometry + Simulation Modules) C++ library.
This package is under active development and relies on internal Ferrite.jl functionality. Note:
- The
ConstraintHandleris not currently fully supported and will require future redesign - API is subject to change as the package matures
- Implementing a custom
IGADofHandlerwas also not a good idea and should be worked on in the future
- IGA Grids (
IGAGrid): IGA grid implementation compatible withFerrite.AbstractGrid - IGA Interpolations (
IGAInterpolation): B-spline and NURBS basis functions as Ferrite interpolations - Geometric Utilities: Access to knot vectors, degree elevation, knot refinement, and more
- VTK Export: Visualization support for IGA results
This package requires both FerriteGismo.jl and its dependency TinyGismo.jl, which are available through my Julia registry.
- Add my registry:
using Pkg pkg"registry add https://github.com/henrij22/JuliaRegistry"
- Install FerriteGismo:
pkg"add FerriteGismo"using FerriteGismo
# Create a B-spline geometry (unit square)
geometry = createBSplineSquare(1.0)
# Optional: refine the geometry
degreeElevate!(geometry, 1) # Increase polynomial degree
uniformRefine!(geometry, 1) # h-refinement
# Create an IGA grid
grid = IGAGrid{2}(geometry)
# Create IGA interpolation from the basis
basis = TinyGismo.basis(geometry)
ip = IGAInterpolation{RefQuadrilateral}(basis)
# Setup dof handler (same as in Ferrite)
dh = IGADofHandler(grid)
add!(dh, :u, ip)
close!(dh)
# Create cell values for assembly
qr = QuadratureRule{RefQuadrilateral}(2)
cv = CellValues(qr, ip, ip^2)
# Assembly loop works just like standard Ferrite
for cell in CellIterator(dh)
reinit!(cv, cell)
# ... assembly operations
end
FerriteGismo.jl interfaces with G+Smo through TinyGismo.jl, an unofficial Julia wrapper that provides:
- Native Julia conventions: 1-based indexing, bang methods (
!), parametric types - Core IGA functionality: Knot vectors, basis functions (B-spline, NURBS, tensor products)
- Geometry modeling: Spline curves, surfaces, and volumes
- Factory functions: Standard geometric shapes and primitives
The official Julia bindings Gismo.jl are also available. TinyGismo.jl aims to provide a more Julian interface with better documentation and type safety.
- Ferrite.jl 1.4
Contributions are welcome! This package is in active development and there are many opportunities to help:
- Implement missing features (constraint handler, boundary conditions)
- Add examples and tutorials
- Improve documentation
- Performance optimizations
- Bug fixes and testing
If you use FerriteGismo.jl in your research, please cite this package:
@software{FerriteGismo, author = {Jakob, Henrik}, title = {FerriteGismo.jl: Isogeometric Analysis for Ferrite.jl}, url = {https://github.com/henrij22/FerriteGismo.jl}, version = {0.1.2}, year = {2026} }
- Ferrite.jl - Finite element framework
- G+Smo - Geometry + Simulation Modules
- TinyGismo.jl - Julia wrapper for G+Smo
- Gismo.jl - Official Julia bindings for G+Smo
See LICENSE file for details.