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

Author:
Kenneth Tran <k.tran@auckland.ac.nz>
Date:
2017-08-31 15:20:50+12:00
Desc:
Adding image.
Permanent Source URI:
https://models.fieldml.org/workspace/4a2/rawfile/b09963ece3950a7e2c1256070cab0b5e13411d90/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