Jukka Aho d18622d41c feat(topology): Complete topology library with all element types
**Implemented 14 additional topology types with zero-allocation interfaces**

This completes the topology module with all standard FEM element types from
1D to 3D, both linear and quadratic variants.

## New Topologies

### 1D Elements (Segments)
- Seg2: 2-node linear segment
- Seg3: 3-node quadratic segment

### 2D Elements
**Triangles:**
- Tri6: 6-node quadratic triangle
- Tri7: 7-node quadratic triangle (with center node)

**Quadrilaterals:**
- Quad8: 8-node quadratic quad (Serendipity)
- Quad9: 9-node quadratic quad (with center node)

### 3D Elements
**Tetrahedra:**
- Tet4: 4-node linear tetrahedron
- Tet10: 10-node quadratic tetrahedron

**Hexahedra:**
- Hex8: 8-node linear hexahedron
- Hex20: 20-node biquadratic hexahedron (Serendipity)
- Hex27: 27-node quadratic hexahedron (with face/volume nodes)

**Pyramids:**
- Pyr5: 5-node linear pyramid

**Wedges/Prisms:**
- Wedge6: 6-node linear wedge
- Wedge15: 15-node quadratic wedge

## Design Principles

**Zero-allocation throughout:**
- reference_coordinates() → NTuple{N, NTuple{D, Float64}}
- edges() → NTuple{Ne, Tuple{Int, Int}}
- faces() → NTuple{Nf, NTuple{Nn, Int}} or NTuple{Nf, Tuple{Vararg{Int}}}

All topology data is stack-allocated, compile-time sized tuples. No heap
allocations in hot assembly loops.

**Reference coordinates extracted from existing basis files:**
- src/basis/lagrange_segments.jl
- src/basis/lagrange_triangles.jl
- src/basis/lagrange_quadrangles.jl
- src/basis/lagrange_tetrahedrons.jl
- src/basis/lagrange_hexahedrons.jl
- src/basis/lagrange_pyramids.jl
- src/basis/lagrange_wedges.jl

**Complete topology coverage:**
- 1D: linear and quadratic segments
- 2D: triangles (3,6,7 nodes), quads (4,8,9 nodes)
- 3D: tets (4,10), hexes (8,20,27), pyramids (5), wedges (6,15)

This matches the rich set of elements JuliaFEM supported historically.

## Implementation Notes

**Edge/Face Connectivity:**
- edges(): Corner nodes only (defines element boundary)
- faces(): For 2D elements, all nodes; for 3D elements, corner nodes of each face
- Consistent with standard FEM conventions

**Pyramid Special Case:**
- Pyr5 uses Code Aster convention (from lagrange_pyramids.jl)
- Base at z=-1, apex at z=+1
- Mixed face types: 1 quad base + 4 triangular faces

**Wedge/Prism Special Case:**
- Triangular cross-section extruded along w-axis
- Mixed face types: 2 triangular + 3 quadrilateral faces

## Status

Total topology types: 17 (Seg2, Seg3, Tri3, Tri6, Tri7, Quad4, Quad8, Quad9,
Tet4, Tet10, Hex8, Hex20, Hex27, Pyr5, Wedge6, Wedge15)

**Not yet integrated** into src/JuliaFEM.jl (staged approach).

## Next Steps

1. Update topology.jl to export all types
2. Update src/JuliaFEM.jl to include all topology files
3. Add integration rules for all topologies in src/integration/gauss.jl
4. Generate Lagrange basis functions for all topologies

## References

- Existing basis files in src/basis/ (reference coordinate source)
- Abaqus Theory Manual (standard element definitions)
- Code Aster documentation (pyramid element convention)
- TECHNICAL_VISION.md (zero-allocation design philosophy)
2025-11-09 05:58:34 +02:00
2018-10-27 19:55:26 +03:00
2018-09-06 13:34:26 +03:00
2025-11-08 11:10:34 +02:00

JuliaFEM.jl - an open source solver for both industrial and academia usage

logo

DOI License Gitter Build Status Coverage Status Stable documentation Latest documentation Issues

The JuliaFEM project develops open-source software for reliable, scalable, distributed Finite Element Method.

The JuliaFEM software library is a framework that allows for the distributed processing of large Finite Element Models across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. The basic design principle is: everything is nonlinear. All physics models are nonlinear from which the linearization are made as a special cases.

At the moment, users can perform the following analyses with JuliaFEM: elasticity, thermal, eigenvalue, contact mechanics, and quasi-static solutions. Typical examples in industrial applications include non-linear solid mechanics, contact mechanics, finite strains, and fluid structure interaction problems. For visualization, JuliaFEM uses ParaView which prefers XDMF file format using XML to store light data and HDF to store large data-sets, which is more or less the open-source standard.

Vision

On one hand, the vision of the JuliaFEM includes the opportunity for massive parallelization using multiple computers with MPI and threading as well as cloud computing resources in Amazon, Azure and Google Cloud services together with a company internal server. And on the other hand, the real application complexity including the simulation model complexity as well as geometric complexity. Not to forget that the reuse of the existing material models as well as the whole simulation models are considered crucial features of the JuliaFEM package.

Recreating the wheel again is definitely not anybody's goal, and thus we try to use and embrace good practices and formats as much as possible. We have implemented Abaqus / CalculiX input-file format support and maybe will in the future extend to other FEM solver formats. Using modern development environments encourages the user towards fast development time and high productivity. For developing and creating new ideas and tutorials, we have used Jupyter notebooks to make easy-to-use handouts.

The user interface for JuliaFEM is Jupyter Notebook, and Julia language itself is a real programming language. This makes it possible to use JuliaFEM as a part of a bigger solution cycle, including for example data mining, automatic geometry modifications, mesh generation, solution, and post-processing and enabling efficient optimization loops.

Installing JuliaFEM

Inside Julia REPL, type:

Pkg.add("JuliaFEM")

Initial road map

JuliaFEM current status: project planning

Version Number of degree of freedom Number of cores
0.1.0 1 000 000 10
0.2.0 10 000 000 100
1.0.0 100 000 000 1 000
2.0.0 1 000 000 000 10 000
3.0.0 10 000 000 000 100 000

We strongly believe in the test driven development as well as building on top of previous work. Thus all the new code in this project should be 100% tested. Also other people have wisdom in style as well:

The Zen of Python:

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Errors should never pass silently.

Citing

If you like using our package, please consider citing our article

@article{frondelius2017juliafem,
  title={Julia{FEM} - open source solver for both industrial and academia usage},
  volume={50}, 
  url={https://rakenteidenmekaniikka.journal.fi/article/view/64224},
  DOI={10.23998/rm.64224},
  number={3},
  journal={Rakenteiden Mekaniikka},
  author={Frondelius, Tero and Aho, Jukka},
  year={2017},
  pages={229-233}
}

Contributing

Developing JuliaFEM encourages good practices, starting from unit testing both for smaller and larger functions and continuing to full integration testing of different platforms.

Interested in participating? Please start by reading contributing.

S
Description
Languages
Julia 98%
Python 1.7%
Shell 0.3%