Skip to content
Snippets Groups Projects
  1. Dec 03, 2021
  2. Sep 27, 2021
    • Mark OLESEN's avatar
      ENH: robustness and functionality improvements for VTK output · 0454f4a0
      Mark OLESEN authored
      - PstreamBuffers for parallel VTK output.
        - avoids MPI overflows for larger meshes
      
      - new vtk::lineWriter for writing edges
      
      - vtk::fileWriter::writeUniform now also supports processor-specific
        uniform values instead of assuming that they are identical everywhere.
      0454f4a0
  3. May 27, 2021
  4. May 10, 2021
    • Mark OLESEN's avatar
      ENH: introduce intermediate vtk::polyWriter class · 0a78e685
      Mark OLESEN authored
      - reduces code, simplifies creation of new, specialized polyData
        writers.
      
      - new templated vtk::GenericPatchWriter, which adds support for
        writing both uindirectPrimitivePatch + indirectPrimitivePatch types.
      
      - handle geometric fields separately from regular fields with
          * vtk:GenericPatchGeoFieldsWriter
          * vtk:indirectPatchGeoFieldsWriter
          * vtk:uindirectPatchGeoFieldsWriter
      0a78e685
  5. Nov 25, 2020
  6. Sep 28, 2020
    • Mark OLESEN's avatar
      ENH: add UPstream::allProcs() method · e18ff114
      Mark OLESEN authored
      - returns a range of `int` values that can be iterated across.
        For example,
      
            for (const int proci : Pstream::allProcs()) { ... }
      
        instead of
      
            for (label proci = 0; proci < Pstream::nProcs(); ++proci) { ... }
      e18ff114
  7. Jun 04, 2020
    • 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
  8. Oct 31, 2019
  9. Jul 11, 2019
  10. Feb 17, 2019
  11. Jan 14, 2019
  12. Dec 05, 2018
    • 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
  13. Jan 14, 2019
  14. Aug 13, 2018
  15. Sep 17, 2018
    • 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
  16. Jun 13, 2017
  17. Jun 01, 2017
    • 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
  18. May 31, 2017
    • 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
  19. May 22, 2017