Pry, Pry2
Synopsis
Set subobject values for Pyr Cell_Sets.
![]()
Cell_Set Pyr { /* pyramid cell definition */
cell_nnodes = 5;
cell_ndim = 3;
cell_order = 1;
poly_flag = 0;
int+virtual cell_type = 9;
string+virtual cell_name = "Pyr";
int+virtual cell_nfaces = 5;
int+virtual cell_face_nnodes[5]={3, 3, 3, 3, 4};
int+virtual cell_face_connect[16]= {0, 1, 2,
0, 2, 3,
0, 3, 4,
4, 1, 0,
1, 4, 3, 2};
int+virtual cell_face_corner_nnodes[5]={3, 3, 3, 3, 4};
float+virtual node_uvw[5][3] = {{0.0,0.0,1.0},{1.0,1.0,-1.0},
{-1.0,1.0,-1.0},
{-1.0, 1.0,-1.0},
{1.0,-1.0,-1.0}};
};
Cell_Set Pyr2 { /* pyramid cell definition */
cell_nnodes = 13;
cell_corner_nnodes = 5; /* number of corner nodes per cell */
cell_ndim = 3;
cell_order = 2;
poly_flag = 0;
int+virtual cell_type = 19;
string+virtual cell_name = "Pyr2";
int+virtual cell_nfaces = 5;
int+virtual cell_face_nnodes[5]={6, 6, 6, 6, 8};
int+virtual cell_face_connect[32]= {0, 1, 2, 5,9,6,
0, 2, 3, 6,10,7,
0, 3, 4, 7,11,8,
4, 1, 0, 12,5,8,
1, 4, 3, 2, 12,11,10,9};
int+virtual cell_face_corner_nnodes[5]={3, 3, 3, 3, 4};
float+virtual node_uvw[13][3] = {{0.0,0.0,1.0},{1.0,1.0,-1.0},{-1.0,1.0,-1.0},
{-1.0,-1.0,-1.0}, {1.0,-1.0,-1.0},
{0.0,1.0,1.0},{0.0,-1.0,1.0},
{0.0,-1.0,-1.0}, {0.0,1.0,-1.0},
{1.0,0.0,1.0},{1.0,-1.0,0.0},
{1.0,0.0,-1.0},{1.0,1.0,0.0}};
};Description
These cell types set values that define the members of this Cells Cell_Set as Pyr cells, either with or without mid-edge nodes (cell_order = 2). Modules that manipulate unstructured grids need the information defined here to correctly process this cell type.
Subobjects
cell_nnodes = 5
cell_nnodes = 13In cells with mid-edge nodes, a value that specifies how many of the nodes in the cell are corner nodes.
cell_order = 1 means the cell has corner nodes only. cell_order = 2 means the cell has mid-edge nodes.
A flag that, when not 0, signals the renderer that this is an unstructured mesh representing a geometry (Polyline, Polytri). The renderer can use faster algorithms to render the object.
An integer that uniquely identifies the type of cells in this cell_set. This is one means of discovering this; cell_name is another.
A float array that defines the uvws for the nodes. The uvws are necessary when you are interpolating within a cell by calculating derivatives. The coordinates are parametric.
An integer array that, for each face of the cell, specifies which order the nodes that make up the face should be interpreted in. It is necessary to know this, for example, when calculating normals.
Examples
Files
See Also