Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Merge requests
  • !5

Feature function objects

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Admin requested to merge feature-functionObjects into develop Nov 11, 2015
  • Overview 10
  • Commits 61
  • Changes

Lots of updates migrated from internal development line

Updated functionObjectFile

Old code maintained a list of file pointers, and provided a clunky interface to output to file. Although OK for function objects that only created a single file, those that created multiple files were required to refer to each by an index and making it very easy to introduce errors. The new code simplifies the functionObjectFile class so that it provides helper functions to create and write to files, and no longer maintains a list of file pointers. Instead, each function object must create and take responsibility for all of the file streams that it requires. Changes propagated across dependencies:

  • fieldValues
  • forces/forceCoeffs
  • yPlus
  • fieldMinMax
  • residuals
  • regionSizeDistribution
  • fieldMinMax
  • cloudInfo

Created new functionObjectState

Previously, if function objects required to store data on disk to enable smooth restarts, e.g. fieldAverage, the object would need to provide the mechanism for reading/writing state information itself. This class abstracts out the reading/writing of state information in a straightforward manner, whereby an object can retrieve its own data, or retrieve e.g. the latest available data from another object (e.g. see fieldValueDelta).

  • fieldAverage
  • fieldMinMax
  • forces
  • forceCoeffs

Created new runTimePostProcessing function object

New function object to generate images at run-time, or in 'post-processing' mode via the execFlowFunctionObjects utility

  • Constant DataEntry - added construct from components
  • Set and surface writers updated to enable retrieval of filename of generated output
  • Additional changes to surface writers from internal line:
    • Ensight collate times option
    • Nastran output updated based on user feedback
    • new boundaryData output
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature-functionObjects