Commit Graph

79 Commits

Author SHA1 Message Date
83bae2efd3 functionObjects: Renamed dictionary entry 'functionObjectLibs' -> 'libs'
This changes simplifies the specification of functionObjects in
controlDict and is consistent with the 'libs' option in controlDict to
load special solver libraries.

Support for the old 'functionObjectLibs' name is supported for backward compatibility.
2016-05-16 22:09:01 +01:00
78d2971b21 functionObjects: rewritten to all be derived from 'functionObject'
- Avoids the need for the 'OutputFilterFunctionObject' wrapper
  - Time-control for execution and writing is now provided by the
    'timeControlFunctionObject' which instantiates the processing
    'functionObject' and controls its operation.
  - Alternative time-control functionObjects can now be written and
    selected at run-time without the need to compile wrapped version of
    EVERY existing functionObject which would have been required in the
    old structure.
  - The separation of 'execute' and 'write' functions is now formalized in the
    'functionObject' base-class and all derived classes implement the
    two functions.
  - Unnecessary implementations of functions with appropriate defaults
    in the 'functionObject' base-class have been removed reducing
    clutter and simplifying implementation of new functionObjects.
  - The 'coded' 'functionObject' has also been updated, simplified and tested.
  - Further simplification is now possible by creating some general
    intermediate classes derived from 'functionObject'.
2016-05-15 16:40:01 +01:00
437030a57d functionObjects: Removed the redundant "viable" member function
Construction failure and recovery is not handled with exceptions in functionObjectList
2016-05-11 12:57:17 +01:00
080908732d src/postProcessing/functionObjects: Removed unused IOOutputFilter clutter 2016-05-10 12:54:42 +01:00
c70c12a2bb functionObjects: Simplified organization and naming 2016-05-03 23:37:28 +01:00
0534a225fd functionObjects: Moved into the functionObjects namespace and rationalized and simplified failable construction
Rather than requiring each functionObject to handle failed construction
internally (using the active_ flag) the static member function "viable"
is provided which returns true if construction of the functionObject is
likely to be successful.  Failed construction is then handled by the
wrapper-class which constructs the functionObject,
e.g. "OutputFilterFunctionObject".
2016-05-02 16:28:24 +01:00
450728ea84 Standardized cell, patch, face and processor loop index names 2016-04-25 12:00:53 +01:00
43beb06018 Standardized cell, patch and face loop index names 2016-04-25 10:28:32 +01:00
730f89dc9d Use Zero rather than pTraits<Type>::zero unless a static typed '0' is required 2016-03-22 17:46:52 +00:00
f4ba71ddd0 OpenFOAM libraries: Updated to use the new const-safe tmp 2016-02-26 08:13:59 +00:00
56fa7c0906 Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
f900abd83b functionObjects: Format time according to the specification in controlDict
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1921
2015-11-20 13:22:51 +00:00
c4d5f65a10 Completed update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the
function signature string.
2015-11-11 09:03:39 +00:00
ce844e6f5b cellSource: Added weightedVolAverage option
faceSource: Added weightedAreaAverage option
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1769
2015-06-30 11:20:02 +01:00
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
7edfb4d08d faceSource: Corrected handling of totalArea in parallel
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1693
2015-05-17 14:57:33 +01:00
e393bbbaca Updated header 2015-04-26 21:35:09 +01:00
aa965f6612 faceSource: Changed option to write faceSource area to 'writeArea' 2015-04-26 21:34:27 +01:00
7bfa1dce7c Update headers 2015-04-26 16:37:43 +01:00
083d7059fc faceSource: Writing the total area of the faceSource (sum(magSf)) for each time is now optional
Previous behavior which may be useful for moving-mesh cases can be
selected using the optional entry:
    writeTotalArea  yes;

The initial total area is written in the log and data file header e.g.:

 #   Source : faceZone f0
 #   Faces  : 8
 #   Area   : 1.063860e-02
2015-04-26 16:32:19 +01:00
8628ef2fea Corrected capitalization of Doxygen documentation comments 2015-02-14 13:10:15 +00:00
5b215dce4c BUG: faceSource: #1364 2014-08-05 15:25:14 +01:00
5dd91c2a3d BUG: [cell|face]Source - updated CoV calculation 2014-07-10 12:07:38 +01:00
307ddb9a78 BUG: faceSource - corrections for oriented fields 2014-07-02 16:08:50 +01:00
bbc255f368 BUG: faceSource - incorrect treatment for cyclic - mantis #1092 #1181 2014-02-24 09:09:54 +00:00
659249064f ENH: Function object updates 2014-01-03 10:37:08 +00:00
4dd1ce0869 BUG: faceSource: output on master only 2013-12-16 15:41:29 +00:00
6341de384d ENH: faceSource function object - updates and fixes 2013-11-11 12:59:21 +00:00
bfc3b12920 ENH: faceSource|cellSource function objects: added warning if field not processed 2013-05-22 09:23:24 +01:00
d4a937aafc ENH: face source: updated sumDirection op for vector 2013-01-17 11:22:58 +00:00
89473d43dd ENH: Added sumDirection operation into faceSource function object 2013-01-16 16:38:37 +00:00
4c22e25a20 STYLE: Minor code formatting 2012-11-21 10:25:35 +00:00
db21cc490f ENH: Added run-time selection for fieldValue function object 2012-11-21 09:48:35 +00:00
d07327202e ENH: Extended API to allow results to be accessed outside of class 2012-11-20 18:06:15 +00:00
72d49281ce ENH: Refactored function objects to make use of new base class 2012-10-15 17:59:38 +01:00
bc7d36e0ff ENH: Create surface writer with additional dictionary options 2012-10-10 15:05:11 +01:00
f05c049d43 ENH: Enabled valueOutput for surfaces in fieldValues 2012-10-02 13:16:45 +01:00
f1deb4445e GIT: conflict resolution 2012-09-26 12:13:44 +01:00
b9820bf4e7 ENH: enabled writing of faceSource function object values using a surfaceWriter 2012-09-20 14:15:15 +01:00
f3d8e5316c Updated function object documentation 2012-08-13 17:36:58 +01:00
d9912c2003 ENH: Doxygen docs - using Note instead of \note 2012-08-03 11:43:28 +01:00
db306003ab ENH: Updates to doxygen docs 2012-07-27 18:06:24 +01:00
7435d65a60 ENH: Corrected ambiguous construction from tmp msgs (llvm/clang) 2012-04-16 10:05:13 +01:00
04c715a19b ENH: faceSource: add area-normal integration or averaging 2012-03-20 14:14:49 +00:00
04033b6968 ENH: Re-inistated weighted-average fieldAverage usage 2012-03-02 17:13:46 +00:00
7135a403cd ENH: Exposed weightField to all face/cell source function object operations 2012-02-01 17:32:08 +00:00
49b0676573 ENH: Added coefficient of variance (CoV) operation to fieldValues function objects 2011-11-21 14:00:18 +00:00
ac7980d5df STYLE: functionObjectLibs: corrected library names 2011-11-09 16:14:09 +00:00
53f332bc60 ENH: Updated weight field initialisation for fieldValues function object 2011-08-16 18:05:06 +01:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00