contact.energy

Syntax

f = contact.energy(c,s)

Get the current value of an energy partition. The second argument s refers to an energy partition name. If no such energy partition exists at the specified contact, then a zero value is returned.

Available contact energies are energy-adhesive, energy-dashpot, energy-pbstrain, energy-rrstrain, energy-rrslip, energy-slip, and energy-strain. These are defined in the “Contacts and Contact Models” section.

By default, energies are not accumulated. See the “Energy Tracking” topic for further details.

Returns:

f - energy partition value

Arguments:

c - contact pointer

s - energy partition name