Skip to content

3D beam distributed load : SOFA vs FF cross-validation#39

Merged
th-skam merged 1 commit into
main-freefem-sofafrom
3d-distributed
Jul 21, 2026
Merged

3D beam distributed load : SOFA vs FF cross-validation#39
th-skam merged 1 commit into
main-freefem-sofafrom
3d-distributed

Conversation

@Fimache

@Fimache Fimache commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Extends the 2D distributed-load cross-validation (cantilever beam, no analytical
solution) to 3D with a tetrahedral mesh. The load is applied as a surface traction
(Neumann) on the Top face, equivalent to the FreeFEM term int2d(Th,4)(-Q*vy).
No plane-strain/plane-stress distinction is needed here since the full 3D volume
is modeled directly.

Files

  • beam3dtet.py — Gmsh tetrahedral mesh generator for the 3D beam (box geometry,
    physical tags: 1=Fixed, 2=Bottom, 3=Right, 4=Top, 5=Front, 6=Back, 7=Beam volume)
  • freefem_beam3d_distributed.edp — full 3D bilinear form (int3d, all cross-shear
    terms), Neumann load via int2d(Th,4), mesh loaded with gmshload3
  • comparaison_script3d.py — SOFA vs FreeFEM comparison, coordinate-based node
    matching, separate RMS on ux/uy/uz, parity plots
  • params_beam3d_distributed.json — physical parameters (same as the 2D case)

Bug fixed: non-conforming mesh

setTransfiniteVolume() was used together with triangulated (non-recombined)
boundary surfaces. Transfinite volume meshing picks its own internal diagonal
split, independent of the diagonals already chosen by the transfinite surface
mesh — the two are not guaranteed to agree, which produced boundary triangles
not matching any tetrahedron face (Border element not in mesh in FreeFEM).

Fix: removed setTransfiniteVolume(). Surfaces stay transfinite (controlled,
structured boundary mesh); the volume is filled by the standard (Delaunay)
3D algorithm, which is constrained to respect the already-fixed boundary mesh
exactly. Conformity confirmed via check_mesh_conformity.py at multiple
resolutions (all 6 tagged faces OK).

@th-skam th-skam left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works

@th-skam
th-skam merged commit ad25f91 into main-freefem-sofa Jul 21, 2026
1 of 3 checks passed
@th-skam
th-skam deleted the 3d-distributed branch July 21, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants