Skip to content

Event trigger directionality #1715

@paulflang

Description

@paulflang

I am trying to introduce directionality in an event trigger (i.e. only fire as either up or downpass). IIUC this correctly it should be possible in principle with affect_neg!=nothing in the ContinuousVectorCallback .
But in MTK, I am using a Pair{Vector{Equation}, Vector{Equation}}[] that is passed to continuous_events in the ODESystem constructor. Is there a good way to introduce directionality in a trigger using the ODESystem constructor/continuous_events keyword? My current code is here. Perhaps rather than using ~ in the trigger equation < or > could be used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions