public class HillMuscle extends SkeletalMuscleImpl
Modifier and Type | Class and Description |
---|---|
static class |
HillMuscle.Dynamics
Dynamical system for the Hill muscle model
|
VisiblyMutable.Event, VisiblyMutable.Listener, VisiblyMutable.NameChangeEvent, VisiblyMutable.NodeRemovedEvent
ACTIVATION, DYNAMIC_SPINDLE_ORIGIN, EXCITATION_TERMINATION, FORCE, GTO_ORIGIN, LENGTH, STATIC_SPINDLE_ORIGIN
Constructor and Description |
---|
HillMuscle(java.lang.String name,
float tauEA,
float maxIsometricForce,
Function CEForceLength,
Function CEForceVelocity,
Function SEForceLength) |
Modifier and Type | Method and Description |
---|---|
float |
getTorque() |
static void |
main(java.lang.String[] args) |
void |
run(float startTime,
float endTime)
Runs the Node (including all its components), updating internal state and outputs as needed.
|
void |
setExcitation(float excitation) |
void |
setInputs(float angle,
float velocity) |
addChangeListener, clone, getChildren, getDocumentation, getForce, getHistory, getMode, getName, getOrigin, getOrigins, getTermination, getTerminations, listStates, notifyAboutDeletion, removeChangeListener, reset, setDocumentation, setLength, setMode, setName, toScript
public HillMuscle(java.lang.String name, float tauEA, float maxIsometricForce, Function CEForceLength, Function CEForceVelocity, Function SEForceLength) throws StructuralException
name
- Muscle nametauEA
- see Hill modelmaxIsometricForce
- see Hill modelCEForceLength
- see Hill modelCEForceVelocity
- see Hill modelSEForceLength
- see Hill modelStructuralException
- if Dynamics creation failspublic void setInputs(float angle, float velocity)
angle
- Muscle anglevelocity
- Muscle velocitypublic float getTorque()
public void run(float startTime, float endTime) throws SimulationException
Node
run
in interface Node
run
in class SkeletalMuscleImpl
startTime
- simulation time at which running starts (s)endTime
- simulation time at which running ends (s)SimulationException
- if a problem is encountered while trying to runNode.run(float, float)
public void setExcitation(float excitation)
excitation
- Excitationpublic static void main(java.lang.String[] args)
args
- commandline args