getgriddata

PURPOSE ^

GETGRIDDATA - create an array of space coordinates for the grids

SYNOPSIS ^

function xyz=getgriddata(pentaelem,grids)

DESCRIPTION ^

GETGRIDDATA - create an array of space coordinates for the grids

   Create array xyz of size num_grids x 3 (3 for x,y and z)
   of space coordinates for each grid. 

   Usage:
      xyz=getgriddata(pentaelem,grids)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xyz=getgriddata(pentaelem,grids)
0002 %GETGRIDDATA - create an array of space coordinates for the grids
0003 %
0004 %   Create array xyz of size num_grids x 3 (3 for x,y and z)
0005 %   of space coordinates for each grid.
0006 %
0007 %   Usage:
0008 %      xyz=getgriddata(pentaelem,grids)
0009 
0010 num_grids=6;
0011 
0012 xyz=zeros(num_grids,3);
0013 
0014 for i=1:num_grids,
0015     xyz(i,1)=grids(pentaelem.g(i)).grid.x;
0016     xyz(i,2)=grids(pentaelem.g(i)).grid.y;
0017     xyz(i,3)=grids(pentaelem.g(i)).grid.z;
0018 end

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003