determine the position of a massless particle along a velocity streamline
module DVadvect { /* releases particles into a velocity field */
Mesh+Node_Data+Iparam &in { /* input field */
nnodes+req;
xform+nonotify;
};
float+Iparam time; /* time */
int+Iparam direction; /* direction of integration */
float+read+notify+opt+IPort2
start_time; /* start time for release */
float+read+notify+opt+IPort2
release_interval; /* release time interval */
Mesh+Node_Data+Oparam out { /* output field */
&xform+nowrite => in.xform;
};
omethod+notify_val+notify_inst upd_advect
= "DVadvect_update";
};
DVadvect takes the output of DVstream, which is a polyline Mesh with velocity Node_Data that represents the path of the velocities through a field, plus a float value that is a time along the streamline. From this, for each streamline, it calculates the position of a particle at that a given time along the streamline.
Libraries.Main.Mappers.advector
modules/advect.cUtility DVM macrosDVMadvect_param, Advect