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

Probe for X or Y velocity

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2009, 04:52
Default
  #21
Member
 
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17
santoo_cfd is on a distinguished road
Thanks for constant help, I could able to use in OF 1.6 as well now.
santoo_cfd is offline   Reply With Quote

Old   September 30, 2009, 17:37
Default
  #22
Senior Member
 
Nishant
Join Date: Mar 2009
Location: Glasgow, UK
Posts: 166
Rep Power: 17
nishant_hull is on a distinguished road
someone used the probes in OF 1.6. An example can be found in
\incompressible\pimpleFoam\t-junction\system

// Write at same frequency as fields
outputControl outputTime;
outputInterval 1;

there is new keyword word for the output control.

nishant

Last edited by nishant_hull; September 30, 2009 at 19:34.
nishant_hull is offline   Reply With Quote

Old   September 28, 2011, 10:30
Default
  #23
Member
 
Antonio Liggieri
Join Date: Aug 2010
Posts: 76
Rep Power: 14
alfa_8C is an unknown quantity at this point
Hello,

does anybody know, how I can redirect the data from a probe also directly to the screen, so that I can plot them with the pyFoam utility? Is there any option to be switched on like "log = true" or something like that?

For any help thank you in advance

Kind regards,
Toni
alfa_8C is offline   Reply With Quote

Old   September 29, 2011, 12:24
Default
  #24
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 alfa_8C View Post
Hello,

does anybody know, how I can redirect the data from a probe also directly to the screen, so that I can plot them with the pyFoam utility? Is there any option to be switched on like "log = true" or something like that?

For any help thank you in advance

Kind regards,
Toni
What you want is the value at one place on the standard-output so that a customRegexp can pick it up and plot it, right?

I'm afraid the probe-functionObject doesn't offer this (but I didn't research it too much)

What would be possible is to use (sorry) swak4Foam: generate a sampledSet of type cloud with one point. Use a functionObject swakExpression on it, set that to verbose and get that value. Maybe there is a simpler way.

To see how sampledSets are used in swak4Foam browse through the Examples that come with swak4Foam or look at my presentation from this years workshop

Bernhard
gschaider is offline   Reply With Quote

Old   April 14, 2014, 03:40
Default Problem using multiple probe locations
  #25
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi all,

When I use multiple probe locations, only the data from the first location makes any sense, the rest gives values like -1e300. Does anyone have any experience with this? Ever seen this before?

My code looks like this:

functions
{
probes1
{
type probes;

functionObjectLibs ("libsampling.so");

region region0;

probeLocations
(
(1.3e-2 -2e-4 0)
(1.3e-2 0 0)
(1.3e-2 2e-4 0)
);

fields
(
U
);

outputControl timeStep;
outputInterval 100;
}
}


And I run the solver in parallel, on 4 cores (1 machine).

Thanks in advance for any help,

Sita

Additional info:
OpenFOAM gives warnings about these probe locations, it cannot find them:

--> FOAM Warning :
From function probes::read()
in file probes/probes.C at line 72
Did not find location (0.013 0 0) in any cell. Skipping location.
--> FOAM Warning :
From function probes::read()
in file probes/probes.C at line 72
Did not find location (0.013 0.0002 0) in any cell. Skipping location.

Strange, because both points are really present in my mesh...
Tings_ likes this.

Last edited by sita; April 14, 2014 at 07:25. Reason: Additional info
sita is offline   Reply With Quote

Old   April 14, 2014, 19:34
Default
  #26
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 sita View Post
Hi all,

When I use multiple probe locations, only the data from the first location makes any sense, the rest gives values like -1e300. Does anyone have any experience with this? Ever seen this before?

<snip>


Additional info:
OpenFOAM gives warnings about these probe locations, it cannot find them:

--> FOAM Warning :
From function probes::read()
in file probes/probes.C at line 72
Did not find location (0.013 0 0) in any cell. Skipping location.
--> FOAM Warning :
From function probes::read()
in file probes/probes.C at line 72
Did not find location (0.013 0.0002 0) in any cell. Skipping location.

Strange, because both points are really present in my mesh...
-1e300 is the usual response if the probe is outside the mesh .... which OF very clearly points out to you in the warnings you quoted ("did not find in any cell")
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   April 15, 2014, 00:51
Default
  #27
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Yeah, I know, that's pretty clear indeed. The only problem is, as I pointed out, that these points are really present in my mesh. In fact, they are in the list of vertices in blockMeshDict.

So maybe I should rephrase my question: why is OF unable to find these points? Is there something wrong with my syntax? Or does it have to do with the parallel solving? Or…?
sita is offline   Reply With Quote

Old   April 15, 2014, 11:50
Default
  #28
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 sita View Post
Yeah, I know, that's pretty clear indeed. The only problem is, as I pointed out, that these points are really present in my mesh. In fact, they are in the list of vertices in blockMeshDict.

So maybe I should rephrase my question: why is OF unable to find these points? Is there something wrong with my syntax? Or does it have to do with the parallel solving? Or…?
Edges and corners are not a good idea. Testing for them is like dropping a ball onto a fence: you never know on which side it will fall (in your case: outside). Put the probe points SLIGHTLY inside (instead of 3 use 2.99999 for instance).
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   April 23, 2014, 02:04
Default
  #29
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Thanks, that works!
sita is offline   Reply With Quote

Old   July 22, 2015, 17:46
Default
  #30
Member
 
António Pires
Join Date: Oct 2014
Posts: 33
Rep Power: 11
Antoniorp is on a distinguished road
Hello everyone,

I have a question regarding the probes function.

I'm modelling a wave flume with monochormatic waves propagating over it and i have applied the probes function to a series of points in the mesh to calculate velocity.

My question is: when i get the results ate the end of the run, those values of velocity are instantaneous velocity or are they phase averaged values?

I've been strugling with this for some time and maybe someone has the answer,

Thanks!

António
Antoniorp 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
Probe problem nzy102 OpenFOAM Running, Solving & CFD 1 April 14, 2008 01:16
Probe or something else to monitor hoerl OpenFOAM Running, Solving & CFD 2 January 15, 2007 06:04
I can not use the probe in the Paraview ztdep OpenFOAM Running, Solving & CFD 6 November 30, 2006 03:22
probe hydrogen CFX 2 May 22, 2006 11:59
problem with probe Yolanda CFX 0 May 17, 2006 06:27


All times are GMT -4. The time now is 14:55.