1. 28 Jan, 2019 2 commits
  2. 26 Jan, 2019 1 commit
  3. 25 Jan, 2019 3 commits
  4. 24 Jan, 2019 1 commit
  5. 23 Jan, 2019 3 commits
  6. 21 Jan, 2019 2 commits
  7. 18 Jan, 2019 1 commit
  8. 15 Jan, 2019 1 commit
  9. 21 Jan, 2019 2 commits
  10. 16 Jan, 2019 1 commit
    • Mark OLESEN's avatar
      ENH: add simplified gather methods for globalIndex with default communicator · f498d09d
      Mark OLESEN authored
      - when combining lists in processor order this simplifies code and
        reduces memory overhead.
      
        Write this:
          ----
          labelList collected;
      
          const globalIndex sizing(input.size());
          sizing.gather(input, collected);
          ----
      
        OR
      
          ----
          labelList collected;
          globalIndex::gatherOp(input, collected);
          ----
      
        Instead of this:
      
          ----
          labelList collected;
      
          List<labelList> scratch(Pstream::nProcs());
          scratch[Pstream::myProcNo()] = input;
          Pstream::gatherList(scratch);
      
          if (Pstream::master())
          {
              collected = ListListOps::combine<labelList>
              (
                  scratch,
                  accessOp<labelList>()
              );
          }
          scratch.clear();
          ----
      f498d09d
  11. 15 Jan, 2019 1 commit
  12. 11 Jan, 2019 1 commit
  13. 10 Jan, 2019 1 commit
  14. 09 Jan, 2019 1 commit
  15. 03 Jan, 2019 2 commits
    • Mark OLESEN's avatar
      STYLE: avoid flush when dictionary {} closing (issue #1145) · e5963771
      Mark OLESEN authored
      - a holdover from introducing the endBlock() method
      e5963771
    • Mark OLESEN's avatar
      ENH: additional read guards for dimensionedType. input consistency (#762, #1148) · 6a448016
      Mark OLESEN authored
      - provide a lookupOrDefault constructor form, since this is a fairly
        commonly used requirement and simplifies the calling sequence.
      
        Before
      
            dimensionedScalar rhoMax
            (
                dimensionedScalar::lookupOrDefault
                (
                    "rhoMax",
                    pimple.dict(),
                    dimDensity,
                    GREAT
                )
           );
      
        After
      
            dimensionedScalar rhoMax("rhoMax", dimDensity, GREAT, pimple.dict());
      
      - read, readIfPresent methods with alternative lookup names.
      
      - Mark the Istream related constructors with compile-time deprecated
        warnings.
      
      BUG: read, readIfPresent methods not handling optional dimensions (#1148)
      6a448016
  16. 02 Jan, 2019 2 commits
  17. 19 Dec, 2018 2 commits
  18. 18 Dec, 2018 1 commit
    • Andrew Heather's avatar
      ENH: Added new columnAverage function object · 485523ea
      Andrew Heather authored
          Averages columns of cells for layered meshes.
      
          For each patch face, calculates the average value of all cells attached in
          the patch face normal direction, and then pushes the average value back
          to all cells in the column.
      
          Useful for channel-like cases where we want to average fields in the
          spanwise direction.
      
          Example of function object specification:
          columnAverage1
          {
              type        columnAverage;
              libs        ("libfieldFunctionObjects.so");
              ...
              patches     (front side);
              fields      (U p);
          }
      
          Where the entries comprise:
          \table
              Property     | Description               | Required    | Default value
              type         | type name: fieldMinMax    | yes         |
              patches      | list of patches to collapse onto | yes  |
              fields       | list of fields to process | yes         |
          \endtable
      485523ea
  19. 17 Dec, 2018 1 commit
  20. 16 Dec, 2018 2 commits
  21. 15 Dec, 2018 3 commits
    • Mark OLESEN's avatar
      ENH: build dummy runTimePostProcessing if VTK/ParaView are not available · d1caaa05
      Mark OLESEN authored
      - this allows more use of the runTimePostProcessing functionObject
        that will fail more gracefully if the proper version could not be
        built.
      
        The dummy functionObject simply emits a message that it is not available.
      d1caaa05
    • Mark OLESEN's avatar
      ENH: provide argList::envGlobalPath() static method · 9076f5b2
      Mark OLESEN authored
      - this is identical to either of these solutions:
      
           * getEnv("FOAM_CASE")
           * stringOps::expand("<case>")
      
        but with a closer resemblance to argList or Time globalPath(),
        which makes the intent clearer.
        Avoids using raw strings in the caller, which improves compile-time checks.
      
        Used in situations where a class has no derivation path or other
        access to a time registry or command args.
      9076f5b2
    • Mark OLESEN's avatar
      ENH: simplify use of case-relative paths · 455c8ef5
      Mark OLESEN authored
      - provide relativePath() for argList and for Time.
        These are relative to the case globalPath().
        Eg,
      
           Info<< "output: " << runTime.relativePath(outputFile) << nl;
      455c8ef5
  22. 14 Dec, 2018 1 commit
    • Mark OLESEN's avatar
      ENH: make "file" property in functionObjects a relative path (issue #1125) · 2f9c511b
      Mark OLESEN authored
      - partial solution for issue #1091
      
        This generates file properties that are case-relative,
        Eg,
      
            plane0
            {
                p
                {
                    file "<case>/postProcessing/plane0/1/p_plane0.vtk";
                }
                U
                {
                    file "<case>/postProcessing/plane0/1/U_plane0.vtk";
                }
            }
      
         This allows the case to be moved elsewhere and still find its files.
      
         This functionality was previously added for vtkCloud, but now also
         applies to streamLine, sampledSets and sampledSurfaces
      2f9c511b
  23. 11 Dec, 2018 1 commit
    • Mark OLESEN's avatar
      ENH: use Zero when zero-initializing types · 1d85fecf
      Mark OLESEN authored
      - makes the intent clearer and avoids the need for additional
        constructor casting. Eg,
      
            labelList(10, Zero)    vs.  labelList(10, 0)
            scalarField(10, Zero)  vs.  scalarField(10, scalar(0))
            vectorField(10, Zero)  vs.  vectorField(10, vector::zero)
      1d85fecf
  24. 12 Dec, 2018 2 commits
  25. 10 Dec, 2018 1 commit
  26. 09 Dec, 2018 1 commit