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/)
-   -   How to modify postChannel in a way that it can be applied for a square channel (https://www.cfd-online.com/Forums/openfoam-post-processing/139977-how-modify-postchannel-way-can-applied-square-channel.html)

adambarfi August 5, 2014 07:27

How to modify postChannel in a way that it can be applied for a square channel
 
hi everybody,

I wanna modify the postChannel utility in a way that I can use it for a square channel. one of the limitation of postChannel is that it assume that the mesh is periodic in the x and z directions. In my case, I have just a periodic condition in z direction. I wanna plot rms velocities on a line for example placed at x=0.1.

Here is the postChannel.C

my problem is that I know what to do but I don't know how to do!!!!! :confused:

Is anyone here who knows from where I should start and how can I modify this utility?

any hints or tips would be appreciated.

Regards,
Mostafa

Z.Q. Niu November 27, 2014 07:15

Hi,adambarfi. Have you got the way to modify postChannel to duct flow?

adambarfi November 27, 2014 07:28

hi Niu,

I couldn't do it, so I just left it and did the calculation by myself :(

Shahr November 28, 2014 04:56

Dear Adambarfi,

How did you do the calculation? I couldn't find a way to do it in Paraview.

adambarfi November 28, 2014 05:41

Quote:

Originally Posted by Shahr (Post 521512)
Dear Adambarfi,

How did you do the calculation? I couldn't find a way to do it in Paraview.

I did it using a c++ code, I got the data using sample utility and then I calculated the rms velocities using that code

Shahr November 28, 2014 06:00

I can imagine how tedious running sample for each grid layer cross-section would be.

I guess such volume averaging can be done in Tecplot, but have no idea how. Have you tried Tecplot? or anybody else?


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