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

probes function not working in Openfoam 2.1.1

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2012, 17:09
Default probes function not working in Openfoam 2.1.1
  #1
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Dear Foamers,

I had recently installed the latest version of OpenFoam 2.1.1. I was trying to compile and execute my solvers created in version 1.7.0 into the latest version.

I had no issues in compiling my solvers, however I found that my probes function was not working in the new version.

Below is my controldict file

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application coupleFoam_1D;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 10000;

deltaT 200;

writeControl adjustableRunTime;

writeInterval 200;

purgeWrite 0;

writeFormat ascii;

writePrecision 8;

writeCompression uncompressed;

timeFormat general;

timePrecision 8;

runTimeModifiable yes;

adjustTimeStep yes;


functions
{
probes
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );

type probes;

// Name of the directory for probe data
name probes;

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

// Fields to be probed
fields
(
Phi C1

);

// Locations to be probed. runTime modifiable!
probeLocations
(
// x variation
(0 0 0)
);

}
}
// ************************************************** *********************** //

// ************************************************** *********************** //

As I had mentioned, I am able to execute the program but not able to get the probes function working. Kindly let me know what could be the reason for this.

Thanks

Regards

Vishal
nandiganavishal is offline   Reply With Quote

Old   July 26, 2012, 11:22
Default
  #2
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Dear Vishal,

I am trying to solve the same problem that you faced.

Have you solved it?

How did you get it working?

Thanks a lot,
Samuele
samiam1000 is offline   Reply With Quote

Old   July 26, 2012, 11:34
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
What exactly is not working? What errormessages do you get?
Bernhard is offline   Reply With Quote

Old   July 26, 2012, 11:42
Default
  #4
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Actually,

the problem is a bit different.

It works, but I am able to evaluate temperature in a single point. How could I evaluate the temperatures of all the cells on a patch?
samiam1000 is offline   Reply With Quote

Old   July 26, 2012, 11:46
Default
  #5
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Then you need a different type of function. Altough the patch data is stored by default every output timestep, so I am not sure if it is strictly necessary (unless you want the patch info to be written more often). You should look up the different types of functionObjects to see the possibilities during runtime.
Bernhard is offline   Reply With Quote

Old   July 26, 2012, 11:49
Default
  #6
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
I'll look for them,

thanks a lot.

Where are they listed?

Also, just one more question: is it possible to manipulate the variable on that patch? I mean, can I sum them, or something like it?

Thanks again,

Samuele
samiam1000 is offline   Reply With Quote

Old   July 26, 2012, 11:52
Default
  #7
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Hi Samuele,

In my case,the probes function was not working due to the new OpenFOAM version 2.1.0. I was able to fix it by changing

for (runTime++; !runTime.end(); runTime++)

with:

while (runTime.run())

in the solver.


Thanks

Vishal
nandiganavishal is offline   Reply With Quote

Old   July 26, 2012, 12:06
Default
  #8
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Thanks Visha,

actually my problem is a bit different..

Thanks again,

Samuele
samiam1000 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
OpenFOAM Foundation Releases OpenFOAMŪ Version 2.1.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 May 31, 2012 10:07
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56


All times are GMT -4. The time now is 01:24.