![]() |
![]() |
![]() |
![]() |
DVinterp_cell_data
Synopsis
sample cell data of one field at the node locations of another "probe" field
module DVinterp_cell_data {/* uses data from the first field to interpolate
data at locations of the second field */
Mesh+Cell_Data+Iparam &in { /* input field */
nnodes+req;
coordinates+req;
coordinates.values+req;
};
Mesh+Iparam &probe { /* field grid */
nnodes+req;
coordinates+req;
coordinates.values+req;
};
int+Iparam component;
Node_Data+write+nonotify out_nd; /* output field */
Mesh+Node_Data+nonotify+OPort2 &out => merge(out_nd, probe);
method+notify_val+notify_inst interp_data_update<status=1>
= "DVinterp_cell_data_update";
};Description
DVinterp_cell_data uses the node coordinates specified in the input mesh (in_probe) as a set of sample points for the in_field. For each sample point, it locates the cell containing that point in the in_field, and uses the (possibly vector) value of the given component in that cell as the node data in the output field. If there is no cell in in_field containing a given sample point, a null data value is used.
Input
Mesh. The node coordinates of this field define the sample points for interpolating the input field.
Output
Example
File
See also
![]() |
![]() |
![]() |
![]() |