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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2022, 22:23
Default vtk cell volumes from mesh
  #1
Member
 
qutadah
Join Date: Jun 2021
Location: Germany
Posts: 89
Rep Power: 3
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[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
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 1 July 10, 2019 08:56
[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 00:05.