CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to probe all points on a patch?

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

Like Tree1Likes
  • 1 Post By amin144

Reply
 
LinkBack Thread Tools Display Modes
Old   August 26, 2011, 22:28
Default How to probe all points on a patch?
  #1
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 5
strikeraj is on a distinguished road
Hi

I am trying to run a transient flow over 3D airfoil case and I would like to record the surface pressure on the airfoil for the whole computation time frame.

However, it seems that it expects only vectors within probeLocations. Is there any way to have it probe all the points on the surface of a patch?

I tried

Code:
probeLocations
(
patches
(
WALL
)
);
but it does not work

any ideas??

Thanks a lot
strikeraj is offline   Reply With Quote

Old   August 27, 2011, 09:40
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by strikeraj View Post
Hi

I am trying to run a transient flow over 3D airfoil case and I would like to record the surface pressure on the airfoil for the whole computation time frame.

However, it seems that it expects only vectors within probeLocations. Is there any way to have it probe all the points on the surface of a patch?

I tried

Code:
probeLocations
(
patches
(
WALL
)
);
but it does not work

any ideas??

Thanks a lot
What you want is a sampledSurface (type: patch). Have a look at the example dictionary that comes with the sample utility. There is also a functionObject that comes with OF that uses that mechanism
gschaider is offline   Reply With Quote

Old   September 18, 2011, 21:06
Default
  #3
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 5
strikeraj is on a distinguished road
Quote:
Originally Posted by gschaider View Post
What you want is a sampledSurface (type: patch). Have a look at the example dictionary that comes with the sample utility. There is also a functionObject that comes with OF that uses that mechanism
Hi

Thanks for your reply. But just I found out that the sample utility is for post-processing only. I am wishing to write out the pressure on a boundary surface for every time step without the need to write all variables for all time steps.
Is there an utility that can do this?

Thanks,
Tom
strikeraj is offline   Reply With Quote

Old   September 19, 2011, 04:28
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by strikeraj View Post
Hi

Thanks for your reply. But just I found out that the sample utility is for post-processing only. I am wishing to write out the pressure on a boundary surface for every time step without the need to write all variables for all time steps.
Is there an utility that can do this?

Thanks,
Tom
All the functionality of the sample utility exists in two functionObjects. "set" and "surface" are the names, I think
gschaider is offline   Reply With Quote

Old   September 19, 2011, 07:13
Default
  #5
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 5
strikeraj is on a distinguished road
Quote:
Originally Posted by gschaider View Post
All the functionality of the sample utility exists in two functionObjects. "set" and "surface" are the names, I think
Hi

Thank you for you reply. I manage to get sample utility to work, just it does not work the way I thought it would.

I have a transient simulation for lets say 100k time steps. I cannot afford to save all the data for every single one. I am probably writing for every 1000 time steps. However, I need the surface pressure data for every time step on the wall boundary. I tried probing but it does not work with patch and sample utility is only a post-processing tool to extract surface data from the complete result.

Thanks,
Tom
strikeraj is offline   Reply With Quote

Old   September 19, 2011, 09:45
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by strikeraj View Post
Hi

Thank you for you reply. I manage to get sample utility to work, just it does not work the way I thought it would.

I have a transient simulation for lets say 100k time steps. I cannot afford to save all the data for every single one. I am probably writing for every 1000 time steps. However, I need the surface pressure data for every time step on the wall boundary. I tried probing but it does not work with patch and sample utility is only a post-processing tool to extract surface data from the complete result.

Thanks,
Tom
The functionObjects do exactly what you want: sample the data during the run (without extra data hitting the disk)
gschaider is offline   Reply With Quote

Old   September 20, 2011, 08:54
Default
  #7
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 5
strikeraj is on a distinguished road
Quote:
Originally Posted by gschaider View Post
The functionObjects do exactly what you want: sample the data during the run (without extra data hitting the disk)
Hi

Thank you for your reply. I tried searching a bit but failed to find out exactly how functionObjects work. Do you know which tutorial uses it or where I can find an explanation on how to set it up? Is it compatible with 2.0.1?

Thanks,
Tom
strikeraj is offline   Reply With Quote

Old   September 20, 2011, 11:51
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by strikeraj View Post
Hi

Thank you for your reply. I tried searching a bit but failed to find out exactly how functionObjects work. Do you know which tutorial uses it or where I can find an explanation on how to set it up? Is it compatible with 2.0.1?

Thanks,
Tom
Have a look at the sloshingTank2D-tutorial. The controlDict
gschaider is offline   Reply With Quote

Old   September 20, 2011, 15:53
Default
  #9
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 5
strikeraj is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Have a look at the sloshingTank2D-tutorial. The controlDict
Thank you so much for your help sir. That works like a charm.
strikeraj is offline   Reply With Quote

Old   April 10, 2012, 01:48
Default
  #10
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Who know what is the different use between the probe and sample?
sandy is offline   Reply With Quote

Old   April 24, 2012, 13:45
Default
  #11
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 6
amin144 is on a distinguished road
Quote:
Originally Posted by sandy View Post
Who know what is the different use between the probe and sample?
Sample write data which you want in a special location that you marked
sample write data of each step in a folder

if you have transient case, you need data in a special location during time
probe give you a file which contain data of a locations during all time steps ( you have one file for ecah point contain all time steps in probe , not many files for each time step like sample )
Goutam likes this.
amin144 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
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 12:23
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 15:41.