示例#1
0
 public void SetForce_Ry(ChLinkForce m_for)
 {
     if (force_Ry == null)
     {
         force_Ry = null;
     }
     force_Ry = m_for;
 }
示例#2
0
 public void SetForce_Rz(ChLinkForce m_for)
 {
     if (force_Rz == null)
     {
         force_Rz = null;
     }
     force_Rz = m_for;
 }
示例#3
0
 public void SetForce_Z(ChLinkForce m_for)
 {
     if (force_Z == null)
     {
         force_Z = null;
     }
     force_Z = m_for;
 }
示例#4
0
 public void SetForce_Rx(ChLinkForce m_for)
 {
     if (force_Rx == null)
     {
         force_Rx = null;
     }
     force_Rx = m_for;
 }
示例#5
0
 public void SetForce_Y(ChLinkForce m_for)
 {
     if (force_Y == null)
     {
         force_Y = null;
     }
     force_Y = m_for;
 }
示例#6
0
 public void SetForce_X(ChLinkForce m_for)
 {
     if (force_X == null)
     {
         force_X = null;
     }
     force_X = m_for;
 }
示例#7
0
 public void SetForce_D(ChLinkForce m_for)
 {
     if (force_D == null)
     {
         force_D = null;
     }
     force_D = m_for;
 }
示例#8
0
        public ChLinkForce(ChLinkForce other)
        {
            active = other.active;

            iforce = other.iforce;
            K      = other.K;
            R      = other.R;

            // replace functions:
            modul_iforce = null;
            modul_K      = null;
            modul_R      = null;
            modul_iforce = other.modul_iforce.Clone();
            modul_K      = other.modul_K.Clone();
            modul_R      = other.modul_R.Clone();
        }
示例#9
0
        public ChLinkMasked(ChLinkMasked other) : base(other)
        {
            mask = other.mask.Clone();

            // setup -alloc all needed matrices!!
            ChangedLinkMask();

            force_D  = other.force_D.Clone();
            force_R  = other.force_R.Clone();
            force_X  = other.force_X.Clone();
            force_Y  = other.force_Y.Clone();
            force_Z  = other.force_Z.Clone();
            force_Rx = other.force_Rx.Clone();
            force_Ry = other.force_Ry.Clone();
            force_Rz = other.force_Rz.Clone();

            d_restlength = other.d_restlength;
        }