Skip to content

Add comparison script FreeFEM vs SOFA for 1D bar traction#4

Closed
Fimache wants to merge 1 commit intomain-freefem-sofafrom
feature/compare-1d
Closed

Add comparison script FreeFEM vs SOFA for 1D bar traction#4
Fimache wants to merge 1 commit intomain-freefem-sofafrom
feature/compare-1d

Conversation

@Fimache
Copy link
Copy Markdown

@Fimache Fimache commented Mar 30, 2026

This PR adds a comparison script between FreeFEM and SOFA for a 1D bar traction problem.

  • Runs FreeFEM simulation
  • Runs SOFA simulation with the same mesh
  • Compares results (L2 norm, max error)
  • Generates displacement plots and error figure

Results

  • SOFA and FreeFEM results match with very low error (~1e-4)
  • Validates the SOFA implementation for 1D elasticity

@th-skam
Copy link
Copy Markdown
Collaborator

th-skam commented Mar 30, 2026

Setting this to WIP.
The current file in-lines the sofa and freefem files, writes them out then runs them.
We would like to keep everything running from one file and using the API of these software to run simulations and compare the results.

@th-skam
Copy link
Copy Markdown
Collaborator

th-skam commented Apr 3, 2026

This has become irrelevant as we were adding the comparisons as we were completing the work for 1-3D.
Close without a merge.

@th-skam th-skam closed this Apr 3, 2026
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