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

Parameter Variation with Contrib PyFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 5, 2011, 04:37
Default Parameter Variation with Contrib PyFoam
  #1
Senior Member
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 106
Rep Power: 9
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, 07:01
Default
  #2
Senior Member
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 106
Rep Power: 9
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pyFoam batch set up for OF 1.7 eelcovv OpenFOAM Running, Solving & CFD 3 January 19, 2011 09:38
Transient Parameter Variation Milanowski FLUENT 3 April 22, 2010 12:37
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
MAxium residual...confusion with expert parameter KK CFX 3 February 8, 2008 11:47
Expert Parameter for compressible transient ioannis CFX 0 November 2, 2005 20:28


All times are GMT -4. The time now is 14:01.