private ChMatrixDynamic <double> Qf = new ChMatrixDynamic <double>(); //< Lagrangian force public ChForce() { Body = null; vpoint = new ChVector(0, 0, 0); vrelpoint = new ChVector(0, 0, 0); force = new ChVector(0, 0, 0); relforce = new ChVector(0, 0, 0); vdir = ChVector.VECT_X; vreldir = ChVector.VECT_X; restpos = new ChVector(0, 0, 0); mforce = 0; align = AlignmentFrame.BODY_DIR; frame = ReferenceFrame.BODY; mode = ForceType.FORCE; Qf = new ChMatrixDynamic <double>(7, 1); modula = new ChFunction_Const(1); move_x = new ChFunction_Const(0); move_y = new ChFunction_Const(0); move_z = new ChFunction_Const(0); f_x = new ChFunction_Const(0); f_y = new ChFunction_Const(0); f_z = new ChFunction_Const(0); }
/// Sets the alignment method. /// The force will rotate together with this reference. public void SetAlign(AlignmentFrame m_align) { align = m_align; }