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

[PyFoam] Parameter Variation with Contrib PyFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2011, 05:37
Default Parameter Variation with Contrib PyFoam
  #1
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 118
Rep Power: 14
tian is on a distinguished road
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
tian is offline   Reply With Quote

Old   May 5, 2011, 08:01
Default
  #2
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 118
Rep Power: 14
tian is on a distinguished road
Hi,

I got it:

time1,line=map(float,open(case+"/probes/"+dire.getLast()+"/T").readlines()[-1].split())
deltaT=line

Bye
Thomas
tian is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[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


All times are GMT -4. The time now is 20:59.