PyFoamPlotWatcher to plot min/max "p"
Dear all,
Im trying to plot min/max of pressure (p) in my domain using pyFoamPlotwatcher.py along with massflow rate. Im able to plot for massflow rate, but min(p) values are not getting plotted. My log file looks like this, //log_file_sample_start// ... ExecutionTime = 46.73 s ClockTime = 51 s MassFlows: outlet = 0.000254 inlet = -0.000254 fieldMinMax minmaxdomain output: min(p) = -9.27757 at position (0.0549444 -0.0108001 -1.09092e-21) max(p) = 13.3839 at position (0.207022 0.0251462 -1.63172e-21) min(U) = (9.83972 -1.23842 0) at position (-0.0198086 0.000156695 -2.90727e-21) max(U) = (10.0882 0.0457922 5.69625e-23) at position (0.000794772 0.00125782 -3.55445e-21) //log_file_sample_end// My customRegexp file is written like this, massFlow { accumulation first; enabled yes; expr "MassFlows: outlet = (%f%) inlet = (%f%)"; name Custom01_massFlow; theTitle "Massflow rate"; titles ( outlet inlet ); type regular; } min(p) { expr "min(p) = (%f%) at position \(%f% %f% %f%\)"; name Custom02_min(p); theTitle "min_p"; titles ( min_p ); type regular; } As I mentioned earlier, massflow values are plotted but min(p) value is not getting plotted. Moreover, i didnt receive any error. Pls give me your suggestions. Sethu |
Hi, I'm having trouble using the customRegexp and swak4Foam function objects (following from one of the OFW presentation examples). I'm getting the following error when I try to run a case with some swak4Foam expressions in controlDict and a customRegexp file:
Code:
PyFoam WARNING on line 144 of file /usr/local/lib/python2.7/dist-packages/PyFoam-0.6.5-py2.7.egg/PyFoam/Execution/ParallelExecution.py : which can not find a match for waveFoam . Hoping for the best Code:
application waveFoam; And finally my customRegexp file is: Code:
velocity { I can't see an unbalanced paranthesis... can anyone help me on this? Thanks in advance |
hello dear friends,
I am trying to plot the output of a faceSource functionObject that computes the total massflow at inlet. Here is my log for one timestep: Code:
PIMPLE: iteration 1 Code:
massflowplot Code:
pyFoamPlotRunner.py mySolver But it doesn't plot and I don't understand why. Any idea ? Do I have to write something else somewere else ? Is the regexp correct ? thanks a lot for any help ! |
Plotting particles added and escapes
Hi All,
How do you get pyFoamPlotWatcher to plot the added particle count and the escape count from solver.log? The typical time step output for particles look like below: Time = 0.875 Evolving kinematicCloud Solving 3-D cloud kinematicCloud Cloud: kinematicCloud Current number of parcels = 5045 Current mass in system = 0.00647515 Linear momentum = (-0.002015723 -0.001078755 -0.0004498539) |Linear momentum| = 0.002330069 Linear kinetic energy = 0.01457947 injector_1: number of parcels added = 6546 mass introduced = 0.008395572 Parcel fate (number, mass) : patch cyclone_inletX - escape = 0, 0 - stick = 0, 0 Parcel fate (number, mass) : patch cyclone_outlet - escape = 1501, 0.001920422 - stick = 0, 0 I wrote a Python script to print to a CSV file and plot it using Gnuplot: Code:
#!/usr/bin/python Code:
#!/bin/bash |
All times are GMT -4. The time now is 15:51. |