HorizontalVelocityDepthAverage

PURPOSE ^

HORIZONTALVELOCITYDEPTHAVERAGE - compute the depth averaged horizontal velocity

SYNOPSIS ^

function velocity_average_g=HorizontalVelocityDepthAverage(md,velocity_g);

DESCRIPTION ^

HORIZONTALVELOCITYDEPTHAVERAGE - compute the depth averaged horizontal velocity

   Usage:
      velocity_average_g=HorizontalVelocityDepthAverage(md,velocity_g)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function velocity_average_g=HorizontalVelocityDepthAverage(md,velocity_g);
0002 %HORIZONTALVELOCITYDEPTHAVERAGE - compute the depth averaged horizontal velocity
0003 %
0004 %   Usage:
0005 %      velocity_average_g=HorizontalVelocityDepthAverage(md,velocity_g)
0006 
0007 global gridset
0008 
0009 vx_average2d=DepthAverage(md,velocity_g(1:6:gridset.gsize));
0010 vy_average2d=DepthAverage(md,velocity_g(2:6:gridset.gsize));
0011 
0012 %project onto layer 1 of 3d mesh
0013 vx_average=project3d(md,vx_average2d,'node',1);
0014 vy_average=project3d(md,vy_average2d,'node',1);
0015 
0016 %output on g-set
0017 velocity_average_g=zeros(gridset.gsize,1);velocity_average_g(1:6:gridset.gsize)=vx_average;velocity_average_g(2:6:gridset.gsize)=vy_average;
0018 
0019

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