File kernel/src/modelingTools/NewtonImpactFrictionNSL.hpp

Go to the source code of this file

Newton-Impact Non-Smooth Law.

class NewtonImpactFrictionNSL : public NonSmoothLaw
#include <NewtonImpactFrictionNSL.hpp>

Newton Impact-Friction Non Smooth Law.

Public Functions

NewtonImpactFrictionNSL(unsigned int size)

basic constructor

Parameters
  • size: size of the ns law

NewtonImpactFrictionNSL(double en, double et, double mu, unsigned 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

~NewtonImpactFrictionNSL()

Destructor.

ACCEPT_STD_VISITORS()

Visitors hook.

void display() const

print the data to the screen

double en() const

getter of en

Return
the value of en

double et() const

getter of et

Return
the value of et

bool isVerified(void) const

check the ns law to see if it is verified

Return
a boolean value whioch determines if the NS Law is verified

double mu() const

getter of mu

Return
the value of mu

void setEn(double newVal)

setter of en

Parameters
  • newVal: a double to set en

void setEt(double newVal)

setter of et

Parameters
  • newVal: a double to set et

void setMu(double newVal)

setter of mu

Parameters
  • newVal: a double to set mu

Private Functions

NewtonImpactFrictionNSL()

default constructor

ACCEPT_SERIALIZATION(NewtonImpactFrictionNSL)

serialization hooks

Private Members

double _en

The Newton coefficient of restitution.

double _et
double _mu

friction coefficient