CADETProcess.dynamicEvents.EventHandler.add_duration

CADETProcess.dynamicEvents.EventHandler.add_duration#

EventHandler.add_duration(name: str, time: float = 0.0) Duration[source]#

Register a new duration or time point of interest.

Durations are specific moments in the process that do not necessarily modify attributes but are noteworthy or need to be tracked.

Parameters:
name: str

Name of the event.

timefloat

Time point for perfoming the event.

Returns:
Event:

The new Event.

Raises:
CADETProcessError

If Duration already exists.