


SHIFTLAYERS - shift the value of a 3d field from ina layer to another
Usage:
outvector=ShiftLayers(md,vector,initial_layer,final_layer)

0001 function outvector=ShiftLayers(md,vector,initial_layer,final_layer) 0002 %SHIFTLAYERS - shift the value of a 3d field from ina layer to another 0003 % 0004 % Usage: 0005 % outvector=ShiftLayers(md,vector,initial_layer,final_layer) 0006 0007 %Project initial_layer of vector onto 2d mesh 0008 vector2d=project2d(md,vector,initial_layer); 0009 0010 %Extrude vector2d onto 3d vector, where vector2d is in the final layer of the mesh 0011 outvector=project3d(md,vector2d,'node',final_layer);