CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   probes function not working in Openfoam 2.1.1 (http://www.cfd-online.com/Forums/openfoam/103828-probes-function-not-working-openfoam-2-1-1-a.html)

nandiganavishal June 27, 2012 16:09

probes function not working in Openfoam 2.1.1
 
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

samiam1000 July 26, 2012 10:22

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

Bernhard July 26, 2012 10:34

What exactly is not working? What errormessages do you get?

samiam1000 July 26, 2012 10:42

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?

Bernhard July 26, 2012 10:46

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.

samiam1000 July 26, 2012 10:49

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

nandiganavishal July 26, 2012 10:52

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

samiam1000 July 26, 2012 11:06

Thanks Visha,

actually my problem is a bit different..

Thanks again,

Samuele


All times are GMT -4. The time now is 17:59.