1D validation: distributed load bar (SOFA vs FreeFEM vs analytical)#33
Merged
Conversation
th-skam
requested changes
Jul 15, 2026
th-skam
left a comment
Collaborator
There was a problem hiding this comment.
Results are alright.
There are 2 things to do here:
- 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.
- 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.
th-skam
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cross-validation on a 1D bar under distributed load, comparing three approaches:
sofa_bar_distributed.py)freefem_bar_distributed.edp)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 solverscomparaison_script.py— comparison script computing the RMS error between SOFA, FreeFEM, and the analytical solutionResults