Skip to content

Commit 203f498

Browse files
quaglacopybara-github
authored andcommitted
Implement multi-cell finite element method for interpolated flexes.
This change introduces a `flex_cellcount` field to `mjModel` to specify the number of cells in each dimension for interpolated flexes. The stiffness computation, passive force calculation, and Jacobian derivatives are updated to operate on a per-cell basis, significantly improving performance by localizing computations to the nodes within each cell. PiperOrigin-RevId: 901216393 Change-Id: I219ff09197ba8ecb5cbf1ebfc0b00539718a33fd
1 parent dace405 commit 203f498

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dm_control/mjcf/schema.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@
12021202
<attribute name="group" type="int"/>
12031203
<attribute name="type" type="keyword" valid_values="grid box cylinder ellipsoid mesh gmsh direct"/>
12041204
<attribute name="count" type="array" array_type="int" array_size="3"/>
1205+
<attribute name="cellcount" type="array" array_type="int" array_size="3"/>
12051206
<attribute name="spacing" type="array" array_type="float" array_size="3"/>
12061207
<attribute name="scale" type="array" array_type="float" array_size="3"/>
12071208
<attribute name="radius" type="float"/>
@@ -1771,6 +1772,8 @@
17711772
<attribute name="texcoord" type="array" array_type="float"/>
17721773
<attribute name="elemtexcoord" type="array" array_type="float"/>
17731774
<attribute name="node" type="array" array_type="float" array_size="3"/>
1775+
<attribute name="cellcount" type="array" array_type="int" array_size="3"/>
1776+
<attribute name="dof" type="keyword" valid_values="trilinear quadratic"/>
17741777
</attributes>
17751778
<children>
17761779
<element name="edge" repeated="true">

0 commit comments

Comments
 (0)