********************************************************** * * interpolate_mesh_to_points.lgi * version 1.0 * July 2006 * * This LaGriT control file will interpolate node attributes from * a source mesh (INPUT_AVS) onto a point distribution (sink mesh) defined * within this script (sink mesh). * * Carl Gable * gable@lanl.gov * ********************************************************** * START MODIFY FOR SPECIFIC PROBLEM ********************************************************** * Define input and output file names. * define / INPUT_AVS / input.inp define / OUTPUT_AVS / output.inp define / OUTPUT_GMV / output.gmv define / OUTPUT_TAB / output.table * * Define the extents in the x y and z directions. * Set min = max and N*_POINTS = 1 for a plane of points. * define / XMIN_PTS / 0.1 define / YMIN_PTS / 0.1 define / ZMIN_PTS / 0.5 define / XMAX_PTS / 0.9 define / YMAX_PTS / 0.9 define / ZMAX_PTS / 0.5 * * Set the number of points to be created in the x y and z directions. * Set all three to numbers greater than 1 to create a cube of points. * Use 1 for a single direction to create a plane of points. * Use 1 for two directions to create a line of points. * * For this example that goes from x = 0.1 - 0.9 * distribute 161 x points so that dx = 0.005 * distribute 41 y points so that dy = 0.020 * define / NX_POINTS / 161 define / NY_POINTS / 41 define / NZ_POINTS / 1 * * Define the name of three the attributes to be interpolated. * Since this is written assuming an AVS format file is being * read as input, it is assumed that the attribute names will * be contained in the INPUT_AVS file. If you wish to have fewer or more attributes * interpolated it will require editing of the control file: * interpolate_mesh_to_points.lgi * * define / ATTRIBUTE1 / xdisplace define / ATTRIBUTE2 / ydisplace define / ATTRIBUTE3 / zdisplace * * This is the value that an attribute will be set to if it is * outside the source mesh. * define / IF_OUTSIDE_FLAG / -9999.9 * *********************************************************** * END MODIFY FOR SPECIFIC PROBLEM ********************************************************** * finish