Skip to content

1D validation: distributed load bar (SOFA vs FreeFEM vs analytical)#33

Merged
th-skam merged 2 commits into
main-freefem-sofafrom
1D-validation
Jul 16, 2026
Merged

1D validation: distributed load bar (SOFA vs FreeFEM vs analytical)#33
th-skam merged 2 commits into
main-freefem-sofafrom
1D-validation

Conversation

@Fimache

@Fimache Fimache commented Jul 15, 2026

Copy link
Copy Markdown

Cross-validation on a 1D bar under distributed load, comparing three approaches:

  • SOFA (sofa_bar_distributed.py)
  • FreeFEM++ (freefem_bar_distributed.edp)
  • Analytical solution

Contents

  • freefem_bar_distributed.edp — FEM resolution of the distributed load bar problem in FreeFEM++
  • sofa_bar_distributed.py — equivalent SOFA scene (same geometric/material parameters)
  • params_distributed.json — shared parameters (geometry, material, loading) between both solvers
  • comparaison_script.py — comparison script computing the RMS error between SOFA, FreeFEM, and the analytical solution

Results

  • RMS SOFA vs analytical ===> RMS(sofa, exact) = 2.158877e-16
  • RMS SOFA vs FreeFEM: ===> RMS(sofa, ff) = 1.826920e-16

@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.

Results are alright.

Image

There are 2 things to do here:

  1. Rebase this branch on main-freefem-sofa keeping only your last commit which contains the 1D validation. The other ones are part of a previous branch that has already been merged.
  2. We had done some work here: https://github.com/InfinyTech3D/Elasticity/tree/main-freefem-sofa/examples/Freefem/1D_Bar
    Since you are always creating files from scratch, we keep your last one. Please delete everything inside the folder above.

Comment thread examples/Freefem/validation/1D/sofa_bar_distributed.py Outdated
@th-skam
th-skam merged commit 0e036e2 into main-freefem-sofa Jul 16, 2026
1 of 3 checks passed
@th-skam
th-skam deleted the 1D-validation branch July 16, 2026 09:02
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