CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Error using probes (https://www.cfd-online.com/Forums/openfoam-solving/81934-error-using-probes.html)

balkrishna November 11, 2010 05:53

Error using probes
 
My controlDict is as follows :
Code:

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

application    balBubbleFoam;

startFrom      startTime;

startTime      0;

stopAt          endTime;

endTime        50;

deltaT          0.01;

writeControl    runTime;

writeInterval  10;

purgeWrite      0;

writeFormat    ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision  6;

runTimeModifiable yes;

functions
{
    probes
      {
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled        true;
        outputControl  timeStep;
        outputInterval  1;
        probeLocations
          (
          (0.05 0.0 0.03)
          (0.25 0.0 0.09)
          (0.05 0.0 0.18)
          (0.25 0.0 0.36)
          (0.05 0.0 0.45)
          (0.25 0.0 0.60)
          (0.05 0.0 0.70)
          (0.25 0.0 0.80)
          (0.05 0.0 1.10)
          (0.25 0.0 1.20)
          );

        fields
          (
          alpha,Ua,Ub
          );
      }
   
    fieldAverage1
      {
        type            fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled        true;
        outputControl  outputTime;
        fields
          (
            alpha
            {
              mean        on;
              prime2Mean  on;
              base        time;
            }

            Ua
            {
              mean        on;
              prime2Mean  on;
              base        time;
            }

            Ub
            {
              mean        on;
              prime2Mean  on;
              base        time;
            }

            p
            {
              mean        on;
              prime2Mean  on;
              base        time;
            }
          );
      }
}


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

I run the simulation in parallel on 4 cores . However at the end of the simulation after reconstructPar there is no probes directory . Can ne1 point out the mistake ??

nimasam November 11, 2010 10:05

i dont know what the problem is , but as i know you can probe those points after simulation and reconstruction by using : probeLocations

stevenvanharen November 11, 2010 11:42

try probes1 as a name instead of probes, and remove keyword enabled.

I assume you get no warning at the start of the simulation that your probe locations are outside of the domain?

balkrishna November 12, 2010 04:31

@steven i do not get any warning that the probe locations are outside of the domain

stevenvanharen November 12, 2010 04:55

Did you try my other two suggestions?

Because that are the only two differences between your controlDict and mine. And mine works fine.

balkrishna November 12, 2010 05:51

yes i tried them but still i get no folder

stevenvanharen November 12, 2010 05:55

Mmmmm, strange.

If you send me the full case I can have a look here.
You're using your own solver?


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