1. 16 Jul, 2020 2 commits
    • Mark OLESEN's avatar
      STYLE: simplify short-circuit involving autoPtr (#1775) · 9af3f85c
      Mark OLESEN authored
      - with '&&' conditions, often better to check for non-null autoPtr
        first (it is cheap)
      
      - check as bool instead of valid() method for cleaner code, especially
        when the wrapped item itself has a valid/empty or good.
        Also when handling multiple checks.
      
        Now
            if (ptr && ptr->valid())
            if (ptr1 || ptr2)
      
        instead
            if (ptr.valid() && ptr->valid())
            if (ptr1.valid() || ptr2.valid())
      9af3f85c
    • Mark OLESEN's avatar
      STYLE: replace uses of autoPtr::empty() with bool check (#1775) · 3baebcb1
      Mark OLESEN authored
      - less clutter using plain tests with the bool operator:
      
            (!ptr)  vs  (ptr.empty())
            (ptr)   vs  (!ptr.empty())
      3baebcb1
  2. 14 Jul, 2020 1 commit
  3. 25 Jun, 2020 1 commit
  4. 24 Jun, 2020 8 commits
  5. 11 Jun, 2020 1 commit
  6. 10 Jun, 2020 1 commit
  7. 08 Jun, 2020 1 commit
  8. 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
  9. 02 Jun, 2020 1 commit
    • Mark OLESEN's avatar
      ENH: unify use of dictionary method names · 3e43edf0
      Mark OLESEN authored
      - previously introduced `getOrDefault` as a dictionary _get_ method,
        now complete the transition and use it everywhere instead of
        `lookupOrDefault`. This avoids mixed usage of the two methods that
        are identical in behaviour, makes for shorter names, and promotes
        the distinction between "lookup" access (ie, return a token stream,
        locate and return an entry) and "get" access (ie, the above with
        conversion to concrete types such as scalar, label etc).
      3e43edf0
  10. 23 May, 2020 1 commit
  11. 20 May, 2020 1 commit
  12. 16 May, 2020 1 commit
  13. 13 May, 2020 1 commit
  14. 04 May, 2020 1 commit
  15. 01 May, 2020 1 commit
  16. 30 Apr, 2020 2 commits
  17. 29 Apr, 2020 1 commit
    • Kutalmış Berçin's avatar
      ENH: add directionalMeshWave functionality · ea16cb4b
      Kutalmış Berçin authored
        For a given point within a given mesh, the existing `meshWave` method gives
        the orthogonal distance to a patch. In meshes with very steep terrain (e.g.
        a hill of 90 [deg], this might be problematic for the fields that require
        the distance to the patch associated with the terrain surface.
      
        `directionalMeshWave` is a variant of `meshWave` distance-to-patch method,
        which ignores the component in the specified direction. Can be used e.g. to
        calculate the distance in the z-direction only.
      
        TUT: add example of directionalMeshWave to mesh/moveDynamicMesh/SnakeCanyon
      
        Requirement by CENER
        Implementation by Mattijs Janssens
      ea16cb4b
  18. 28 Apr, 2020 4 commits
  19. 27 Apr, 2020 1 commit
  20. 24 Apr, 2020 1 commit
  21. 20 Apr, 2020 1 commit
  22. 15 Apr, 2020 1 commit
  23. 03 Apr, 2020 1 commit
    • Mark OLESEN's avatar
      ENH: support independent specification of surface read/write format (#1600) · 560c053b
      Mark OLESEN authored
      - adjustments to internal handling to improve run-time addition of
        other formats (eg, with additional user library)
      
        For example, to write a binary STL with a '.stl' extension:
      
          $ surfaceMeshConvert input.obj  -write-format stlb  output.stl
      
        Or in a sampler,
        to specify the input type without ambiguity:
      
        surf
        {
            type        meshedSurface;
            surface     sampling.inp;
      
            fileType    starcd;
            scale       0.001;
            ...
        }
      
      STYLE: regularize naming for input/output scaling
      
        * -read-scale   (compat: -scaleIn)
        * -write-scale  (compat: -scaleOut)
      
      CONFIG: change edge/surface selection name for STARCD format
      
      - now select as "starcd" instead of "inp" to avoid naming ambiguity
        with abaqus
      560c053b
  24. 02 Apr, 2020 1 commit
  25. 01 Apr, 2020 1 commit
    • Mark OLESEN's avatar
      GIT: remove unused files · b2a3e948
      Mark OLESEN authored
      - orphaned file: extendedFeatureEdgeMeshI.H
      
      - unused primitiveFaceZone typedef.
        Identical to indirectPrimitivePatch typedef
      b2a3e948
  26. 18 Mar, 2020 1 commit
  27. 12 Mar, 2020 1 commit
  28. 11 Mar, 2020 1 commit