1. 29 Oct, 2018 1 commit
  2. 19 Oct, 2018 10 commits
  3. 18 Oct, 2018 1 commit
  4. 17 Oct, 2018 12 commits
  5. 16 Oct, 2018 5 commits
    • Andrew Heather's avatar
      ENH: Added new fieldExtents function object · 11f8957a
      Andrew Heather authored
      Description
          Calculates the spatial minimum and maximum extents of a field
      
          The extents are derived from the bound box limits after identifying
          the locations where field values exceed the user-supplied threshold
          value.
      
      Usage
          Example of function object specification:
      
          fieldExtents1
          {
              type        fieldExtents;
              libs        ("libfieldFunctionObjects.so");
              ...
              writeToFile yes;
              log         yes;
              fields      (alpha);
              threshold   0.5;
              patches     ();
          }
      
          Where the entries comprise:
      
              Property      | Description              | Required   | Default
              type          | type name: fieldExtents  | yes        |
              writeToFile   | write extents data to file | no       | yes
              log           | write extents data to standard output | no | yes
              internalField | Process the internal field | no       | yes
              threshold     | Field value to identify extents boundary | yes |
              referencePosition | Reference position   | no         | (0 0 0)
              fields        | list of fields to process | yes       |
              patches       | list of patches to process | no       | <all>
      
          Output data is written to the file \<timeDir\>/fieldExtents.dat
      
      Note
          For non-scalar fields, the magnitude of the field is employed and
          compared to the threshold value.
      11f8957a
    • Mark Olesen's avatar
      STYLE: use range-for in dictionary internals · bc3f559e
      Mark Olesen authored
      bc3f559e
    • Mark Olesen's avatar
      ENH: support token stream checking to entry (issue #762) · e80be584
      Mark Olesen authored
      - Eg,
          scalar val(-GREAT);
      
          const entry* eptr = dict.findEntry(k);
      
          if (eptr)
          {
              val = eptr.get<scalar>();
      
              // Or
              eptr.readEntry(val);
          }
      e80be584
    • Mark Olesen's avatar
      STYLE: mark compatibility change in motionSolver keyword · 5a88d9cf
      Mark Olesen authored
      - was "solver" in 1612 and "motionSolver" for later versions
      5a88d9cf
    • Mark Olesen's avatar
      STYLE: use explicit dictionary access for dictionaryEntry · 945e802a
      Mark Olesen authored
      - clarifies the meanings of get<T> etc, avoids later ambiguities.
      
      ENH: simplify phaseProperties construction, add input checks
      945e802a
  6. 15 Oct, 2018 5 commits
    • Mark Olesen's avatar
      ENH: make cwd() behaviour user-adjustable (issue #1007) · b7054272
      Mark Olesen authored
      - with the 'cwd' optimization switch it is possible to select the
        preferred behaviour for the cwd() function.
      
        A value of 0 causes cwd() to return the physical directory,
        which is what getcwd() and `pwd -P` return.
        Until now, this was always the standard behaviour.
      
        With a value of 1, cwd() instead returns the logical directory,
        which what $PWD contains and `pwd -L` returns.
        If any of the sanity checks fail (eg, PWD points to something other
        than ".", etc), a warning is emitted and the physical cwd() is
        returned instead.
      
        Apart from the optical difference in the output, this additional
        control helps workaround file systems with whitespace or other
        characters in the directory that normally cause OpenFOAM to balk.
        Using a cleaner symlink elsewhere should skirt this issue.
      
        Eg,
            cd $HOME
            ln -s "/mounted volume/user/workdir"  workdir
            cd workdir
            # start working with OpenFOAM
      b7054272
    • Mark Olesen's avatar
      CONFIG: improve shell env handling of paths with spaces (#1007, #1008) · 0a276866
      Mark Olesen authored
      - foamCleanPath now only splits the environment variable on ':', which
        allows other directories with spaces or '(..)' etc to pass through
        without major issue.
      
      - The filter arguments are split on whitespace, colons or semi-colons.
      0a276866
    • Mark Olesen's avatar
    • Mark Olesen's avatar
      ENH: rationalize dictionary access methods · 489b778b
      Mark Olesen authored
      - use keyType::option enum to consolidate searching options.
        These enumeration names should be more intuitive to use
        and improve code readability.
      
          Eg,   lookupEntry(key, keyType::REGEX);
          vs    lookupEntry(key, false, true);
      
        or
      
          Eg,   lookupEntry(key, keyType::LITERAL_RECURSIVE);
          vs    lookupEntry(key, true, false);
      
      - new findEntry(), findDict(), findScoped() methods with consolidated
        search options for shorter naming and access names more closely
        aligned with other components. Behave simliarly to the
        methods lookupEntryPtr(), subDictPtr(), lookupScopedEntryPtr(),
        respectively. Default search parameters consistent with lookupEntry().
      
          Eg, const entry* e = dict.findEntry(key);
          vs  const entry* e = dict.lookupEntryPtr(key, false, true);
      
      - added '*' and '->' dereference operators to dictionary searchers.
      489b778b
    • Andrew Heather's avatar
      09dcfa45
  7. 12 Oct, 2018 5 commits
  8. 11 Oct, 2018 1 commit