Changeset 20324
- Timestamp:
- 03/18/16 15:18:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/defleurian/paraview/exportVTK.m
r19197 r20324 1 1 function exportVTK(filename,model,varargin) 2 % vtk export 3 % function exportVTK(filename,model) 4 % creates a directory with the vtk files for displays in paraview 5 % (only work for triangle and wedges based on their number of nodes) 2 %EXPORTVTK - vtk export 6 3 % 7 %Give only the results for nw but could be extended to geometry, mask... 4 % function exportVTK(filename,model) 5 % creates a directory with the vtk files for displays in paraview 6 % (only work for triangle and wedges based on their number of nodes) 7 % By default only the results are exported, you can add whichever 8 % field you need as a string: 9 % add 'geometry' to export md.geometry 8 10 % 9 % input: filename destination 10 % (string) 11 %------------------------------------------------------------------ 12 % model this is md 13 %------------------------------------------------------------------ 14 % By default only the results are exported, you can add whichever 15 % field you need as a string: 16 % add 'geometry' to export md.geometry 11 % USAGE: 12 % exportVTK(filename,model,varargin) 17 13 % 18 % Basile de Fleurian: 14 % EXAMPLE: 15 % exportVTK('ResultSimulation1',md) 19 16 20 17 [path,name,ext]=fileparts(filename);
Note:
See TracChangeset
for help on using the changeset viewer.