public class YPRStiffnessUtils
extends java.lang.Object
Constructor and Description |
---|
YPRStiffnessUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
convertActiveForcesToYPR(VectorNd fr,
VectorNd f0,
MechModel mech)
Converts a system force vector to one that uses yaw-pitch-roll
displacements.
|
static void |
convertActiveVelocitiesFromYPR(VectorNd vr,
VectorNd v0,
MechModel mech)
Converts a system velocity vector from one that uses yaw-pitch-roll
displacements.
|
static void |
convertStiffnessToYPR(SparseBlockMatrix K,
VectorNd f,
java.util.ArrayList<DynamicComponent> comps)
Converts, in place, a stiffness matrix
K and a (optional) force
vector f from an angular displacement formulation to one using
yaw-pitch-roll displacements. |
public static void convertActiveForcesToYPR(VectorNd fr, VectorNd f0, MechModel mech)
fr
- converted force vectorf0
- original force vector (can be the same as fr)mech
- MechModel associated with the systempublic static void convertActiveVelocitiesFromYPR(VectorNd vr, VectorNd v0, MechModel mech)
vr
- converted velocitiesv0
- original velocites (can be the same as vr)mech
- MechModel associated with the systempublic static void convertStiffnessToYPR(SparseBlockMatrix K, VectorNd f, java.util.ArrayList<DynamicComponent> comps)
K
and a (optional) force
vector f
from an angular displacement formulation to one using
yaw-pitch-roll displacements. If f
is not null
, it
supplies the forces used for the conversion. Otherwise, these force are
obtained directly from the components.K
- matrix to convertf
- if not null
, force vector to convertcomps
- dynamic components associated with each matrix block
entry