ecl-logo Documentation

Trajectory

Trajectory[species,xvals,yvals,units]trajectory

represents a trajectory describing the behavior .

Trajectory[trajectory,subSpeces]subTrajectory

returns a trajectory containing only the species listed in 'subSpeces'.

Details

  • Use Keys[trajectory] to see the properties that can be dereferenced from a trajectory.
  • Dereference properties using trajectory[property], e.g. trajectory[Units].
  • Extract concentration coordinates for a species using trajectory[species]
  • Extract concentration of a species at a specific time using trajectory[speices,time]
  • Input
    Output
    Messages
  • BadSpeciesThe requested species `1` does not exist in the Trajectory species list `2`.

Examples

Basic Examples  (5)

A trajectory of concentration vs time:

Visualize the trajectory:

Extract the coordinates for a single species, as concentrtion vs time:

Evaluate the concentration at a specific time:

A trajectory of amount vs temperature:

Additional Examples  (10)

Properties  (8)

Pull species from a trajectory:

Pull the coordinates of a species in the form of {time,concentration} coordinates:

Pull the concentration of a species at a single time:

Pull the coordinates of a multiple species, to get a set of coordinates:

Pull units of a trajectory:

Pull the {time,concentration} coordinates of a trajectory:

Pull the times of a trajectory:

Pull the concentrations of a trajectory:

Subspecies Trajectory  (2)

Construct a trajectory containing only the species b from the original trajectory:

Construct a trajectory containing only the first and third species from the original trajectory:

Messages  (1)

BadSpecies  (1)

Returns $Failed when given subspecies that does not exist in the trajectory: