1. 12 May, 2021 2 commits
  2. 10 May, 2021 4 commits
    • Mark Olesen's avatar
      ENH: change location of static ensight geometry (#2079) · 4d14c955
      Mark Olesen authored
      Historically the "geometry" for static meshes was placed under
      directly in the EnSight case directory.
      
      Eg,
      
           ensight/ensight.case
           ensight/geometry
           ensight/data/000001
           ensight/data/000002 ...
      
      This generally works ok, but relocating it to a constant data directory
      Eg
           ensight/ensight.case
           ensight/data/constant/geometry
           ensight/data/000001
           ensight/data/000002 ...
      
      Improves handling and avoids potential collisions when adding in
      additional mesh regions
      4d14c955
    • 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
    • Mark Olesen's avatar
      ENH: support 'transform' specification for geometric decomposition · 492d5cb6
      Mark Olesen authored
      - can be used for block-like meshes that are not aligned with the global
        coordinate directions. Alternatively, for general testing purposes.
      
        Example,
      
          method  simple;
          coeffs
          {
              n       ( 2 2 2 );
              transform
              {
                  origin  (-0.15 0.15 0);
                  e1      (1 1 0);
                  e3      (0 0 1);
              }
          }
      492d5cb6
    • Andrew Heather's avatar
  3. 07 May, 2021 4 commits
    • Andrew Heather's avatar
      Merge branch 'feature-allRegions' into 'develop' · ac2dee91
      Andrew Heather authored
      add multi-region handling for checkMesh etc,  centralized the region handling #2072
      
      See merge request !445
      ac2dee91
    • mattijs's avatar
      ENH: checkMesh: -allRegions. See #2072 · 1177dbd1
      mattijs authored
      1177dbd1
    • Mark Olesen's avatar
      ENH: centralized handling of -allRegions, -regions, -region (#2072) · c410edf9
      Mark Olesen authored
      Step 1.
          include "addAllRegionOptions.H"
      
          Adds the -allRegions, -regions and -region options to argList.
      
      Step 2.
          include "getAllRegionOptions.H"
      
          Processes the options with -allRegions selecting everything
          from the regionProperties.
      
          OR use -regions to specify multiple regions (from
             regionProperties), and can also contain regular expressions
      
          OR use the -region option
      
          Specifying a single -regions NAME (not a regular expresssion)
          is the same as -region NAME and doesn't use regionProperties
      
          Creates a `wordList regionNames`
      
      Step 3.
          Do something with the region names.
          Either directly, or quite commonly with the following
      
          include "createNamedMeshes.H"
      
          Creates a `PtrList<fvMesh> meshes`
      
      STYLE: add description to some central include files
      c410edf9
    • Mark Olesen's avatar
      ENH: add maxSize() and maxNonLocalSize() to globalIndex · 86a2ae4f
      Mark Olesen authored
      - useful for establishing and preallocating a max buffer size
        when reading from sub-procs
      86a2ae4f
  4. 06 May, 2021 5 commits
  5. 29 Apr, 2021 1 commit
  6. 27 Apr, 2021 2 commits
  7. 26 Apr, 2021 13 commits
  8. 23 Apr, 2021 4 commits
  9. 22 Apr, 2021 1 commit
    • Sergio Ferraris's avatar
      BUG: Checking sum of multiComponent mixture species · 8878050f
      Sergio Ferraris authored
      Checking for the sum of species mass fraction in multiComponentMixture.
      It can't be zero at the internal field or patches. A fatal error is thrown.
      
      A warning was added if the mixture sum is different from one. In a
      re-start the mass fraction can be slightly unbounded and new
      normalization is required.
      8878050f
  10. 19 Apr, 2021 4 commits
    • Andrew Heather's avatar
      Merge branch 'feature-filename-regex-hashes' into 'develop' · f0035734
      Andrew Heather authored
      consistency improvements for regex and hashes, etc
      
      See merge request !442
      f0035734
    • Mark Olesen's avatar
      ENH: improve dynamicCode consistency · cf906387
      Mark Olesen authored
      - refactor and provision for additional code context
      cf906387
    • Mark Olesen's avatar
      ENH: replace keyType with wordRe for matching selectors. · 2b7b3700
      Mark Olesen authored
      - The keyType is primarily used within dictionary reading, whereas
        wordRe and wordRes are used for selectors in code.
        Unifying on wordRe and wordRes reduces the number matching options.
      2b7b3700
    • Mark Olesen's avatar
      ENH: improve hashing overloads of string-types and HashTable/HashSet · 95cd8ee7
      Mark Olesen authored
      - additional dummy template parameter to assist with supporting
        derived classes. Currently just used for string types, but can be
        extended.
      
      - provide hash specialization for various integer types.
        Removes the need for any forwarding.
      
      - change default hasher for HashSet/HashTable from 'string::hash'
        to `Hash<Key>`. This avoids questionable hashing calls and/or
        avoids compiler resolution problems.
      
        For example,
        HashSet<label>::hasher and labelHashSet::hasher now both properly
        map to Hash<label> whereas previously HashSet<label> would have
        persistently mapped to string::hash, which was incorrect.
      
      - standardize internal hashing functors.
      
        Functor name is 'hasher', as per STL set/map and the OpenFOAM
        HashSet/HashTable definitions.
      
        Older code had a local templated name, which added unnecessary
        clutter and the template parameter was always defaulted.
        For example,
      
            Old:  `FixedList<label, 3>::Hash<>()`
            New:  `FixedList<label, 3>::hasher()`
            Unchanged:  `labelHashSet::hasher()`
      
        Existing `Hash<>` functor namings are still supported,
        but deprecated.
      
      - define hasher and Hash specialization for bitSet and PackedList
      
      - add symmetric hasher for 'face'.
        Starts with lowest vertex value and walks in the direction
        of the next lowest value. This ensures that the hash code is
        independent of face orientation and face rotation.
      
      NB:
        - some of keys for multiphase handling (eg, phasePairKey)
          still use yet another function naming: `hash` and `symmHash`.
          This will be targeted for alignment in the future.
      95cd8ee7