interp_data


Synopsis

use coordinates from a probe mesh as sample points to interpolate data in a field

Input Ports

in_field

Mesh + Node_Data

in_probe

Mesh

ui_parent

user interface parent object

 

Parameters

interpolate components

UIoptionBoxLabel

data components to interpolate

 

Output Ports

out_fld

Mesh + Node_Data

out_obj

output renderable object

 

Description

interp_data uses the coordinates specified in an input mesh (in_probe) as a set of sample points for a field. It takes each set of coordinates in the mesh (the sample points), locates these same coordinates in the input field, then calculates what the interpolated data value of the selected component would be at that exact location based on the values of the same component in the adjacent nodes.

Input

in_field

The input is any mesh type with Node_Data.

in_probe

Any mesh whose coordinates represent the sample points.

To create this sampling mesh you could, for example, use the plane object in Geometries.Plane, Geometries.FPlane, or the slice macro.

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

interpolate components

UIoptionBoxLabel. A set of option buttons to pick which data components of the input field to interpolate. The default is the first (0th) component. If node data labels are present, they are displayed.

Output

out_fld

The output is a field that is a reference to the merge of the input probe's in_probe mesh, and a new Node_Data object with values consisting of the interpolated component values.

out_obj

This is a renderable version of the output field.

Algorithm

Structured fields use trilinear interpolation. Unstructured fields use shape function interpolation.

Example

Libraries.Examples.Vizualization.Glyph_Interp
examples/glh_intp.v
Libraries.Examples.Applications.StreamApp
examples/stream_l.v

File

v/modules.v

See also