Skip to content

[materials] A library of pre-configured materials and models for soft robots - #656

Open
th-skam wants to merge 3 commits into
sofa-framework:masterfrom
th-skam:materials-library
Open

th-skam wants to merge 3 commits into
sofa-framework:masterfrom
th-skam:materials-library

Conversation

@th-skam

@th-skam th-skam commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Materials library for soft robotics

The PR adds a materials Python package with calibrated parameters for common soft-robotics materials. A Material prefab can be used to add the matching model to a scene:

from materials import Material

node.addObject("RegularGridTopology", ...)
node.addObject("MechanicalObject", template="Vec3")
node.addObject("NodalMassDensity", property=1000)
node.addObject("FEMMass", template="Vec3,Hexahedron")
Material(parent=node, material="Dragon Skin 30", model="NeoHookean", units="s m kg", template="Vec3,Hexahedron")

Content

  • materials/library.py: the materials and their parameters.
  • materials/models.py: one class per constitutive model mapping the parameters to component Data.
  • materials/prefab.py: the Material prefab.
  • examples/materials_beam.py: cantilever beams comparing materials and models, coloured by von Mises stress.

One or two points to discuss: current status/direction of prefabs and literature-reference-to-SOFA conventions.

@th-skam th-skam added pr: status to review topic for next dev-meeting Worth discussion at dev meeting labels Nov 18, 2026
@th-skam th-skam removed the topic for next dev-meeting Worth discussion at dev meeting label Nov 19, 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.

1 participant