Пример #1
0
 /// Copy constructor
 public ChConstraintTwoTuplesContactN(ChConstraintTwoTuplesContactN <Ta, Tb> other) : base(other)
 {
     Constraint2TuplesNall.SetFrictionCoefficient(other.Constraint2TuplesNall.GetFrictionCoefficient());
     Constraint2TuplesNall.SetCohesion(other.Constraint2TuplesNall.GetCohesion());
     constraint_U = other.constraint_U;
     constraint_V = other.constraint_V;
 }
Пример #2
0
 /// Copy constructor
 public ChConstraintTwoTuplesRollingN(ChConstraintTwoTuplesRollingN <Ta, Tb> other) : base(other)
 {
     rollingfriction  = other.rollingfriction;
     spinningfriction = other.spinningfriction;
     constraint_U     = other.constraint_U;
     constraint_V     = other.constraint_V;
     constraint_N     = other.constraint_N;
 }
Пример #3
0
        protected ChConstraintTwoTuplesContactN <Ta, Tb> constraint_N; //< the pointer to N  component


        /// Default constructor
        public ChConstraintTwoTuplesRollingN()
        {
            rollingfriction  = 0;
            spinningfriction = 0;
            constraint_U     = null;
            constraint_V     = null;
            constraint_N     = null;

            this.mode = eChConstraintMode.CONSTRAINT_FRIC;
        }
Пример #4
0
 /// Set pointer to normal contact component
 public void SetNormalConstraint(ChConstraintTwoTuplesContactN <Ta, Tb> mconstr)
 {
     constraint_N = mconstr;
 }