CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > 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 Display Modes
Old   June 27, 2012, 16: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: 206
Rep Power: 9
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, 10:22
Default
  #2
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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, 10:34
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
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, 10:42
Default
  #4
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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, 10:46
Default
  #5
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
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, 10:49
Default
  #6
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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, 10:52
Default
  #7
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 206
Rep Power: 9
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, 11:06
Default
  #8
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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
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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
OpenFOAM Foundation Releases OpenFOAMŪ Version 2.1.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 May 31, 2012 09: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 00:35
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


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