- Author:
- Kenneth Tran <k.tran@auckland.ac.nz>
- Date:
- 2017-08-31 15:06:57+12:00
- Desc:
- Uploading again due to openCor bug.
- Permanent Source URI:
- https://models.cellml.org/workspace/4a2/rawfile/1ff97ce0ff62973dcc4434f5d0d3acfc5285a1a8/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