CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

how to get the mean pressure coefficient around a cylinder

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 20, 2016, 23:52
Default how to get the mean pressure coefficient around a cylinder
  #1
New Member
 
Qin Zhang
Join Date: May 2012
Posts: 7
Rep Power: 7
zhangqin200000 is on a distinguished road
Hi All,
I am conducting 3D flow simulation around circular cylinder with OpenFOAM. Currently, I want to get the mean pressure coefficient distribution around cylinder surface. I found there are many post-processing function existing in OpenFOAM, but I don't know which one can be used to get the pressure distribution around the center of pipeline with time.
I can use paraView or Tecplot to output the pressure distribution at once a time, but don't know how to get the average value over a period of time. I also tried to output the pressure with "Probe" function, but without good luck.

Hopefully, somebody in this forum can share their experience to me.

Thanks in advance
zhangqin200000 is offline   Reply With Quote

Old   March 21, 2016, 01:51
Default
  #2
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 146
Rep Power: 8
Bazinga is on a distinguished road
To average the pressure during the simulation you can use the fieldAverage function object in the controlDict file.
The data can be used by the sample utility to create files with the mean pressure on surfaces, points, lines etc.
Search in the forum for examples and let me know if something doesn't work.

What was the problem with the probes? You can get the mean value using probes too.
Bazinga is offline   Reply With Quote

Old   March 21, 2016, 08:52
Default
  #3
New Member
 
Qin Zhang
Join Date: May 2012
Posts: 7
Rep Power: 7
zhangqin200000 is on a distinguished road
Quote:
Originally Posted by Bazinga View Post
To average the pressure during the simulation you can use the fieldAverage function object in the controlDict file.
The data can be used by the sample utility to create files with the mean pressure on surfaces, points, lines etc.
Search in the forum for examples and let me know if something doesn't work.

What was the problem with the probes? You can get the mean value using probes too.
Hi Bazinga,
Thank you for your advice.
I used surfaceSampling function to output the cylinder surface points, then selected the centre section points and put in probes function. The error indicated that the point position cannot be found. I think it may due to the point is on the surface, not in the flow field.

OpenFOAM has many good post-processing function, but without proper demonstration. I will try to follow your guide.

Many thanks,

Qin
zhangqin200000 is offline   Reply With Quote

Old   March 23, 2016, 15:25
Default
  #4
Member
 
Thomas Boucheres
Join Date: May 2013
Posts: 41
Rep Power: 6
thomasArk47 is on a distinguished road
Hello,

the quickest way is to work with the faceSource postprocessing tool.
It performs some operations (typically mean, max, min and so on) on face sources which can be patches, faceZone, sampledSurface. Nice for your case since you have to work on a patch...

See src/postProcessing/functionObjects/field/fieldValue.
thomasArk47 is offline   Reply With Quote

Old   August 30, 2017, 14:07
Default using sampleDict
  #5
Member
 
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 2
vcvedant is an unknown quantity at this point
Though an old post but may be useful to someone.
I am using sampleDict:
Code:
field
(
    p
);
surfaces
(
      walls_interpolated
      {
            type      patch;
            patches ("cylinderWall");
           // interpolation   true;
      }
);
'sample' will generate file containing x,y,z,p. You can use excel, matlab, octave, gnuplot to derive and plot pressure coefficient from p.
vcvedant is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
static vs. total pressure auf dem feld FLUENT 17 February 26, 2016 14:04
Pressure coefficient Giuseppe FLUENT 2 July 26, 2015 03:19
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 13:32
Pressure Coefficient around cylinder RealENG22 FLUENT 3 March 24, 2013 09:56
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 14:19


All times are GMT -4. The time now is 10:32.