CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Sampling surfaces (https://www.cfd-online.com/Forums/openfoam-post-processing/66274-sampling-surfaces.html)

braennstroem April 7, 2011 14:07

Hello,

me again... fyi: basically I just commented out the not needed points and faces... this worked quite good.

Now, I would like actually write out the complete mesh information including a boundary, neighbour, owner files.

Do you have a hint, how I can do this?
Best REgards!
FAbian

gpextra November 18, 2011 15:37

Dear foamers

Sampling data from the cells close to a boundary or a wall might not be a trivial matter. That is why I am calling back this some two years old thread, which is closely related to my present question.

My geometry is composed of some curved walls and I need to collect some data, like U and p, from the very first layer of cells near the wall. It seems pretty straightforward to do that with the "sample" utility, if I new the coordinates of each cell centre, by just listing them under the type "cloud" in the sampleDict file. But this is where things go awry.

So, is there an easy way to get the coordinates of some specific cells, in particular those bordering a wall? I would guess that cellSet might be an answer, but I could not find something like a source "boundaryToCell" in the topoSetDict.

Or, alternatively, can anyone devise another approach to pick these close-to-the-wall cells values of velocity and pressure? BTW, this is almost exactly the question posed by Alejandro, above, but his problem was solved in a different way, so the the question remains alive. I would appreciate any suggestion on that.

I am using OpenFOAM 2.0.0.

Regards.
G.Oliveira

Prakriti November 5, 2020 23:19

arcUniform sampling utility
 
Hi all,


Has anyone tried using the arcUniform utility for postProcessing (https://cpp.openfoam.org/v6/classFoa...Uniform.html)?


When I try to implement it, it just gives me an error saying "keyword endAngle is undefined in dictionary "controlDict.functions.sample.sample.sets""


I was wondering why it would do that?

Krapf November 6, 2020 01:52

You need to define endAngel. Or is the problem that you defined it but OpenFOAM is still complaining?

nishant.kumar December 23, 2021 08:57

Quote:

Originally Posted by braennstroem (Post 223895)
Hi,

does anyone know, if there is an option for the foamFile output, which omits the output of the points and faces except for the last write out? This would help saving disk space.

Fabian

Hello Fabian, were you able to do this? I want to exclude the output of coordinates in all the sampling output files as I am passing this information externally and it remains constant throughout the simulation.

You mentioned this in another reply as a solution(?):
Quote:

Originally Posted by braennstroem (Post 302700)
me again... fyi: basically I just commented out the not needed points and faces... this worked quite good.

Can you please explain where exactly this change is made?


All times are GMT -4. The time now is 13:30.