Location: Tran 2017 - Cross-bridge model of shortening heat @ 70c85f9bc526 / Fevents.m

Author:
Kenneth Tran <k.tran@auckland.ac.nz>
Date:
2017-08-31 15:35:06+12:00
Desc:
Adding online links.
Permanent Source URI:
http://models.cellml.org/workspace/4a2/rawfile/70c85f9bc526e95d066e088954387d87b82f72c9/Fevents.m


function [value,isterminal,direction] = Fevents(t,y,Phase,Params)
% Locate the time when the active force equals the afterload at  
% which point, the integration should stop.

    [dy F_total ATPase F_net] = XBModel(t,y,Phase,Params);

    value = F_net;     % Detect height = 0
    isterminal = 1;   % Stop the integration
    direction = 0;   % Negative direction only
end