CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Probes function doesn't output to a single file. (https://www.cfd-online.com/Forums/openfoam-post-processing/228291-probes-function-doesnt-output-single-file.html)

Kosuke Seto June 26, 2020 04:37

Probes function doesn't output to a single file.
 
1 Attachment(s)
Hello,

I use OpenFOAM7 and performed incompressible analysis using rhoPimpleFoam.

After running, I tried to collect data sets of pressure at a specific point from all generated results using probes function.

I created a file named "probes" in the "system" directory.
Its content is like this.
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  7
    \\/    M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out values of fields from cells nearest to specified locations.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/probes/probes.cfg"

fields (p);
probeLocations
(
    (0.03 -0.003 0)
);

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

And I modified the controlDict a bit to add

Code:

functions
{

 #includeFunc probes
}

at the bottom.

And then, I use the command "rhoPimpleFoam -postprocess".

The result is like the attached image.
It doesn't output values to a single file, but make many files of each times.
I wanna make it a single because I wanna make graphs from it.

Best regards for any help.

CFD-HSNR September 30, 2020 06:50

Quote:

Originally Posted by Kosuke Seto (Post 776079)
Hello,

I use OpenFOAM7 and performed incompressible analysis using rhoPimpleFoam.

After running, I tried to collect data sets of pressure at a specific point from all generated results using probes function.

I created a file named "probes" in the "system" directory.
Its content is like this.
Code:

/*--------------------------------*- C++ -*----------------------------------*\
  =========                |
  \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox
  \\    /  O peration    | Website:  https://openfoam.org
    \\  /    A nd          | Version:  7
    \\/    M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out values of fields from cells nearest to specified locations.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/probes/probes.cfg"

fields (p);
probeLocations
(
    (0.03 -0.003 0)
);

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

And I modified the controlDict a bit to add

Code:

functions
{

 #includeFunc probes
}

at the bottom.

And then, I use the command "rhoPimpleFoam -postprocess".

The result is like the attached image.
It doesn't output values to a single file, but make many files of each times.
I wanna make it a single because I wanna make graphs from it.

Best regards for any help.


Hello Kosuke,

have you found out how to do it in the meantime ? I'm asking myself the same question.

Kosuke Seto October 1, 2020 01:53

Hi,

I'm sorry that I couldn't solve this problem.
However, I found that I can make a single file of data sets by using OpenFOAM-v2006
(and others from the series by ESI).


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