CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Verification & Validation

PyFoam compares fields from the test case for 2 solver versions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2023, 03:33
Default PyFoam compares fields from the test case for 2 solver versions
  #1
New Member
 
Alexander
Join Date: Oct 2010
Posts: 5
Rep Power: 15
starab is on a distinguished road
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 is offline   Reply With Quote

Old   September 22, 2023, 05:47
Default
  #2
New Member
 
Alexander
Join Date: Oct 2010
Posts: 5
Rep Power: 15
starab is on a distinguished road
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 is offline   Reply With Quote

Old   September 22, 2023, 05:59
Default
  #3
New Member
 
Alexander
Join Date: Oct 2010
Posts: 5
Rep Power: 15
starab is on a distinguished road
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 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPUs vs GPUs for CFD? hami11 Hardware 15 April 1, 2024 11:23
Postprocess: sampleDict works but creates no output folder shock77 OpenFOAM Post-Processing 14 November 15, 2021 08:27
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
2D test case validation in a 3D solver AshwaniAssam Main CFD Forum 4 October 1, 2015 07:51
Working directory via command line Luiz CFX 4 March 6, 2011 20:02


All times are GMT -4. The time now is 04:36.