Skip to content
Snippets Groups Projects
  1. Nov 22, 2017
  2. Nov 19, 2017
  3. Nov 18, 2017
    • Mark OLESEN's avatar
      ENH: enumerations for known cell models in cellModel, ptr/ref lookups · 8730a762
      Mark OLESEN authored
      - this provides a better typesafe means of locating predefined cell
        models than relying on strings. The lookup is now ptr() or ref()
        directly. The lookup functions behave like on-demand singletons when
        loading "etc/cellModels".
      
        Functionality is now located entirely in cellModel but a forwarding
        version of cellModeller is provided for API (but not ABI) compatibility
        with older existing user code.
      
      STYLE: use constexpr for cellMatcher constants
      8730a762
  4. Sep 15, 2017
  5. Sep 18, 2017
    • Mark OLESEN's avatar
      ENH: improve consistency in parsing primitives from strings (issue #590) · accebc74
      Mark OLESEN authored
      - Any trailing whitespace when parsing from strings or character buffers
        is ignored rather than being treated as an error. This is consistent
        with behaviour when reading from an Istream and with leading whitespace
        being ignored in the underlying atof/atod, strtof/strtod... functions.
      
      - Allow parsing directly from a std::string instead of just from a 'char*'.
        This reflects the C++11 addition of std::stod to complement the C
        functions strtod. This also makes it easier to parse string directly
        without using an IStringStream.
      
      - Two-parameter parsing methods return success/failure.
        Eg,
      
            if (readInt32(str, &int32Val)) ...
      
      - One-parameter parsing methods return the value on success or
        emit a FatalIOError.
        Eg,
      
            const char* buf;
            int32Val = readInt32(buf, &);
      
      - Improved consistency when parsing unsigned ints.
        Use strtoimax and strtoumax throughout.
      
      - Rename readDoubleScalar -> readDouble, readFloatScalar -> readFloat.
        Using the primitive name directly instead of the Foam typedef for
        better consistency with readInt32 etc.
      
      - Clean/improve parseNasScalar.
        Handle normal numbers directly, reduce some operations.
      accebc74
  6. Sep 15, 2017
  7. Aug 02, 2017
    • Mark OLESEN's avatar
      ENH: consolidate, cleanup some string methods · e70fc616
      Mark OLESEN authored
      - consolidate word::validated() into word::validate() and also allow
        as short form for string::validate<word>(). Also less confusing than
        having similarly named methods that essentially do the same thing.
      
      - more consistent const access when iterating over strings
      
      - add valid(char) for keyType and wordRe
      e70fc616
  8. Jul 20, 2017
  9. Jul 17, 2017
    • 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
  10. Jul 03, 2017
  11. Jun 26, 2017
    • Mark OLESEN's avatar
      COMP: compilation with WM_SP · 80d69c27
      Mark OLESEN authored
      - STLpoint.H
      - isoAdvection.C
      - checkMesh/writeFields.C
      
      STYLE: drop construct STLpoint(Istream&), since it doesn't make much sense
      
      - No use case for reading via an OpenFOAM stream and tokenizer.
        Should always be parsing ASCII or reading binary directly.
      80d69c27
  12. Jun 13, 2017
  13. Jun 12, 2017
  14. 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
  15. 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
  16. May 30, 2017
  17. May 19, 2017
  18. May 18, 2017
  19. May 19, 2017
    • Mark OLESEN's avatar
      ENH: rationalize VTK output classes and structures · c685f70c
      Mark OLESEN authored
      - relocated to dedicated foamVtkOutput namespace. Make it easier to
        obtain a formatter directly without a foamVtkOutput::outputOptions.
        Make the logic clear within outputOptions (avoid previous, cryptic
        bit masking). foamVtkOutput::legacy also becomes a namespace instead
        of a class. Relocate commonly used things into src/fileFormats, leave
        volField-related parts in src/conversion.
      c685f70c
  20. May 08, 2017
  21. Mar 08, 2017
  22. Feb 09, 2017
  23. Jan 25, 2017
  24. Jan 17, 2017
  25. Dec 12, 2016
  26. Nov 29, 2016
  27. Nov 28, 2016
  28. Nov 22, 2016
  29. Nov 13, 2016
  30. Nov 03, 2016
    • Mark Olesen's avatar
      ENH: improved infrastructure for writing VTK content · d2fc2c9e
      Mark Olesen authored
      Note: classes are prefixed with 'foamVtk' instead of 'vtk' to avoid potential
      conflicts with VTK itself.
      
      foamVtkCore
      ~~~~~~~~~~~
      - General very low-level functionality.
      
      foamVtkPTraits
      ~~~~~~~~~~~~~~
      - Traits type of functionality for VTK
      
      foamVtkOutputOptions
      ~~~~~~~~~~~~~~~~~~~~
      - The various format output options as a class that can be passed to
        formatters etc.
      
      foamVtkCells
      ~~~~~~~~~~~~
      - Intended for unifying vtkTopo and PV-Reader code in the future.
      - Handles polyhedron decompose internally etc
      
      foamVtkOutput, foamVtkFormatter
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      - Output helpers.
      - Selector for individual formatters.
        Currently write all scalar data a 'float' (not 'double'). Can
        revisit this in the future.
      d2fc2c9e