Grid_Unif, Grid_Cyl_Unif, Grid_Spher_Unif


Synopsis

Grid_Unif , Grid_Cyl_Unif , and Grid_Spher_Unif contain coordinate information for uniform fields.



Grid_Struct Grid_Unif {
grid_type = 1;
int npoints = 2;
coordinates.values => get_coords_unif(ndim, dims, nspace, points);
coordinates.min => cache(min_array(magnitude(points), 0, 0));
coordinates.max => cache(max_array(magnitude(points), 0, 0));
coordinates.min_vec[veclen] => cache(min_array(points, 0, 0));
coordinates.max_vec[veclen] => cache(max_array(points, 0, 0));
};

 

Description

Grid_Unif tailors the definition of Grid_Struct so it applicable to uniform mesh fields. Grid_Cyl_Unif is a sub-class of Grid_Struct where XYZ coordinates of grid nodes are calculated using Cylindrical transformation. Grid_Spher_Unif is a sub-class of Grid_Struct where XYZ coordinates of grid nodes are calculated using Spherical transformation.

Subobjects

grid_type = 1

Sets the integer grid_type first defined in Grid_Struct to 1, flagging this as a uniform field.

See FLDget_grid_type

npoints = 2

Sets the integer npoints first defined in Grid_Struct to 2, meaning that two values define the extents in each dimension.

See FLDget_npoints

points[2][nspace]

Two corner points that specify extents of uniform field. For Grid_Unif these are Cartesian coordinates x, y, z. For Grid_Cyl_Unif they are cylindrical coordinates Radius and Angle (in radians). For Grid_Sher_Unif they are Latitude (in radians), Longitude (in radians) and Radius.

coordinates.values => get_coords_unif (ndim, dims, nspace, points)

A built-in function that computes node XYZ coordinates for uniform grids.

coordinates.values => get_coords_cyl_unif (ndim, dims, nspace, points)

A built-in function that computes node XYZ coordinates for cylindrical uniform grids.

coordinates.values => get_coords_spher_unif (ndim, dims, nspace, points)

A built-in function that computes node XYZ coordinates for spherical uniform grids.

See FLDget_coord

coordinates.min => cache(min_array(magnitude(points), 0, 0));
coordinates.max => cache(max_array(magnitude(points), 0, 0));

A function that sets the Grid's coordinate array min and max values to those appropriate to uniform fields.

coordinates.min_vec[veclen] = cache(min_array(points, 0, 0));
coordinates.max_vec[veclen] = cache(max_array(points, 0, 0));

A function that sets the Grid's coordinate array min_vec and max_vec (the extents) equal to the minimum and maximum of the points array.

See FLDget_coord_extent

Files

v/fld.v