CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Verification & Validation (https://www.cfd-online.com/Forums/openfoam-verification-validation/)
-   -   PyFoam compares fields from the test case for 2 solver versions (https://www.cfd-online.com/Forums/openfoam-verification-validation/251885-pyfoam-compares-fields-test-case-2-solver-versions.html)

starab September 13, 2023 03:33

PyFoam compares fields from the test case for 2 solver versions
 
Dear All,
I was not able to find such discussion in the forum.
We intend to adjust the solver and verify it against generic cases, say, by differences in velocity field.
I am sure that PyFoam is able to do it, but it comes with too short examples and manuals.
The example runPitzDailyBasic.py has in postRun-function comparison between data and reference data. But I do not understand, how this data extracted from the case.
Should I add velocity field from the specific time step to runInfo of CTestRun object? How?
Or should I save the velocity field without PyFoam and use it in comparison afterwards?

Thank you

starab September 22, 2023 05:47

Moving ahead but stuck with SamplePlot parsing sets (which drives comparison method).

My sets look like (in OF10)

sets(
data(
type lineUniform;
axis distance;
)

);

surfaces ();

fields ( p );


as result I see data.xy ascii-files per timestep with 2 columns: distance and p.

The command
pyFoamSamplePlot --dir=postProcessing/sample --info

returns list with steps, list with a single line, and unfortunately empty list of fields.

Why SamplePlot does not see the samples?

starab September 22, 2023 05:59

Moving ahead but stuck with SamplePlot parsing sets (which drives comparison method).

My sets look like (in OF10)

sets(
data(
type lineUniform;
axis distance;
)

);

surfaces ();

fields ( p );


as result I see data.xy ascii-files per timestep with 2 columns: distance and p.

The command
pyFoamSamplePlot --dir=postProcessing/sample --info

returns list with steps, list with a single line, and unfortunately empty list of fields.

Why SamplePlot does not see the samples?


All times are GMT -4. The time now is 10:49.