1. 25 Jan, 2017 2 commits
    • Mark Olesen's avatar
      ENH: additional methods/operators for boundBox (related to #196) · 722d23f5
      Mark Olesen authored
      - Constructor for bounding box of a single point.
      
      - add(boundBox), add(point) ...
        -> Extend box to enclose the second box or point(s).
      
        Eg,
            bb.add(pt);
        vs.
            bb.min() = Foam::min(bb.min(), pt);
            bb.max() = Foam::max(bb.max(), pt);
      
      Also works with other bounding boxes.
        Eg,
            bb.add(bb2);
            // OR
            bb += bb2;
        vs.
            bb.min() = Foam::min(bb.min(), bb2.min());
            bb.max() = Foam::max(bb.max(), bb2.max());
      
      '+=' operator allows the reduction to be used in parallel
      gather/scatter operations.
      
      A global '+' operator is not currently needed.
      
      Note: may be useful in the future to have a 'clear()' method
      that resets to a zero-sized (inverted) box.
      
      STYLE: make many bounding box constructors explicit
      722d23f5
    • Mark Olesen's avatar
      ENH: boundBox 'reduce' method (related to #196) · 17d76e62
      Mark Olesen authored
      reduce()
      - parallel reduction of min/max values.
        Reduces coding for the callers.
      
        Eg,
            bb.reduce();
      
        instead of the previous method:
            reduce(bb.min(), minOp<point>());
            reduce(bb.max(), maxOp<point>());
      
      STYLE:
      
      - use initializer list for creating static content
      - use point::min/point::max when defining standard boxes
      17d76e62
  2. 03 Feb, 2017 1 commit
  3. 26 Jan, 2017 2 commits
  4. 25 Jan, 2017 3 commits
  5. 23 Jan, 2017 1 commit
  6. 12 Jan, 2017 2 commits
    • Mark Olesen's avatar
      ENH: avoid deprecated paraview method SetImmediateUpdate() · f47e8513
      Mark Olesen authored
      - add support for patch names in block mesh reader.
      f47e8513
    • Mark Olesen's avatar
      ENH: refactor paraview readers code to avoid duplication · ecb80a2e
      Mark Olesen authored
      - as originally intended years ago, but never actually done.
      
      - use 'foamPvCore' instead of 'vtkPVReaders' to avoid potential name
        collisions with any 'vtk*' files and since we may reuse these
        functions in other foam-paraview modules (not just readers).
      
      STYLE: use same font size/colour for patch-names as for point-numbers
      
      BUG: repair issue with single time-step
      
      - paraview time-selector returns '0' as the requested time if there is
        only one time step. However, if we have skipped the 0/ directory,
        this single time step is likely a non-zero value.
      ecb80a2e
  7. 05 Jan, 2017 2 commits
    • Mark Olesen's avatar
      ENH: add versioning to paraview plugin support libraries (issue #370) · 7a90f5e6
      Mark Olesen authored
      - use "-pvMAJ.MIN" suffix for similarity with the paraview convention
      
      - use sentinel file to ensure clean change of intermediate targets
      
      - ensure all library files are being properly removed
      7a90f5e6
    • Mark Olesen's avatar
      ENH: update QT interface code for ParaView reader (issue #337) · 2c96ec75
      Mark Olesen authored
      - remove old (ParaView-3) files
      
      - Works in 4.4.0, 5.0.1, 5.2.0 etc
      
      STYLE:
      - slots now use SM properties directly without a second lookup.
        This reduces exposure of the QT elements and simplifies the coding.
      
      - avoid focus borders on the Qt elements
      
      - place the "use Polyhedron" checkbox into a column
      
      - move "Cache Mesh" down in the GUI (an advanced feature and thus
        should be less prominent)
      
      - obtain button labels/tooltip directly from the XML content
      2c96ec75
  8. 04 Jan, 2017 2 commits
  9. 17 Jan, 2017 3 commits
  10. 16 Jan, 2017 1 commit
  11. 24 Jan, 2017 1 commit
  12. 23 Jan, 2017 1 commit
  13. 20 Jan, 2017 1 commit
  14. 18 Jan, 2017 1 commit
  15. 23 Jan, 2017 1 commit
  16. 19 Jan, 2017 2 commits
  17. 17 Jan, 2017 2 commits
  18. 12 Jan, 2017 1 commit
    • Mark Olesen's avatar
      ENH: command-line query for the OPENFOAM_PLUS wmake value (issue #378) · 23d24a51
      Mark Olesen authored
      Examples,
      
          wmakePrintBuild -plus
      
      Check if value is known
      (ie, everything configured and also OpenFOAM+):
      
          if wmakePrintBuild -plus >/dev/null 2>&1
          then
              echo YES
          else
              echo NO
          fi
      
      Check if version is new enough
      
          if ofver=$(wmakePrintBuild -plus 2>/dev/null) && [ "$ofver" -ge 1612 ]
          then
              echo YES
          else
              echo NO
          fi
      
      Conditionals
      
          ofver=$(wmakePrintBuild -plus 2>/dev/null)
          case "${ofver:=0}" in
          1612)
              echo "something for 1612
              ;;
          1706)
              echo "something for 1706
              ;;
          esac
      23d24a51
  19. 11 Jan, 2017 3 commits
  20. 10 Jan, 2017 3 commits
  21. 06 Jan, 2017 1 commit
  22. 04 Jan, 2017 4 commits