1. 20 Oct, 2017 1 commit
  2. 29 Sep, 2017 1 commit
    • Mark OLESEN's avatar
      ENH: adjust infoSwitch to report host subscription (related to #531) · 5873cacc
      Mark OLESEN authored
      - this compact form shows the subscription per host in the unsorted
        mpi order
      
            nProcs : 18
            Hosts  :
            (
                (node1 6)
                (node2 8)
                (node3 4)
            )
      
        This provides a succinct overview of which hosts have been
        subscribed or oversubscribed.
      
      - The longer list of "slave.pid" ... remains available on the
        InfoSwitch 'writeHosts'
      5873cacc
  3. 22 Sep, 2017 9 commits
    • Mark OLESEN's avatar
      STYLE: minor cleanup after merge · 4996ac85
      Mark OLESEN authored
      4996ac85
    • Mark OLESEN's avatar
      ENH: improve input stringency for argList options · 13f04876
      Mark OLESEN authored
      Previously:
      
        - bad command-line input such as -label 1234xyz would parse as a
          label (with value 1234) and the trailing junk would be silently
          ignored. This may or may not be appropriate. If the trailing junk
          looked like this '100E' or '1000E-' (ie, forgot to type the
          exponent), the incorrectly parsed values can be quite bad:
      
              label  = 32684
              scalar = 6.93556e-310
      
      Now:
      
        - use the updated readLabel/readScalar routines that trigger a
          FatalIOError on bad input:
      
              --> FOAM FATAL IO ERROR:
              Trailing content found parsing '1234xyz'
      
              --> FOAM FATAL IO ERROR:
              Trailing content found parsing '100E'
      
         This traps erroneous command-line input immediately.
      13f04876
    • Henry Weller's avatar
      fileOperation: Corrected processor counting for moving mesh cases · 18874f00
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      18874f00
    • Henry Weller's avatar
      argList: addition of fileHandler option moved to argList.C · a0692de3
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      Patch contributed by Timo Niemi, VTT.
      Resolves bug-report https://bugs.openfoam.org/view.php?id=2645
      a0692de3
    • mattijs's avatar
      BUG: argList: disable checking for exact path; rely on fileHandler instead · c6954f09
      mattijs authored and Andrew Heather's avatar Andrew Heather committed
      c6954f09
    • Andrew Heather's avatar
    • Andrew Heather's avatar
      INT: Integration of Mattijs' collocated parallel IO additions · 85f12ff5
      Andrew Heather authored
      Original commit message:
      ------------------------
      
      Parallel IO: New collated file format
      
      When an OpenFOAM simulation runs in parallel, the data for decomposed fields and
      mesh(es) has historically been stored in multiple files within separate
      directories for each processor.  Processor directories are named 'processorN',
      where N is the processor number.
      
      This commit introduces an alternative "collated" file format where the data for
      each decomposed field (and mesh) is collated into a single file, which is
      written and read on the master processor.  The files are stored in a single
      directory named 'processors'.
      
      The new format produces significantly fewer files - one per field, instead of N
      per field.  For large parallel cases, this avoids the restriction on the number
      of open files imposed by the operating system limits.
      
      The file writing can be threaded allowing the simulation to continue running
      while the data is being written to file.  NFS (Network File System) is not
      needed when using the the collated format and additionally, there is an option
      to run without NFS with the original uncollated approach, known as
      "masterUncollated".
      
      The controls for the file handling are in the OptimisationSwitches of
      etc/controlDict:
      
      OptimisationSwitches
      {
          ...
      
          //- Parallel IO file handler
          //  uncollated (default), collated or masterUncollated
          fileHandler uncollated;
      
          //- collated: thread buffer size for queued file writes.
          //  If set to 0 or not sufficient for the file size threading is not used.
          //  Default: 2e9
          maxThreadFileBufferSize 2e9;
      
          //- masterUncollated: non-blocking buffer size.
          //  If the file exceeds this buffer size scheduled transfer is used.
          //  Default: 2e9
          maxMasterFileBufferSize 2e9;
      }
      
      When using the collated file handling, memory is allocated for the data in the
      thread.  maxThreadFileBufferSize sets the maximum size of memory in bytes that
      is allocated.  If the data exceeds this size, the write does not use threading.
      
      When using the masterUncollated file handling, non-blocking MPI communication
      requires a sufficiently large memory buffer on the master node.
      maxMasterFileBufferSize sets the maximum size in bytes of the buffer.  If the
      data exceeds this size, the system uses scheduled communication.
      
      The installation defaults for the fileHandler choice, maxThreadFileBufferSize
      and maxMasterFileBufferSize (set in etc/controlDict) can be over-ridden within
      the case controlDict file, like other parameters.  Additionally the fileHandler
      can be set by:
      - the "-fileHandler" command line argument;
      - a FOAM_FILEHANDLER environment variable.
      
      A foamFormatConvert utility allows users to convert files between the collated
      and uncollated formats, e.g.
          mpirun -np 2 foamFormatConvert -parallel -fileHandler uncollated
      
      An example case demonstrating the file handling methods is provided in:
      $FOAM_TUTORIALS/IO/fileHandling
      
      The work was undertaken by Mattijs Janssens, in collaboration with Henry Weller.
      85f12ff5
    • Henry Weller's avatar
      listSwitches: moved from argList to debug · beced267
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      Initially the listSwitches functions depended directly on argList functionality
      but this has now been factored out so that the listSwitches functions are more
      general and require only debug functionality.
      beced267
    • Henry Weller's avatar
      Replace foamList utility with -list.* options · 1ed938ab
      Henry Weller authored and Andrew Heather's avatar Andrew Heather committed
      Provides better context for the available boundary conditions, fvOptions,
      functionObjects etc. and thus returns only those available to and compatible
      with the particular application.
      
      e.g.
      
      pimpleFoam -help
      
      Usage: pimpleFoam [OPTIONS]
      options:
        -case <dir>       specify alternate case directory, default is the cwd
        -listFunctionObjects
                          List functionObjects
        -listFvOptions    List fvOptions
        -listRegisteredSwitches
                          List switches registered for run-time modification
        -listScalarBCs    List scalar field boundary conditions (fvPatchField<scalar>)
        -listSwitches     List switches declared in libraries but not set in
                          etc/controlDict
        -listTurbulenceModels
                          List turbulenceModels
        -listUnsetSwitches
                          List switches declared in libraries but not set in
                          etc/controlDict
        -listVectorBCs    List vector field boundary conditions (fvPatchField<vector>)
        -noFunctionObjects
                          do not execute functionObjects
        -parallel         run in parallel
        -postProcess      Execute functionObjects only
        -roots <(dir1 .. dirN)>
                          slave root directories for distributed running
        -srcDoc           display source code in browser
        -doc              display application documentation in browser
        -help             print the usage
      
      pimpleFoam listTurbulenceModels
      
      pimpleFoam -listTurbulenceModels
      /*---------------------------------------------------------------------------*\
      | =========                 |                                                 |
      | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
      |  \\    /   O peration     | Version:  dev                                   |
      |   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
      |    \\/     M anipulation  |                                                 |
      \*---------------------------------------------------------------------------*/
      Build  : dev-39c46019
      Exec   : pimpleFoam -listTurbulenceModels
      Date   : Jun 10 2017
      Time   : 21:37:49
      Host   : "dm"
      PID    : 675
      Case   : /home/dm2/henry/OpenFOAM/OpenFOAM-dev
      nProcs : 1
      sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
      SetNaN : Initialising allocated memory to NaN (FOAM_SETNAN).
      fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
      allowSystemOperations : Allowing user-supplied system call operations
      
      // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
      Turbulence models
      3
      (
      LES
      RAS
      laminar
      )
      
      RAS models
      18
      (
      LRR
      LamBremhorstKE
      LaunderSharmaKE
      LienCubicKE
      LienLeschziner
      RNGkEpsilon
      SSG
      ShihQuadraticKE
      SpalartAllmaras
      kEpsilon
      kOmega
      kOmegaSST
      kOmegaSSTLM
      kOmegaSSTSAS
      kkLOmega
      qZeta
      realizableKE
      v2f
      )
      
      LES models
      10
      (
      DeardorffDiffStress
      Smagorinsky
      SpalartAllmarasDDES
      SpalartAllmarasDES
      SpalartAllmarasIDDES
      WALE
      dynamicKEqn
      dynamicLagrangian
      kEqn
      kOmegaSSTDES
      )
      
      Further work will be needed to support the -listTurbulenceModels option in
      multiphase solvers.
      1ed938ab
  4. 31 Jul, 2017 1 commit
  5. 18 Jul, 2017 1 commit
    • Mark OLESEN's avatar
      ENH: make treatment of stream allocators more uniform (issue #532) · c12ca2b3
      Mark OLESEN authored
      - use allocator class to wrap the stream pointers instead of passing
        them into ISstream, OSstream and using a dynamic cast to delete
        then. This is especially important if we will have a bidirectional
        stream (can't delete twice!).
      
      STYLE:
      
      - file stream constructors with std::string (C++11)
      
      - for rewind, explicit about in|out direction. This is not currently
        important, but avoids surprises with any future bidirectional access.
      
      - combined string streams in StringStream.H header.
        Similar to <sstream> include that has both input and output string
        streams.
      c12ca2b3
  6. 14 Jul, 2017 2 commits
  7. 06 Jul, 2017 3 commits
  8. 29 Jun, 2017 1 commit
  9. 28 Jun, 2017 1 commit
  10. 02 Jun, 2017 1 commit
  11. 01 Jun, 2017 2 commits
  12. 31 May, 2017 1 commit
  13. 30 May, 2017 1 commit
  14. 25 May, 2017 1 commit
  15. 25 Apr, 2017 1 commit
  16. 19 Apr, 2017 4 commits
  17. 07 Apr, 2017 1 commit
  18. 06 Apr, 2017 1 commit
  19. 03 Apr, 2017 1 commit
    • mark's avatar
      ENH: default jobControl now under the '~/.OpenFOAM/jobControl' directory · aa5e5c29
      mark authored
      - this implies that jobControl is a user-resource for OpenFOAM.
        It was previously located under $WM_PROJECT_INST_DIR/jobControl,
        but few users will have write access there.
      
      - an unset FOAM_JOB_DIR variable is treated as "~/.OpenFOAM/jobControl",
        which can partially reduce environment clutter.
      
      - provide argList::noJobInfo() to conveniently suppress job-info on an
        individual basis for short-running utilities (eg, foamListTimes) to
        avoid unneeded clutter.
      aa5e5c29
  20. 31 Mar, 2017 1 commit
    • mark's avatar
      ENH: various general improvments to the POSIX functions · 3a4038b2
      mark authored
      - ensure proper and sensible handling of empty names.
        Eg, isDir(""), isFile("") are no-ops, and avoid file-stat
      
      - rmDir:
        * optional 'silent' option to suppress messages.
        * removes all possible sub-entries, instead of just giving up on
          the first problem encountered.
      
      - reduced code duplication in etcFiles
      
      ENH: provide WM_USER_RESOURCE_DIRNAME define (in foamVersion.H)
      
      - this is still a hard-coded value, but at least centrally available
      3a4038b2
  21. 21 Mar, 2017 1 commit
  22. 10 Mar, 2017 2 commits
  23. 21 Feb, 2017 1 commit
  24. 20 Dec, 2016 1 commit