|
[Sponsors] |
[PyFoam] Parameter Variation with Contrib PyFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 5, 2011, 05:37 |
Parameter Variation with Contrib PyFoam
|
#1 |
Senior Member
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17 |
Hi,
I try to use Contrib PyFoam as "Parameter Variation" in cooperation with the tool "probeLocation". Is it possible to catch the value "T" as Temperature of the probe location log file instead of pressure difference and change the boundary case depend of the probe location value? Thanks # Get the pressure difference (Using an external utility) pUtil=UtilityRunner(argv=[pCmd,".",case],silent=True,logname="Pressure") pUtil.add("deltaP","Pressure at .* Difference .*\] (.+)") pUtil.start() Bye Thomas |
|
May 5, 2011, 08:01 |
|
#2 |
Senior Member
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17 |
Hi,
I got it: time1,line=map(float,open(case+"/probes/"+dire.getLast()+"/T").readlines()[-1].split()) deltaT=line Bye Thomas |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[PyFoam] running pyFoam(Plot)Runner.py in parallel | Studi | OpenFOAM Community Contributions | 10 | September 6, 2015 17:38 |
[PyFoam] Automatic Parameter variation using pyFoam | avd28 | OpenFOAM Community Contributions | 0 | July 27, 2015 20:28 |
meshing of a compound volume in GMSH | shawn3531 | OpenFOAM | 4 | March 12, 2015 11:45 |
Force can not converge | colopolo | CFX | 13 | October 4, 2011 23:03 |
Transient Parameter Variation | Milanowski | FLUENT | 3 | April 22, 2010 13:37 |