jass.generators
Class StickSlipSimple

java.lang.Object
  extended by jass.engine.Out
      extended by jass.generators.Impulse
          extended by jass.generators.StickSlipSimple
All Implemented Interfaces:
Source

public class StickSlipSimple
extends Impulse

A force model based on stick slip model. Just load a period of sawtooth.

Author:
Kees van den Doel (kvdoel@cs.ubc.ca)

Field Summary
 
Fields inherited from class jass.generators.Impulse
t_pulse, volume
 
Fields inherited from class jass.engine.Out
buf, bufferSize, bufOld, lock
 
Constructor Summary
StickSlipSimple(float srate, int bufferSize)
          Construct force.
 
Method Summary
 void setContactProperties(float vel, float force)
          Set velocity and force
 void setModelParameters(float k_over_mu, float fmin, float vcrit)
          Set model pars
 
Methods inherited from class jass.generators.Impulse
computeBuffer, reset, setPeriod, setVolume
 
Methods inherited from class jass.engine.Out
clearBuffer, copyToOld, getBuffer, getBuffer, getBufferSize, getTime, peekAtBuffer, resetTime, setBufferSize, setTime, setTimeAndNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StickSlipSimple

public StickSlipSimple(float srate,
                       int bufferSize)
Construct force.

Parameters:
srate - sampling rate in Hertz.
bufferSize - bufferSize of this Out.
Method Detail

setModelParameters

public void setModelParameters(float k_over_mu,
                               float fmin,
                               float vcrit)
Set model pars

Parameters:
k_over_mu - k/mu
fmin - min. norm. force below which no output
vcrit - max speed above which no output

setContactProperties

public void setContactProperties(float vel,
                                 float force)
Set velocity and force

Parameters:
v - velocity in m/s