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

How to probe all points on a patch?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By amin144

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2011, 23:28
Default How to probe all points on a patch?
  #1
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 15
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, 10:40
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 22:06
Default
  #3
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 15
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, 05:28
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 08:13
Default
  #5
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 15
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, 10:45
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 09:54
Default
  #7
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 15
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, 12:51
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 16:53
Default
  #9
New Member
 
Tom Li
Join Date: Aug 2011
Posts: 16
Rep Power: 15
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, 02:48
Default
  #10
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
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, 14:45
Default
  #11
Member
 
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15
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 and Stan Zhou like this.
amin144 is offline   Reply With Quote

Reply


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 Off
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 13:23
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


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