1. 12 Dec, 2019 1 commit
    • Mark Olesen's avatar
      CONFIG: prefer use of ParaView_MESA_DIR in runTimePostProcessing · e3d971dd
      Mark Olesen authored
      - when using VTK from ParaView sources it can better to tag them as
        such, but simultaneously not mask the ParaView with hardware
        The additional ParaView_MESA_DIR variable allows this.
        The balance of library and path setup is unaffected by this.
      STYLE: cleanup of Allwclean, Allwmake
      CONFIG: remove local version of cmakeVersionedInstall
  2. 11 Nov, 2019 2 commits
    • Mark Olesen's avatar
      ENH: rationalize some string methods. · 06f08f74
      Mark Olesen authored
      - silently deprecate 'startsWith', 'endsWith' methods
        (added in 2016: 2b1436066221), in favour of
        'starts_with', 'ends_with' methods, corresponding to C++20 and
        allowing us to cull then in a few years.
      - handle single character versions of starts_with, ends_with.
      - add single character version of removeEnd and silently deprecate
        removeTrailing which did the same thing.
      - drop the const versions of removeRepeated, removeTrailing.
        Unused and with potential confusion.
      STYLE: use shrink_to_fit(), erase()
    • Mark Olesen's avatar
      COMP: adjust common paraview library name to vtkPVFoamCommon · d1591319
      Mark Olesen authored
      - similar prefixing as the dependent readers, making it easier to
      - add FOAM_API information as server module version
  3. 06 Nov, 2019 1 commit
  4. 05 Nov, 2019 1 commit
  5. 04 Nov, 2019 1 commit
  6. 01 Nov, 2019 1 commit
  7. 31 Oct, 2019 1 commit
  8. 04 Oct, 2019 1 commit
    • Mark Olesen's avatar
      CONFIG: adjustments for CMake files · 7eb1ef75
      Mark Olesen authored
      - drop plugin support for Qt4 (old paraview)
      - handle upcoming changes in VTK version naming in CMake files
  9. 02 Aug, 2019 1 commit
    • Mark Olesen's avatar
      ENH: rationalize cloud method inheritance · 382f1da1
      Mark Olesen authored
      - a top-level cloud::nParcels() virtual, which is overloaded by the
        first level of Cloud inheritance. This permits quick determination of
        cloud sizes, even when retrieved from registry with the base level.
            cloud* cldPtr = mesh.cfindObject<cloud>("myCloud");
            label nParcels = (cldPtr ? cldPtr->nParcels() : 0);
      - make writeLagrangianPositions on by default unless explicitly
        disabled in the InfoSwitches.
        Flag output errors (where neither coordinates nor positions are
        written) with Fatal.
      - additional IOField helper functions in cloud
      STYLE: simplify iterator inheritance
  10. 12 Jul, 2019 1 commit
  11. 27 Jun, 2019 1 commit
  12. 25 Jun, 2019 1 commit
  13. 14 Jun, 2019 1 commit
  14. 05 Jun, 2019 1 commit
  15. 03 Jun, 2019 1 commit
  16. 31 May, 2019 1 commit
  17. 11 Mar, 2019 1 commit
  18. 13 Feb, 2019 1 commit
    • Mark Olesen's avatar
      ENH: extended runTimePostProcessing (#1206) · ee4c3cb7
      Mark Olesen authored
      - Extended runTimePostProcessing to include access to "live"
        simulation objects such a geometry patches and sampled surfaces
        stored on the "functionObjectObjects" registry.
      - Add 'live' runTimePostProcessing of cloud data.
        Extracts position and fields from the cloud via its objectRegistry writer
      - For the "live" simulation objects, there are two new volume filters
        that work directly with the OpenFOAM volume fields:
            * iso-surface
            * cutting planes
        Both use the VTK algorithms directly and support multiple values.
        Eg, can make multiple iso-levels or multiple planes parallel to each
      - When VTK has been compiled with MPI-support, parallel rendering will
        be used.
      - Additional title text properties (shadow, italic etc)
      - Simplified handling of scalar-bar and visibility switches
      - Support multiple text positions. Eg, for adding watermark text.
  19. 06 Feb, 2019 1 commit
  20. 03 Feb, 2019 1 commit
  21. 31 Jan, 2019 1 commit
  22. 23 Jan, 2019 1 commit
  23. 07 Jan, 2019 3 commits
  24. 30 May, 2019 1 commit
  25. 16 Dec, 2018 2 commits
  26. 15 Dec, 2018 1 commit
  27. 14 Dec, 2018 1 commit
    • Mark Olesen's avatar
      ENH: make "file" property in functionObjects a relative path (issue #1125) · 3fd38fce
      Mark Olesen authored
      - partial solution for issue #1091
        This generates file properties that are case-relative,
                    file "<case>/postProcessing/plane0/1/p_plane0.vtk";
                    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
  28. 11 Dec, 2018 1 commit
    • Mark Olesen's avatar
      ENH: use Zero when zero-initializing types · 3d4e4a21
      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)
  29. 05 Dec, 2018 2 commits
  30. 29 Nov, 2018 1 commit
    • Mark Olesen's avatar
      ENH: improve setup for paraview · f88b74a0
      Mark Olesen authored
      - removed reliance on ParaView_INCLUDE_DIR variable for conveying the
        major.minor version information when compiling. This can be somewhat
        fragile and also adds variable that is an unnecessary when running
        (only used when compiling).
        Instead use `have_pvplugin_support` function in paraviewFunctions
        wmake script to determine the maj.min from the PV_PLUGIN_PATH
        since we have already defined the output path there with paraview
        maj.min numbering.
        Can now build with paraview from the operating system,
        provided that it has develop headers available.
        In the etc/config.sh/paraview setup, the maj.min is taken from
        the corresponding `paraview --version` output and used when
        defining the PV_PLUGIN_PATH.
        During the build, the include path taken from `paraview-config`
        for a system installation, from the guess installation root
        of the paraview binary, or ParaView_DIR otherwise.
      NB: using a system ParaView for building runTimePostProcessing is unsupported.
      - these types of builds appear to have various library resolution issues
        (eg, libexpat not being loaded). Additionally, the build logic does
        not yet cover this type of use case.
      CONFIG: add so version to libcatalystFoam
      STYLE: add OpenFOAM/include directory in CMakeLists
      - eg for foamVersion.H
  31. 20 Nov, 2018 1 commit
  32. 08 Nov, 2018 1 commit
  33. 19 Oct, 2018 1 commit
    • Mark Olesen's avatar
      STYLE: use range-for when looping dictionary entries. · 5527b00b
      Mark Olesen authored
      - as part of the cleanup of dictionary access methods (c6520033c9c4)
        made the dictionary class single inheritance from IDLList<entry>.
        This eliminates any ambiguities for iterators and allows
        for simple use of range-for looping.
            for (const entry& e : topDict))
                Info<< "entry:" << e.keyword() << " is dict:" << e.isDict() << nl;
            forAllConstIter(dictionary, topDict, iter))
                Info<< "entry:" << iter().keyword()
                    << " is dict:" << iter().isDict() << nl;
  34. 18 Oct, 2018 1 commit
    • Mark Olesen's avatar
      ENH: cleanup of Enum class · 73116c4f
      Mark Olesen authored
      - more dictionary-like methods, enforce keyType::LITERAL for all
        lookups to avoid any spurious keyword matching.
      - new readEntry, readIfPresent methods
      - The get() method replaces the now deprecate lookup() method.
      - Deprecate lookupOrFailsafe()
        Failsafe behaviour is now an optional parameter for lookupOrDefault,
        which makes it easier to tailor behaviour at runtime.
      - output of the names is now always flatted without line-breaks.
           os << flatOutput(someEnumNames.names()) << nl;
           os << someEnumNames << nl;
        both generate the same output.
      - Constructor now uses C-string (const char*) directly instead of
        Foam::word in its initializer_list.
      - Remove special enum + initializer_list constructor form since
        it can create unbounded lookup indices.
      - Removd old hasEnum, hasName forms that were provided during initial
        transition from NamedEnum.
      - Added static_assert on Enum contents to restrict to enum or
        integral values.  Should not likely be using this class to enumerate
        other things since it internally uses an 'int' for its values.
        Changed volumeType accordingly to enumerate on its type (enum),
        not the class itself.
  35. 05 Oct, 2018 1 commit