Changeset 9190
- Timestamp:
- 08/04/11 16:52:15 (14 years ago)
- Location:
- issm/trunk/src/m/model/partition
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/partition/AreaAverageOntoPartition.m
r9013 r9190 1 1 function partvector=AreaAverageOntoPartition(md,vector,layer) 2 %AREAAVERAGEONTOPARTITION compute partition values for a certain vector expressed on the vertices of the mesh. Use area weighted average. 2 %AREAAVERAGEONTOPARTITION 3 % compute partition values for a certain vector expressed on the vertices of the mesh. 4 % Use area weighted average. 3 5 % 4 % Usage: average=AreaAverageOntoPartition(md,vector)5 % average=AreaAverageOntoPartition(md,vector,layer) %if in 3D, chose which layer is partitioned6 % 6 % Usage: 7 % average=AreaAverageOntoPartition(md,vector) 8 % average=AreaAverageOntoPartition(md,vector,layer) %if in 3D, chose which layer is partitioned 7 9 8 10 %some checks -
issm/trunk/src/m/model/partition/adjacency.m
r8298 r9190 1 1 function md=adjacency(md); 2 % adjacency:compute adjacency matrix, list of vertices and list of weights.2 %ADJACENCY - compute adjacency matrix, list of vertices and list of weights. 3 3 % 4 4 % function to create the adjacency matrix from the connectivity table. … … 7 7 % md.adj_mat (double [sparse nv x nv], vertex adjacency matrix) 8 8 % md.vwgt (double [nv], vertex weights) 9 10 11 9 12 10 indi=[md.elements(:,1);md.elements(:,2);md.elements(:,3)]; -
issm/trunk/src/m/model/partition/flagedges.m
r3063 r9190 1 1 function [xsegments ysegments]=flagedges(elements,x,y,partition); 2 %FLAGEDGES return pairs of x,y segments, delimiting partitions.2 %FLAGEDGES - return pairs of x,y segments, delimiting partitions. 3 3 % 4 % Usage: [xsegments ysegments]=flagedges(elements,x,y,partition)5 % 4 % Usage: 5 % [xsegments ysegments]=flagedges(elements,x,y,partition) 6 6 7 7 xsegments=[]; … … 44 44 end 45 45 end 46 -
issm/trunk/src/m/model/partition/partitioner.m
r9013 r9190 14 14 % md=partitioner(md,'package','chaco','npart',100,'weighting','on'); 15 15 % 16 17 16 18 17 %get options:
Note:
See TracChangeset
for help on using the changeset viewer.