|
[Sponsors] |
February 7, 2014, 03:40 |
read result values with pyFoam
|
#1 |
Member
Davide Pasini
Join Date: Mar 2009
Posts: 34
Rep Power: 17 |
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; } Regards |
|
|
|
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 |