DVorthoslice_unif


Synopsis

produce a slice of a uniform field perpendicular to a coordinate axis


group DVorthoslice_unif {
Mesh_Unif+Node_Data+Iparam &in {
nnodes+req;
};
int+Iparam axis;
int+Iparam plane;
Mesh_Unif+Node_Data+Oparam out;
method+notify_val+notify_inst upd_orthoslice = "orthoslice";
} ;

Description

DVorthoslice_unif subsets a uniform structured field (mesh type Mesh_Unif) by removing one slice plane. The slice plane can only be orthogonal to the X, Y, or Z axis.

Input

&in

The input is a reference to a field containing a Mesh_Unif and Node_Data. The input can be 1D, 2D, or 3D.

axis

An integer. Selects which axis (X = 0, Y = 1, Z = 2) the orthoslice will be perpendicular to.

plane

An integer. Selects which plane to extract from the input. The "units" are the array indices of the coordinates. So, for example, if you have a field that has 64 [0-63] nodes you are picking a number from 0 to 63.

Output

out

The output is a new field object with a new uniform mesh (mesh type Mesh_Unif) for the slice and a new Node_Data that contains all components of the slice.

Files

v/dv.v
modules/orthoslc.c

Example

Libraries.Main.Mappers.orthoslice

See also