CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   how to probe cell volume and probe an entire surface (https://www.cfd-online.com/Forums/openfoam-solving/232346-how-probe-cell-volume-probe-entire-surface.html)

Andrea23 December 10, 2020 10:18

how to probe cell volume and probe an entire surface
 
Hi,

I'm using probe function (in controlDict) for points, I can successfully probe T, V, etc; but I don't know how to probe the cell volume of probed point, I tried using these keyword in field:

cellVolume, mesh.V(), volume, volumeCell, V


Another question, do you know how to probe values of all cells adjacent (with shared face) a boundary surface?
I tried with some surfaceSample setting and putting "surface" and derivative commands in probe but did not work.

Thanks for your help

taban December 10, 2020 10:57

Hi,
There is an extension to the checkMesh application that would be helpful for you. Please check: https://holzmann-cfd.com/community/d...s/mesh-quality

and the tutorial: https://www.youtube.com/watch?v=5HtE...ature=youtu.be

Andrea23 December 10, 2020 13:00

Quote:

Originally Posted by taban (Post 790281)
Hi,
There is an extension to the checkMesh application that would be helpful for you. Please check: https://holzmann-cfd.com/community/d...s/mesh-quality

and the tutorial: https://www.youtube.com/watch?v=5HtE...ature=youtu.be

thanks a lot, I'll check it tomorrow but seems it can resolve my problem for probe volume cell

Tobermory December 11, 2020 11:03

You can get OF to write out the cell volumes using postProcess:
Code:

postProcess -func writeCellVolumes
or specify a time instance:
Code:

postProcess -func writeCellVolumes -time 100
This saves the volumes as a data field in the time folder(s). Once there, you can sample it, using the field name V. If your mesh is not changing, you should be able to do this for time 0, and do it just once before starting the run.

Andrea23 December 11, 2020 11:29

Quote:

Originally Posted by Tobermory (Post 790385)
You can get OF to write out the cell volumes using postProcess:
Code:

postProcess -func writeCellVolumes
or specify a time instance:
Code:

postProcess -func writeCellVolumes -time 100
This saves the volumes as a data field in the time folder(s). Once there, you can sample it, using the field name V. If your mesh is not changing, you should be able to do this for time 0, and do it just once before starting the run.

thanks a lot, with this and postProcess -func probes I successfully got the cell volume.
Even the qualityMesh function linked in previous comment is very useful.


All times are GMT -4. The time now is 04:07.