siconos.kernel.NewtonImpactNSL (Python class)

class siconos.kernel.NewtonImpactNSL(*args)[source]

Bases: siconos.kernel.NonSmoothLaw

Newton impact Non Smooth Law.

This class formalizes the Newton Impact law together with a complementarity condition. i.e.

\left\{\begin{array}{l} y \geq 0, \lambda \geq 0, y^{T} \lambda=0\\ if y \leq 0 \quad \mbox{then} \quad \dot y(t^{+}) - e \dot y(t^{-}) \geq 0, \quad \lambda \geq 0, (\dot y(t^{+}) - e \dot y(t^{-}))^{T} \lambda=0 \end{array}\right.

nsLawSize is equal to 1.

Generated class (swig), based on C++ header Program listing for file kernel/src/modelingTools/NewtonImpactNSL.hpp.



default constructor

NewtonImpactNSL(double e)

constructor with the value of the NewtonImpactNSL attributes

Parameters:e – the value of the coefficient of restitution
NewtonImpactNSL(int size, double e)

Apply multiple-axis impact.

display() → None[source]

print the data to the screen

e() → double[source]

getter of e

Returns:the value of e
isVerified() → bool[source]

check the ns law to see if it is verified

Returns:a boolean value whioch determines if the NS Law is verified
setE(double newVal) → None[source]

setter of e

Parameters:newVal – a double to set e