CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Plotting Data From A Plane

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2018, 17:14
Default Plotting Data From A Plane
  #1
New Member
 
Mike
Join Date: Feb 2018
Posts: 12
Rep Power: 8
Superdude_123 is on a distinguished road
I'm trying to plot the data of my model to a CSV/Excel file, but I'm running in to a bit of a road block. My problem is fairly simple, two air streams of two different temperatures mixing together and coming out the other end. The simplest model would be a T mixer. What I'm trying to do is plot the data of the outlet over a X/Y to show the value at each point. I intentionally made my mesh the grid size that I would like to evaluate, so what I'm wondering is, how can I plot over a X/Y (Z being constant) the average temperature of each node/square of my outlet?

I'm guessing that the data could be presented as the X and Y coordinate of the center of my node, with the average temperature of the node at that time interval?
Superdude_123 is offline   Reply With Quote

Old   March 6, 2018, 10:48
Default
  #2
New Member
 
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8
forgeanalytics is on a distinguished road
Are you struggling to get the data from ParaView or to create the plot once you have the data?
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers
forgeanalytics is offline   Reply With Quote

Old   March 6, 2018, 11:22
Default
  #3
New Member
 
Mike
Join Date: Feb 2018
Posts: 12
Rep Power: 8
Superdude_123 is on a distinguished road
Both, but I think what I'm trying to do can be done with File>Save Data. I have isolated my outlet, but I would like to extract a few time intervals. What I've managed so far is to do one time step at a time, but is there a way to do a specific range with a specific step interval? (100, 150, 200 without doing each interval individually or doing 100-200 and deleting in the middle)

If that step is correct, I've imported the data in to excel, but I can't get scatter plot to plot the Temp/X/Y points as it wants to do only two variables, so any help there would be great. Alternatively, could Paraview present the data in this form? The closes that I got was to use Surface With Edges, but I'm trying to show solid colors per each square of my mesh instead of blended.
Superdude_123 is offline   Reply With Quote

Old   March 7, 2018, 12:04
Default
  #4
New Member
 
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8
forgeanalytics is on a distinguished road
It sounds like what you want is a heatmap in Excel: http://excelgraphs.blogspot.com/2013...cel-using.html

This is achievable in ParaView as well, using cell-centered data, but ParaView will triangulate your surface by default so while your plot won't be interpolated, your cells will be subdivided into tris. There's a way around this but I don't know it off the top of my head and since you already have your data in Excel that seems to be the easier path.

As far as time steps are concerned, the best way that I know of would be to just write a Python script to automate the work. You can record a Python trace from Tools >> Start Trace and Tools >> Stop Trace and then modify as needed.

Let me know if you have any issues.
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers
forgeanalytics is offline   Reply With Quote

Old   March 9, 2018, 12:54
Default
  #5
New Member
 
Mike
Join Date: Feb 2018
Posts: 12
Rep Power: 8
Superdude_123 is on a distinguished road
Thanks for the reply, that's exactly what I'm after.

The problem that I have is that I have too much data for excel. After some digging, it looks like I need to use the Cells data instead of the point data to create a heat map, however, how do I trace it's position in x/y space? Now when I do File=>Save Data=> and set the field association as "Cells", I no longer have a coordinate system in my output file. If I can solve this problem, my next one will be to try to write those values on a picture.
Superdude_123 is offline   Reply With Quote

Old   March 9, 2018, 13:54
Default
  #6
New Member
 
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8
forgeanalytics is on a distinguished road
Try this: load your model and the use the "ExtractCellsByRegion" filter to clip away all but the last row of cells in your model (the outlet plane). Then set the camera up to make it look like a 2D visualization, and set your representation to use cell-centered values and surface or surface w/ edges.

This makes some assumptions about your model, but would be an easy way to get where you want. Let me know if this doesn't work.
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers

Last edited by forgeanalytics; March 9, 2018 at 13:55. Reason: Typo
forgeanalytics is offline   Reply With Quote

Old   March 9, 2018, 15:03
Default
  #7
New Member
 
Mike
Join Date: Feb 2018
Posts: 12
Rep Power: 8
Superdude_123 is on a distinguished road
I instead got to where I needed to be by isolating my Cell Array to Temperature only, and to isolate my Mesh Regions to my Outlet, then using the Filters, I set a Cell Centers, and made sure that the check box of Vertex Cells was selected so I could see where the centers were. After that, using the spreadsheet view, I chose my cellcenter, and exported the data to CSV.

Now, would it be possible to represent the calculated temperature in each cell? Also, how could I convert from within Paraview Kelvins to Celsius?
Superdude_123 is offline   Reply With Quote

Old   March 9, 2018, 17:31
Default
  #8
New Member
 
Forge Analytics
Join Date: Jan 2018
Posts: 16
Rep Power: 8
forgeanalytics is on a distinguished road
You can convert to Celsius by using a Calculator filter to create a new variable.

Given what you've described, and without seeing your project directly, here's the process I would think is best for creating the plot:

1) Load your model's outlet mesh region with T as a cell array
2) Apply a Calculator filter to the model to convert to Celsius. Make sure you set Attribute Model to Cell Data. Give it a name. Your calculator value would be "T - 273.15" where T is whatever your temp scalar is called. Then, in the Coloring section, set choose the cell array variable (orange box) for your newly calculated value.
3) Set the camera and legend, and save the image

If you then need a CSV in addition, your method is perfect
__________________
https://forgeanalytics.io/ | Data Management for Scientists and Engineers
forgeanalytics is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the XY plane view of any variable by importing data into Ansys Fluent Ashish_21_22 Main CFD Forum 0 October 1, 2018 01:49
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
studying a valve case mina.basta OpenFOAM 33 August 30, 2013 04:46
Plotting monitor data after the interrupted run is finished majinsaha CFX 8 August 24, 2013 04:46


All times are GMT -4. The time now is 05:56.