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

[General] How to change cell properties in ParaView?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2017, 03:46
Default How to change cell properties in ParaView?
  #1
New Member
 
Winkler
Join Date: Jun 2017
Posts: 1
Rep Power: 0
c.winkler is on a distinguished road
Following example model shows a cylinder with some cell properties on the left . The „ModelFaceID“ is a property that defines the different faces of the model. The faces are highlighted in different colors in the 3D view (right):



On the spreadsheet, I can see that each cell has a specific „ModelFaceID“, which assigns the cell to one of the faces:


Now, I would like to change the „ModelFaceID“ in a new model that has only one face yet. I would like to select cells manually in the 3D View and change the „ModelFaceID“ respectively, so that I get different faces for the model. Unfortunately, I cannot change the property on the spreadsheet. Here, a picture with my new model. I selected the cells in the 3D view (left) and the spreadsheet (right):



How can I change the property? Can I achieve that in ParaView? Do you have any ideas which other tool I could use?

You can find the cylinder example here (cylinder.vtp): Cylinder Example
c.winkler is offline   Reply With Quote

Old   June 28, 2017, 03:22
Default
  #2
New Member
 
Join Date: Jan 2017
Location: Germany
Posts: 19
Rep Power: 9
beral is on a distinguished road
Open the example_new.vtp twice in ParaView. On the second one do the selection, like shown in your second picture. When the selection is done, use the 'Extract Selection' filter (Filters - Alphabetical - Extract Selection).

In the filter set the color (use the edit button which you see in the picture). Apply the filter. Set the first sphere and the extract selection filter visible.



Now it looks like what you want to see, although the ModelFaceID has not changed.

There is also a possibility to change the ModelFaceID for the selected cells with the Python Shell and/or Programmable Filters, but that would be a bit more complicated.
beral is offline   Reply With Quote

Reply

Tags
cell, cell data


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
Neighboring cells in tetrahedral mesh vishwesh OpenFOAM Programming & Development 9 November 10, 2017 07:06
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 04:27
Different Cell ID in ParaView mheinz OpenFOAM Programming & Development 6 April 17, 2016 15:47
how to change particle properties using udf? ljp Fluent UDF and Scheme Programming 0 April 2, 2010 09:57
is it possible to change cell type during calc? raymond Siemens 2 September 21, 2001 02:10


All times are GMT -4. The time now is 19:53.