Volume sampling on the run
Hi,
is there any OpenFOAM function object similar to surfaceSampling but for the volume? I want to sample a volume region or the whole domain on the run. I don't want to do the reconstruction as it's time-consuming and I am only interested in a small region near the outlet. thanks in advance, Ryan |
Hi,
I am not sure what you exactly want to do, but maybe the volFieldValue functionObject is of help? It uses a volRegion for doing some stuff. This means you would need a cellSet or cellZone and then probably you need to specify whatever you need in the volFieldValue part. I am not sure what the limitations are. Maybe you can make a small case to experiment on. Good luck, Tom |
Maybe you can try this:
https://github.com/StachuraMichal/Op...sampleCellZone |
Quote:
|
Hi Ryan,
have you found a solution to sample volumes and to visualize those with paraview? Happy for any help. Lukas |
Quote:
Code:
Paste it at the end of your controlDict and adjust it for your case. Cheers! |
Quote:
thank you. I works. However, when I want to visualize the .vtk files with ParaView I do not like the way the file is displayed. Somehow, it only consists out of points. Hence, I prefer this way: Code:
volFieldValue1 One receives a file in postProcessing/volFieldValue1 which is not important. The volume field is directly written to the time directories or time directories of the processor0. In this directory I run this command. Code:
foamToVTK -cellSet box -useTimeName -excludePatches '(".*")' -noFaceZones Moreover, I source a non ESI openfoam Version for the foamToVTK command because this way the "-useTimeName" is available which I prefer. |
All times are GMT -4. The time now is 19:47. |