mphgrain
Evaluate expressions on ray trajectories.
Syntax
pd = mphgrain(model)
pd = mphgrain(model,'expr',{e1,…,en},…)
Description
pd = mphgrain(model) returns grain positions and grain velocities at all time steps stored in model with a Grain Dataset.
pd = mphgrain(model,'expr',{e1,…,en},…) returns grain positions, grain velocities and expressions e1,…,en evaluated on grain trajectories.
pd is a structure with fields p, v, d#, t, expr, and unit.
The field p contains the position of the grains.
The field v contains the velocity of the grains.
The field d# contains the result of evaluation #.
The field t contains the time for evaluation.
The field expr contains the evaluated expressions.
The field unit contains the unit of evaluations.
The function mphgrain accepts the following property/value pairs:
on | off
on | off
on | off