siconos.kernel.NewtonImpactFrictionNSL (Python class)

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

Bases: siconos.kernel.NonSmoothLaw

Newton Impact-Friction Non Smooth Law.

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

Constructors

NewtonImpactFrictionNSL(int size)

basic constructor

Parameters:size – size of the ns law
NewtonImpactFrictionNSL(double en, double et, double mu, int size)

constructor with the value of the NewtonImpactFrictionNSL attributes

Parameters:
  • en – double : normal e coefficient
  • et – double : tangent e coefficient
  • mu – double : friction coefficient
  • size – unsigned int: size of the ns law
display() → None[source]

print the data to the screen

en() → double[source]

getter of en

Returns:the value of en
et() → double[source]

getter of et

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

check the ns law to see if it is verified

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

getter of mu

Returns:the value of mu
setEn(double newVal) → None[source]

setter of en

Parameters:newVal – a double to set en
setEt(double newVal) → None[source]

setter of et

Parameters:newVal – a double to set et
setMu(double newVal) → None[source]

setter of mu

Parameters:newVal – a double to set mu