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

problem with pyFoamPlotWatcher.py

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2019, 09:08
Question problem with pyFoamPlotWatcher.py
  #1
New Member
 
Join Date: Oct 2018
Posts: 9
Rep Power: 8
tjuAeron is on a distinguished road
hello every here,
I'm now trying to show the converge history of inlet total pressure in my case using pyFoamPlotWatcher.py.
I have got calculation log data like this:
Code:
 Time = 4

diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoUz, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal:  Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0
rho L2 Residual: 6.0569
rho LInf Residual: 7.21048

DILUPBiCG:  Solving for omega, Initial residual = 4.4485e-05, Final residual = 4.67333e-10, No Iterations 1
DILUPBiCG:  Solving for k, Initial residual = 0.015744, Final residual = 8.20384e-10, No Iterations 2

    ExecutionTime = 3.71 s

Cyclic GGI pair (per1, per2) : 3.64795 3.64795 Diff = -9.12743e-08 or 2.50207e-06 %
Mach number min = 1.00798 max = 1.42256
 Mass-Flow-Weighted Averages of p :  outlet = 122778  inlet = 84474.2
 Mass-Flow-Weighted Averages of T :  outlet = 300.108  inlet = 273.464
 MassFlows:   outlet = 14.5783  inlet = -20.3666
Expression T*_inlet :  average=288.065
Expression T*_outlet :  average=313.963
Expression p*_inlet :  average=100246
Expression p*_outlet :  average=142626
and costomRegexp file like this:
Code:
TotalPressure
{
  expr "Expression p*_inlet :  average=(%f%)";
  theTitle "TotalPressure";
  titles ( inlet );
  type regular;
}

AddToTotalPressure
{
  expr "Expression p*_outlet :  average=(%f%)";
  titles ( outlet );
  type slave;
  master TotalPressure;
}
but when I excute pyFoamPlotWatcher.py, only residuals plots are shown. And there's no error information.
Could somebody help me? Thanks!
tjuAeron is offline   Reply With Quote

Old   March 3, 2019, 09:06
Default
  #2
New Member
 
Join Date: Sep 2015
Posts: 13
Rep Power: 11
ChrisHa is on a distinguished road
You have to escape the special character * (asterisk) in your regular expressions.



see e.g. http://www.ispras.ru/conf/2015/pdf/Bernhard.pdf (slide 70) for a nice explanation...
ChrisHa is offline   Reply With Quote

Old   March 8, 2019, 05:27
Default
  #3
New Member
 
Join Date: Oct 2018
Posts: 9
Rep Power: 8
tjuAeron is on a distinguished road
Quote:
Originally Posted by ChrisHa View Post
You have to escape the special character * (asterisk) in your regular expressions.



see e.g. http://www.ispras.ru/conf/2015/pdf/Bernhard.pdf (slide 70) for a nice explanation...
Thanks man! It helps me a lot!
tjuAeron is offline   Reply With Quote

Reply

Tags
pyfoam customregexp, pyfoamplotwatcher.py


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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