Home

Awesome

GridapEmbedded <img src="https://github.com/gridap/Gridap.jl/blob/master/images/color-logo-only.png" width="40" title="Gridap logo">

Embedded finite element methods, level set surface descriptions and constructive solid geometry.

Build Status Codecov

Installation

# Type ] to enter package mode
pkg> add GridapEmbedded 

Examples

Constructive Solid Geometry (CSG)

julia> include("examples/PoissonCSGCutFEM/PoissonCSGCutFEM.jl")
julia> PoissonCSGCutFEM.main(n=40,outputfile="results1")

<img src="https://upload.wikimedia.org/wikipedia/commons/8/8b/Csg_tree.png" width="300"><img src="https://github.com/gridap/GridapEmbedded.jl/blob/master/examples/PoissonCSGCutFEM/PoissonCSGCutFEM_solution.png?raw=true" width="300">

left picture by wikipedia.org

julia> include("examples/StokesTubeWithObstacleCutFEM/StokesTubeWithObstacleCutFEM.jl")
julia> StokesTubeWithObstacleCutFEM.main(n=10,outputfile="results2")
<img src="https://github.com/gridap/GridapEmbedded.jl/blob/master/examples/StokesTubeWithObstacleCutFEM/StokesTubeWithObstacleCutFEM_solution.png?raw=true" width="600">

Bimaterial problems

julia> include("examples/BimaterialLinElastCutFEM/BimaterialLinElastCutFEM.jl")
julia> BimaterialLinElastCutFEM.main(n=4,outputfile="results3")
<img src="https://raw.githubusercontent.com/gridap/GridapEmbedded.jl/master/examples/BimaterialLinElastCutFEM/BimaterialLinElastCutFEM_solution.png" width="400">