Commit Graph

7 Commits

Author SHA1 Message Date
Jukka Aho d6babcdaea feat(examples): Add complete heat equation example addressing Issue #183
New file: examples/gmsh_heat_equation/gmsh_heat_equation.jl (225 lines)

Complete workflow demonstration:
- Step 1: Mesh generation (10×10 structured grid, 200 Tri3 elements)
- Step 2: Element creation with thermal conductivity property
- Step 3: FEM assembly (stiffness matrix K)
- Step 4: Matrix extraction for external solvers (DifferentialEquations.jl)
- Step 5: Solver configuration

Problem: ∂u/∂t = α∇²u on unit square
BC: u=0 on left edge, natural BC elsewhere
Shows exactly what Chris Rackauckas requested in Issue #183:
  a) Spatial discretization
  b) Stiffness matrix assembly
  c) Extracting K, M, f for external ODE solvers

Academic usage: demonstrates JuliaFEM as discretization engine
2025-11-09 23:22:57 +02:00
Jukka Aho d7939551fb feat(examples): Add Gmsh geometry file for unit square mesh
New file: examples/gmsh_heat_equation/unit_square.geo (32 lines)

Defines unit square [0,1]×[0,1] with:
- 4 corner points with mesh size lc=0.1
- 4 boundary edges (bottom, right, top, left)
- Plane surface for 2D heat equation
- Physical groups labeled for boundary conditions
- Triangular elements (Tri3, ElementOrder=1)
- Frontal-Delaunay meshing algorithm

Generate mesh with: gmsh -2 unit_square.geo -o unit_square.msh
2025-11-09 23:22:18 +02:00
Jukka Aho 5714f4aa0c Fix example of 2d hertz contact
Example was not Julia 1.0 compatible. Fixed. Closes issue #221.
2018-10-27 19:55:26 +03:00
Jukka Aho 072dba48ac Fix examples
* Fix deprecation warnings from examples and fix some small things.
2018-09-06 13:34:26 +03:00
Tero Frondelius 132e1659e2 Simple linear static example to be shown in SMP18 (#212)
* Simple linear static example to be shown in SMP18

* Improvements based on Jukka's review

* Fixing spacing after Literature.notebook run

* Adding ## Testing at the end of the example to make sure that something breaks, if the results will change

* Update linear_static.jl

Some little tweaks, mainly making that filter function more understandable.
2018-08-20 14:44:24 +03:00
Jukka Aho b8ac49c5a8 Use FEMBeam.jl (#200)
Use FEMBeam.jl to solve beam problems. Added an example, where
natural frequencies of frequencies of 3d frame structure are
calculated. Some minor modifications to Modal analysis is done to make
Xdmf writing of 6 dof nodes work.
2018-06-04 21:29:37 +03:00
Jukka Aho 413526804b Improve documentation (#199)
Let's use Literate.jl to automatically generate usage examples.

* Automatically generate documentation from other packages (first try to include each package's docs/src/index.md, but if that fails, then use README.md to introduce the package).
* Add example how to calculate local element matrices.
* Add example how to perform 2d contact analysis.
2018-05-30 11:52:01 +03:00