Add 3D beam 3-point flexion validation: SOFA vs FreeFEM - #43
Open
Fimache wants to merge 1 commit into
Open
Conversation
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.
Context
Adds a new SOFA vs FreeFEM cross-validation case: 3D three-point bending
of a rectangular-section beam (P1 tetrahedra). Complements the existing
3D validation cases (circular traction, circular bending, torsion,
distributed load).
Setup
beam3d_tet.msh).split across the line's nodes using trapezoidal tributary-length
weights so the total applied force equals P.
Contents
sofa_beam3d_threept.py: SOFA scene —NewtonRaphsonSolver+SparseLDLSolver,LinearSmallStrainFEMForceField, pin/rollersupports via
FixedProjectiveConstraint/PartialFixedProjectiveConstraint, midspan load viaConstantForceField.freefem_beam3d_threept.edp: FreeFEM solve of the same problem(same geometry, same BCs), writes raw results to a plain-text file.
comparaison_script3d_3pt.py: runs both solvers, pairs nodesbetween SOFA and FreeFEM by coordinates (with grid-snapping to avoid
float-noise mismatches between the two mesh readers — see in-code
comment), computes discrete RMS on ux/uy/uz, and reports midspan
deflection (node nearest (L/2, H, W/2)) from both solvers.
params_beam3d_threept.json: load and material parameters(P, Young's modulus, Poisson's ratio).
beam3d_tet.msh: input mesh (kept — required to run the case,not a generated result).