|
[Sponsors] |
January 16, 2019, 09:08 |
problem with pyFoamPlotWatcher.py
|
#1 |
New Member
Join Date: Oct 2018
Posts: 9
Rep Power: 8 |
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 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; } Could somebody help me? Thanks! |
|
March 3, 2019, 09:06 |
|
#2 |
New Member
Join Date: Sep 2015
Posts: 13
Rep Power: 11 |
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... |
|
March 8, 2019, 05:27 |
|
#3 | |
New Member
Join Date: Oct 2018
Posts: 9
Rep Power: 8 |
Quote:
|
||
Tags |
pyfoam customregexp, pyfoamplotwatcher.py |
|
|
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 |