[Core] Second-order elements (physics, visualization) - #6172
Merged
Merged
Conversation
alxbilger
marked this pull request as ready for review
July 24, 2026 12:51
Contributor
Author
|
[ci-build][with-all-tests] |
th-skam
self-requested a review
September 3, 2026 08:44
Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com>
damienmarchal
pushed a commit
to CRIStAL-PADR/sofa
that referenced
this pull request
Sep 9, 2026
…#6172) * add quadratic topology * implement getElementsRaw in dynamic topologies * fix compilation * skeleton to convert linear elements to quadratic * engine to generate quadratic tetrahedra * support edges and triangles * support quads and hexas * add drawing function * variation * clean example * fix warning * adding FEM class for quadratic tetrahedra * support quadratic tetrahedra in LinearSmallStrainFEMForceField and FEMMass * support quadratic tetrahedra in CorotationalFEMForceField * support more quadratic elements * fixes * fix finite element definition for quadratic hexahedron * options to compute only some types of elements * add tests * more tests * quadrature points from 2x2x2 to 3x3x3 * fix initial topology * fix compilation on CI * remove OglSceneFrame * add validation for tetrahedra * add validation for hexahedra * missing files * Fix wrong shape function for edges Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com> * remove quadratic prism/pyramid FEM because not tested --------- Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com> Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com>
Lucas-TJ
pushed a commit
to Lucas-TJ/sofa
that referenced
this pull request
Sep 14, 2026
…#6172) * add quadratic topology * implement getElementsRaw in dynamic topologies * fix compilation * skeleton to convert linear elements to quadratic * engine to generate quadratic tetrahedra * support edges and triangles * support quads and hexas * add drawing function * variation * clean example * fix warning * adding FEM class for quadratic tetrahedra * support quadratic tetrahedra in LinearSmallStrainFEMForceField and FEMMass * support quadratic tetrahedra in CorotationalFEMForceField * support more quadratic elements * fixes * fix finite element definition for quadratic hexahedron * options to compute only some types of elements * add tests * more tests * quadrature points from 2x2x2 to 3x3x3 * fix initial topology * fix compilation on CI * remove OglSceneFrame * add validation for tetrahedra * add validation for hexahedra * missing files * Fix wrong shape function for edges Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com> * remove quadratic prism/pyramid FEM because not tested --------- Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com> Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com>
Lucas-TJ
pushed a commit
to Lucas-TJ/sofa
that referenced
this pull request
Sep 15, 2026
…#6172) * add quadratic topology * implement getElementsRaw in dynamic topologies * fix compilation * skeleton to convert linear elements to quadratic * engine to generate quadratic tetrahedra * support edges and triangles * support quads and hexas * add drawing function * variation * clean example * fix warning * adding FEM class for quadratic tetrahedra * support quadratic tetrahedra in LinearSmallStrainFEMForceField and FEMMass * support quadratic tetrahedra in CorotationalFEMForceField * support more quadratic elements * fixes * fix finite element definition for quadratic hexahedron * options to compute only some types of elements * add tests * more tests * quadrature points from 2x2x2 to 3x3x3 * fix initial topology * fix compilation on CI * remove OglSceneFrame * add validation for tetrahedra * add validation for hexahedra * missing files * Fix wrong shape function for edges Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com> * remove quadratic prism/pyramid FEM because not tested --------- Co-authored-by: Frederick Roy <fredroy@users.noreply.github.com> Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com>
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.






Quadratic tetrahedra:
Quadratic hexahedra:

The system matrix:

Bunny with quadratic tetrahedra:
[with-all-tests]
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if