CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] read result values with pyFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 7, 2014, 03:40
Default read result values with pyFoam
  #1
Member
 
Davide Pasini
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ilpaso is on a distinguished road
Hi Foamers!

I'm trying to read the average p values on a patch with python.
What is the right way?
Yes, I'm a newbie

I have done some tests with pyFoam.
I'm able to modify the boundary condictions and run the solver but nothing in order to read the result values and convert in a "python" format.

I don't know if reading the csv output file is an easy way to read the openFoam outputs in python.

This is the function I wrote in controlDict in order to do that.

Code:
pressureAverage
    {
        type patchAverage;
        fields (
            p
        );
        patches (
            velocity-inlet-6
        );
	expression "p";
        outputFileMode csv;
	verbose true;
    }
thank you
Regards
ilpaso is offline   Reply With Quote

 


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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
DEFINE_ADJUST: How open and read file values (.prof or .txt) into one boundary rayolau Fluent UDF and Scheme Programming 0 April 25, 2013 07:01
read a file .txt with nurecial values of time and acceleration sicfred Fluent UDF and Scheme Programming 0 November 21, 2011 07:02
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Read values from previous timesteps vmlxb6 CFX 9 April 22, 2011 18:56


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