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/)
-   -   Probing line data into a single file (https://www.cfd-online.com/Forums/openfoam-solving/202071-probing-line-data-into-single-file.html)

cyln May 19, 2018 20:50

Probing line data into a single file
 
Hello,


I am probing line data in openfoam, and use the following code within the controlDict file.

Code:

probeLineData 
  {
    type sets;
    enabled true;
    verbose true;
    interpolationScheme cellPoint;
    outputControl timeStep;
    outputInterval 1;
    setFormat raw;
    fields (U); // the fields
    sets
    (
      X1 // line name
        type uniform;
        axis y;
        start          (-1 -1 0);
        end            (-1 1 0);
        nPoints        50;
      }
    );
}

When I use this, each line data probed are written into a different time directory within postProcessing folder. However, I would like the line data to be written into a single file so that I can easily post-process the time history of the line data.


Does anyone know a way to do this? or Can you suggest me any solution?



Cheers,
Cyln

simrego May 20, 2018 05:12

Hi!


Honestly I don't know if you can do that, maybe you can. But if you use "setFormat gnupot;", then you can plot the different time levels in the same figure easily.

Taataa May 20, 2018 10:27

You can use singleGraph function. Include this line in your controlDict:
Code:

functions
{
    #includeFunc  singleGraph
}

Then use this command to copy the dictionary to your system:
Code:

cp $FOAM_ETC/caseDicts/postProcessing/graphs/singleGraph system
Just modify the dictionary based on your specifications.


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