1. 04 Jun, 2020 1 commit
    • Mark Olesen's avatar
      ENH: refactor vtk::internalWriter, vtk::patchWriter · 11ff01f4
      Mark Olesen authored
      - new vtk::internalMeshWriter, vtk::patchMeshWriter
        intermediate classes without finiteVolume dependencies.
      
        Enables direct use with a polyMesh.
        Makes vtk::internalWriter, vtk::patchWriter header/template only.
      11ff01f4
  2. 04 May, 2020 1 commit
  3. 23 Dec, 2019 1 commit
  4. 31 Oct, 2019 1 commit
  5. 11 Apr, 2019 1 commit
    • Mark Olesen's avatar
      ENH: generalize indirect lists and support new types · 765493b6
      Mark Olesen authored
      - use an IndirectListBase class for various indirect list types.
      
      - new SortList type
      
        In some places the SortList can be used as a lightweight alternative
        to SortableList to have the convenience of bundling data and sort
        indices together, but while operating on existing data lists.
        In other situations, it can be useful as an alternative to
        sortedOrder.  For example,
      
              pointField points = ...;
      
              labelList order;
              sortedOrder(points, order);
      
              forAll(order, i)
              {
                  points[order[i]] = ...;
              }
      
         Can be replaced with the following (with the same memory overhead)
      
              pointField points = ...;
      
              SortList<point> sortedPoints(points);
      
              for (point& pt : sortedPoints)
              {
                  pt = ...;
              }
      
      - new SliceList type (#1220), which can be used for stride-based
        addressing into existing lists
      765493b6
  6. 19 Mar, 2019 1 commit
  7. 23 Jan, 2019 1 commit
  8. 10 Jan, 2019 1 commit
  9. 02 Jan, 2019 1 commit
  10. 05 Dec, 2018 1 commit
    • Mark Olesen's avatar
      BUG: unguarded use of globalIndex in vtk writers (fixes #1110) · e3e0e055
      Mark Olesen authored
      - the problem occurred when running the writers in a parallel solver
        or utility but requesting output on the master only.
      
        Adjusted the logic to avoid globalIndex for these cases.
        Previously the if (parallel_) checks were happening later, after the
        globalIndex had already been created.
      e3e0e055
  11. 16 Oct, 2018 1 commit
  12. 17 Sep, 2018 2 commits
    • Mark Olesen's avatar
      ENH: parallel and xml output for vtk topoSet writers (issue #926) · 0d2dbaf6
      Mark Olesen authored
      - introduce lower-level vtk::indirectPatchWriter class
      0d2dbaf6
    • Mark Olesen's avatar
      ENH: improvements for foamVtkOutput, foamVtkFormatter (issue #926) · 05427217
      Mark Olesen authored
      - parallel list output for foamVtkOutput
      
      - simplified '.series' file output
      
      - beginDataArray() method instead of openDataArray() + closeTag()
        since this seems to be the most common use anyhow.
        With an optional argument for leaving the tag open, this works the
        same as openDataArray() which may be deprecated in the future.
      
      - begin/end methods for CellData, PointData, FieldData (commonly used)
      
      - templating parameters for file headers, content version,
        legacy fields. This improves coding robustness and convenience of use.
      
      - use formatter and higher-level methods for legacy output
      
      - attribute quoting character now part of the formatter itself
        instead of as an argument for xmlAttr().
        Toggle with quoting() method.
      
      - pair-wise processing of xml attributes, which also allows them to be
        passed as optional entries when creating an xml tag.
      
      - xmlComment with multiple arguments
      05427217
  13. 06 Jul, 2018 1 commit
  14. 06 Oct, 2017 1 commit
  15. 10 Aug, 2017 1 commit
  16. 17 Jul, 2017 1 commit
    • Mark Olesen's avatar
      ENH: make treatment of stream allocators more uniform (issue #532) · 86ef9e86
      Mark Olesen authored
      - use allocator class to wrap the stream pointers instead of passing
        them into ISstream, OSstream and using a dynamic cast to delete
        then. This is especially important if we will have a bidirectional
        stream (can't delete twice!).
      
      STYLE:
      
      - file stream constructors with std::string (C++11)
      
      - for rewind, explicit about in|out direction. This is not currently
        important, but avoids surprises with any future bidirectional access.
      
      - combined string streams in StringStream.H header.
        Similar to <sstream> include that has both input and output string
        streams.
      86ef9e86
  17. 13 Jun, 2017 1 commit
  18. 01 Jun, 2017 1 commit
    • Mark Olesen's avatar
      ENH: add VTP, VTU output for most vtk writers (insitu only) · a2e978d4
      Mark Olesen authored
      - with the xml append format it is possible to write raw binary
        (instead of base64), but the writer becomes more complicated.
        Either needs two passes to create, or need to allocate a block
        of space for the header information (like VTK itself does) and
        write later.
      
          * internalWriter
          * patchWriter
          * surfaceMeshWriter
          * lagrangianWriter
      
       Also these special purpose ones:
          * foamVtkWriteSurfFields
      a2e978d4
  19. 31 May, 2017 1 commit
    • Mark Olesen's avatar
      ENH: construct VTK writers with the outputOptions and adjust internally · c4f13494
      Mark Olesen authored
      - this shifts responsibility away from caller to the individual writers
        for knowing which file formats are supported and which file ending is
        appropriate. When the writer receives the output format request,
        it can elect to downgrade or otherwise adjust it to what it can
        actually manage (eg, legacy vs xml vs xml-append).
      
        But currently still just with legacy format backends.
      c4f13494
  20. 19 May, 2017 1 commit