CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

[sampleDict] Volume of cells through line

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2024, 08:27
Question [sampleDict] Volume of cells through line
New Member
Join Date: Sep 2023
Posts: 15
Rep Power: 2
DashaSh is on a distinguished road
Hello everyone!

I am working on post-processing in OpenFOAM2312. I have a specified line with the sampleDict dictionary, which allows me to extract temperature and density data of the cells intersected by this line.


        type       midPoint; 
        axis        distance;
        start       (0.2 3.25 0);
        end         (0.23 13.55 0);

However, I would also like to have the volume data of these cells. Can anyone suggest how to do this?

The sampleDict does not recognize such a field. When I write the volume of all cells using the writeCellsVolumes function, it still does not recognize this field as existing.

Cannot find registered field matching 1(V)


Finalising parallel run

Last edited by DashaSh; May 31, 2024 at 03:41.
DashaSh is offline   Reply With Quote


cells volumes, sampledict

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
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 8, 2019 23:50
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 03:21
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19

All times are GMT -4. The time now is 15:03.