[CIG-SHORT] Matlab HDF5 file, Use Coordinates and Topology to build the domain

Li, Teng tengli2 at illinois.edu
Tue Oct 17 13:29:05 PDT 2017


Hi list,

I have a question about showing the model stress in the post processing step. I first output stress.vtk files and visualize them in Paraview. However, I am not good at using paraview python to post process the stress data. So I save the vtk files as csv files. Because the time step is 118, so I have 118 csv files. So I need to load each in Matlab and process them one by one.

I think a smarter way is to output the stress.h5 file. And I read the stress.h5 file and find the following components:
stress: stress_x, stress_y, stress_z. (2d problem). Coordinates: one row for x coordinate, and another for y coordinate. And Topology: each column has four numbers, I think it shows which four nodes form a cell.

However, I find that the number of columns in Coordinates and Topology are different. So that should mean the coordinates are not for the cells. I plan to use pcolor to show the stress. So I need to first build the mesh according to the node coordinates and topology. And then I can use 3d color plot to show the stress distribution.

Although I can see the model directly in Trelis and Paraview. However, I need to build the domain in Matlab to the Coordinates and Topology. And then plot the stress of each cell. Can you help me to build the domain according to the Coordinates and Topology?

Best,
Teng



Teng Li

Master Candidate in Structures

Department of Civil and Environmental Engineering

University of Illinois at Urbana-Champaign

205 North Mathews Ave, Urbana, IL. 61801

Phone:(217)8196210, Email: tengli2 at illinois.edu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-short/attachments/20171017/44701f51/attachment.html>


More information about the CIG-SHORT mailing list