TOC PREV NEXT INDEX

DVslice

Synopsis

discover the type of mesh, then call the corresponding slicing base module

macro DVslice {
Mesh+Iparam &in { /* input field */
nnodes+req;
};
Plane_Grid+Xform+Iparam &plane { /* slice plane */
points+req;
};
float+notify+IPort2 dist; /* plane distance */
int+read+notify+opt+IPort2 map_comp[];
int+read+notify+opt+IPort2 cell_data[];
DVslice_gen DVslice_gen {
in => <-.DVfld_match.links.link2;
plane => <-.plane;
&dist => <-.dist;
&map_comp => <-.map_comp;
&cell_data => <-.cell_data;
};
DVslice_unif DVslice_unif {
in => <-.DVfld_match.links.link0;
plane => <-.plane;
&dist => <-.dist;
&map_comp => <-.map_comp;
};
DVslice_rect DVslice_rect {
in => <-.DVfld_match.links.link1;
plane => <-.plane;
&dist => <-.dist;
&map_comp => <-.map_comp;
};
DVfld_match DVfld_match {
in => <-.in;
};
DVswitch DVswitch {
in => {DVslice_unif.out, DVslice_rect.out,
DVslice_gen.out};
index => DVfld_match.index;
};
olink out => DVswitch.out;
};

Description

DVslice is a utility base module. It discovers what type of mesh (general (structured or unstructured), Mesh_Rect, or Mesh_Unif) its input field has, then passes control through DVswitch to the corresponding base module (DVslice_gen, DVslice_rect, or DVslice_unif).

Input

&in

A reference to a field containing any type of mesh, plus Node_Data.

&plane dist map_comp[]

The slicing parameters. These are passed through to the selected base module.

Output

out

The output is the same as the DVswitch selection.

Example

Libraries.Main.Mappers.slice

File

v/dv.v

Utility DVM macros DVMslice_param, Slice, SliceTxt3D, SliceTxt2D

See also

DVslice_gen
DVslice_rect
DVslice_unif

TOC PREV NEXT INDEX