public static enum ElasticContactBase.DampingMethod extends java.lang.Enum<ElasticContactBase.DampingMethod>
ElasticContactBase.computeDamping(double, double) computes the
net damping d from the damping factor df.| Enum Constant and Description |
|---|
DIRECT
Damping is set directly to the damping factor
df. |
FORCE
Damping is set to
-force * df, where force is the
contact force computed by the ContactForceBehavior.computeResponse(double[], double, artisynth.core.modelbase.ContactPoint, artisynth.core.modelbase.ContactPoint, maspack.matrix.Vector3d, double, int) method and
df is the damping factor. |
| Modifier and Type | Method and Description |
|---|---|
static ElasticContactBase.DampingMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ElasticContactBase.DampingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElasticContactBase.DampingMethod DIRECT
df.public static final ElasticContactBase.DampingMethod FORCE
-force * df, where force is the
contact force computed by the ContactForceBehavior.computeResponse(double[], double, artisynth.core.modelbase.ContactPoint, artisynth.core.modelbase.ContactPoint, maspack.matrix.Vector3d, double, int) method and
df is the damping factor. This produces a Hunt and
Crossley-like damping similar to that used in OpenSim (see Sherman,
Seth and Delp, "Simbody: multibody dynamics for biomedical research",
2011 Symposium on Human Body Dynamics).public static ElasticContactBase.DampingMethod[] values()
for (ElasticContactBase.DampingMethod c : ElasticContactBase.DampingMethod.values()) System.out.println(c);
public static ElasticContactBase.DampingMethod valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null