1. 20 Jan, 2020 1 commit
  2. 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
        rendering.
      
        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
      e3d971dd
  3. 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()
      06f08f74
    • 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
        identify
      
      - add FOAM_API information as server module version
      d1591319
  4. 06 Nov, 2019 1 commit
  5. 05 Nov, 2019 1 commit
  6. 04 Nov, 2019 1 commit
  7. 01 Nov, 2019 1 commit
  8. 31 Oct, 2019 1 commit
  9. 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
        * VTK_MAJOR_VERSION becomes VTK_VERSION_MAJOR etc.
      7eb1ef75
  10. 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.
        Eg,
            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
      382f1da1
  11. 12 Jul, 2019 1 commit
  12. 27 Jun, 2019 1 commit
  13. 25 Jun, 2019 1 commit
  14. 14 Jun, 2019 1 commit
  15. 05 Jun, 2019 1 commit
  16. 03 Jun, 2019 1 commit
  17. 31 May, 2019 1 commit
  18. 11 Mar, 2019 1 commit
  19. 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
        other.
      
      - 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.
      ee4c3cb7
  20. 06 Feb, 2019 1 commit
  21. 03 Feb, 2019 1 commit
  22. 31 Jan, 2019 1 commit
  23. 23 Jan, 2019 1 commit
  24. 07 Jan, 2019 3 commits
  25. 30 May, 2019 1 commit
  26. 16 Dec, 2018 2 commits
  27. 15 Dec, 2018 1 commit
  28. 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,
        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
      3fd38fce
  29. 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)
      3d4e4a21
  30. 05 Dec, 2018 2 commits
  31. 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.
      
            ParaView_VERSION=system
      
        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
      f88b74a0
  32. 20 Nov, 2018 1 commit
  33. 08 Nov, 2018 1 commit
  34. 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.
      
        Eg,
            for (const entry& e : topDict))
            {
                Info<< "entry:" << e.keyword() << " is dict:" << e.isDict() << nl;
            }
      
         vs
      
            forAllConstIter(dictionary, topDict, iter))
            {
                Info<< "entry:" << iter().keyword()
                    << " is dict:" << iter().isDict() << nl;
            }
      5527b00b
  35. 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.
        Thus,
      
           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.
      73116c4f