CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

vtk cell volumes from mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2022, 22:23
Default vtk cell volumes from mesh
  #1
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 4
qutadah.r is on a distinguished road
Hey everyone,

I need to find cell volumes in my mesh, however need to import vtk unstructured according to this script... and I am not sure how to do that, can someone please help?

"
from vtk.numpy_interface import algorithms as algs volume = algs.volume(inputs[0]) output.CellData.append(volume, 'volume')
"

Thanks!
qutadah.r is offline   Reply With Quote

Reply

Tags
openfoam, paraview, volumes, vtk


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
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 15:15
[blockMesh] Floating Point Exception while generating wedge based mesh jns-v OpenFOAM Meshing & Mesh Conversion 9 July 8, 2021 05:36
[snappyHexMesh] Multi Region Mesh of a car filter Zephiro88 OpenFOAM Meshing & Mesh Conversion 3 September 11, 2019 19:34
[ANSYS Meshing] Is it possible to generate mesh in different cell zones in Ansys meshing? aja1345 ANSYS Meshing & Geometry 0 October 3, 2018 14:22
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57


All times are GMT -4. The time now is 08:12.