Commit Graph

22 Commits

Author SHA1 Message Date
dd04dd9c2c messageStream: Remove confusing argument-based conditional output
This had been used in functionObjects:

    Info(log)<< "messages" << data << ....

in which it is not at all clear what the "log" argument does whereas

    if (log) Info<< "messages" << data << ....

is totally clear and more efficient.
2015-05-18 11:54:56 +01:00
9b382a36d5 fieldMinMax: add optional switch to control the output of max/min location
and simplify output format for graphing

With "location yes;"

log:
    fieldMinMax fieldMinMax output:
        min/max(mag(U.air)) = 0 28.309442
        min/max(mag(U.water)) = 0 27.221734

file:
    # Field minima and maxima
    # Time          min(U.air)      max(U.air)      min(U.water)    max(U.water)
    4.00061050e-01  0.00000000e+00  2.87015987e+01  0.00000000e+00  2.71025731e+01
    4.00134265e-01  0.00000000e+00  2.86505310e+01  0.00000000e+00  2.71134246e+01
    4.00222098e-01  0.00000000e+00  2.85937449e+01  0.00000000e+00  2.71255302e+01

With "location no;"

log:
    fieldMinMax fieldMinMax output:
        min(mag(U.air)) = 0 at location (-0.058373423 -0.15376628 0.021017389)
        max(mag(U.air)) = 28.701599 at location (-0.24002836 0.0053456235 3.8964638)
        min(mag(U.water)) = 0 at location (-0.058373423 -0.15376628 0.021017389)
        max(mag(U.water)) = 27.102573 at location (-0.24002836 0.0053456235 3.8964638)

file:
    # Field minima and maxima
    # Time          field           min             location(min)   max             location(max)
    4.00061050e-01  U.air           0.00000000e+00  (-5.83734226e-02 -1.53766281e-01 2.10173892e-02)        2.87015987e+01  (-2.40028359e-01 5.34562354e-03 3.89646377e+00)
    4.00061050e-01  U.water         0.00000000e+00  (-5.83734226e-02 -1.53766281e-01 2.10173892e-02)        2.71025731e+01  (-2.40028359e-01 5.34562354e-03 3.89646377e+00)
2015-05-05 15:41:32 +01:00
659249064f ENH: Function object updates 2014-01-03 10:37:08 +00:00
636215a0ea ENH: functionObjects - updated writing to file 2013-11-25 10:52:20 +00:00
f6e02c19c7 BUG: Updated fieldMinMax function object to handle empty patches 2012-11-22 12:15:56 +00:00
49130c8467 ENH: Updated min/max function object to include boundary values 2012-10-29 14:31:23 +00:00
72d49281ce ENH: Refactored function objects to make use of new base class 2012-10-15 17:59:38 +01:00
122114042a STYLE: minor coding style changes 2012-09-20 10:15:20 +01:00
45ca1c067c BUG: fieldMinMax: accessing uninitialised data (data not scattered) 2012-07-06 12:39:35 +01:00
b7e680b277 Updated headers 2012-05-30 15:33:22 +01:00
b30ad82fc9 ENH: Added proc no to output or min/max field function object 2012-05-04 11:23:11 +01:00
d1a4239478 ENH: Added position output to fieldMinMax function object 2012-03-21 09:17:47 +00:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
099cc39e2e Revert "STYLE: 2011 copyright date."
This reverts commit b18f6cc1ce.
2011-01-05 18:24:29 +00:00
b18f6cc1ce STYLE: 2011 copyright date. 2011-01-05 11:14:26 +00:00
aaf1674de2 ENH: add optional write flag to fieldMinMax
- allows logging min/max without creating any files
2010-06-08 12:51:55 +02:00
d29c438657 STYLE: use url for FSF license instead of postal address, switch to GPL v3 2010-03-29 14:07:56 +02:00
6059bc7cc1 reduce synchronisation 2009-08-10 11:39:51 +01:00
42c240b97e cosmetics/code-tidying 2009-06-11 17:09:19 +01:00
b1800b8b92 adding mag/component options 2009-01-16 15:45:52 +00:00
3bb1825334 removing unnecessary reduce ops 2009-01-16 14:32:58 +00:00
654f844386 moved field-related function objects to field subfolder 2009-01-13 17:29:54 +00:00