Skip to content

Commit 7e19860

Browse files
committed
Add the header
1 parent deffd78 commit 7e19860

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_ForceField_doc.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ stiffness_matrix = self.force_field.assembleKMatrix()
4141
Returns:
4242
A scipy.sparse.csr_matrix object representing the stiffness matrix of the force field
4343
)";
44+
45+
static constexpr const char* getPotentialEnergy = R"(
46+
Potential energy of the force field, evaluated at its current positions.
47+
48+
Returns:
49+
The potential energy of the force field, as a float
50+
)";
4451
}

0 commit comments

Comments
 (0)