1. 10 Mar, 2009 1 commit
    • Mark Olesen's avatar
      surfMesh changes · ce3d79de
      Mark Olesen authored
      - can read MeshedSurface, UnsortedMeshedSurface from surfMesh/
      - can write surfMesh in any third-party format
      ce3d79de
  2. 07 Mar, 2009 1 commit
    • Mark Olesen's avatar
      surfMesh reworked · 6309810e
      Mark Olesen authored
      - treat 'ofs' IO just like any other format
      - dropped BasicMeshedSurface, since MeshedSurface can now also have zero or
        more zones
      - UnsortedMeshedSurface is a special type of MeshedSurface with zero zones,
        but with additional zoneId labels
      - use MeshedSurfaceProxy for writing surfaces with points/faces/zones and
        optional faceMap - provides output interface for MeshedSurface,
        UnsortedMeshedSurface and surfMesh.
      - simplify output to filenames only, I can't see that the Ostream
        is needed anywhere
      - surfMesh renaming now works, after the objectRegistry fix
      6309810e
  3. 06 Feb, 2009 1 commit
    • Mark Olesen's avatar
      consistency update · 69918f23
      Mark Olesen authored
      - OSspecific: chmod() -> chMod(), even although it's not used anywhere
      
      - ListOps get subset() and inplaceSubset() templated on BoolListType
      
      - added UList<bool>::operator[](..) const specialization.
        Returns false (actually pTraits<bool>::zero) for out-of-range elements.
        This lets us use List<bool> with lazy evaluation and no noticeable
        change in performance.
      
      - use rcIndex() and fcIndex() wherever possible.
        Could check if branching or modulus is faster for fcIndex().
      
      - UList and FixedList get 'const T* cdata() const' and 'T* data()' members.
        Similar to the STL front() and std::string::data() methods, they return a
        pointer to the first element without needing to write '&myList[0]', recast
        begin() or violate const-ness.
      69918f23
  4. 05 Feb, 2009 2 commits
  5. 04 Feb, 2009 2 commits
  6. 02 Feb, 2009 1 commit
  7. 29 Jan, 2009 1 commit
  8. 27 Jan, 2009 1 commit
    • Mark Olesen's avatar
      reworked surfMesh and PrimitivePatchExtra · ffdb280a
      Mark Olesen authored
      - ditched PrimitivePatchExtra in favour of a PatchTools class that is
        currently just a collection of static functions. They could equally well
        live within PrimitivePatch itself, but isolated also has its advantages.
      
      - MeshedSurface, UnsortedMeshedSurface now have 'regions' instead of
        'patches' since they are more like a faceZone for meshed surfaces than
        patches. This might avoid confusion at a later stage.
      ffdb280a
  9. 20 Jan, 2009 1 commit
  10. 11 Jan, 2009 1 commit
  11. 10 Jan, 2009 2 commits
  12. 09 Jan, 2009 1 commit
  13. 05 Jan, 2009 1 commit
    • Mark Olesen's avatar
      rename xfer<T> class to Xfer<T> · 19503c93
      Mark Olesen authored
      - The capitalization is consistent with most other template classes, but
        more importantly frees up xfer() for use as method name without needing
        special treatment to avoid ambiguities.
      
        It seems reasonable to have different names for transfer(...) and xfer()
        methods, since the transfer is occuring in different directions.
        The xfer() method can thus replace the recently introduced zero-parameter
        transfer() methods.
        Other name candidates (eg, yield, release, etc.) were deemed too abstract.
      19503c93
  14. 31 Dec, 2008 2 commits
  15. 12 Dec, 2008 1 commit
  16. 24 Nov, 2008 1 commit
    • Mark Olesen's avatar
      DynamicList changes. · 41bbcb63
      Mark Olesen authored
      - setSize() adjusts the addressable length only.
        Changed setSize(label) usage to setCapacity(label) or reserve(label)
        throughout. The final name (capacity vs. storageSize() vs. whatever) can
        easily be decided at a later date.
      - added setSize(label, const T&), which may still not be really useful, but
        is at least now meaningful
      - made shrink() a bit more legible.
      - added append(UList<T>&)
      - copying from a UList avoids reallocations where possible
      
      The following bits of code continue to use the DynamicList::setSize(), but
      appear to be legitimate (or the corresponding code itself needs rethinking).
      
        src/OpenFOAM/meshes/primitiveMesh/primitiveMeshPointCells.C:167: error: within this context
        src/OpenFOAM/lnInclude/faceTemplates.C:44: error: within this context
        src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatCore.C:178: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:737: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:741: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:745: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:749: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:754: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:935: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:940: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:1041: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:1046: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2161: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2162: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2201: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2205: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2261: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2262: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2263: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2264: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:2265: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3011: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3076: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3244: error: within this context
        src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C:3371: error: within this context
        src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:73: error: within this context
        src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:91: error: within this context
        src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:73: error: within this context
        src/dynamicMesh/meshCut/cellLooper/topoCellLooper.C:91: error: within this context
      41bbcb63
  17. 22 Nov, 2008 1 commit
    • Mark Olesen's avatar
      surfMesh changes · e72a6234
      Mark Olesen authored
       - expose faceMap info in triangulate() - for use in inherited classes
       - surfMesh::triangulate() works with or without underlying pointField
       - onePatch tries to be more intelligent about retaining the patch name
      e72a6234
  18. 21 Nov, 2008 1 commit
    • Mark Olesen's avatar
      surfMesh streamlining · fa69fd66
      Mark Olesen authored
       - all formats except ftr and gts are now read as MeshedSurface (thus sorted
         immediately). Avoid unnecessary sorting during construction though.
       - moved cleanup routines completely into PrimitiveMeshedSurface
      fa69fd66
  19. 20 Nov, 2008 1 commit
  20. 19 Nov, 2008 2 commits
  21. 17 Nov, 2008 2 commits
  22. 15 Nov, 2008 1 commit
    • Mark Olesen's avatar
      surfMesh code cleanup · c651a0ba
      Mark Olesen authored
       - added protected storedPoints(), storedFaces() functions for non-const
         access to the data. Mixing protected non-const versions and public const
         versions of the same method does not agree with the compiler
       - better handling of triFace/face distinction
      c651a0ba
  23. 14 Nov, 2008 4 commits
  24. 13 Nov, 2008 1 commit
  25. 11 Nov, 2008 1 commit
  26. 07 Nov, 2008 1 commit
  27. 05 Nov, 2008 2 commits
    • Mark Olesen's avatar
      added triangulate() to keyed/meshed-Surface · 87c90e09
      Mark Olesen authored
      87c90e09
    • Mark Olesen's avatar
      surfMesh changes · 9705520e
      Mark Olesen authored
      - read 'ftr' triSurface format
      - added 'ofs' (OpenFOAM Surface) as new all-in-one surface format candidate
      - trying to get some sanity into the surface patch classes, but called it
        'surfGroup' (for now) to avoid conflict with existing 'surfacePatch'
      - add read() member like Mattijs suggested
      9705520e
  28. 28 Oct, 2008 2 commits
  29. 23 Oct, 2008 1 commit
    • Mark Olesen's avatar
      checked in surfMesh library code · 2bb928ec
      Mark Olesen authored
        - keyedSurface is similar to triSurface, but uses faces
        - meshedSurface is sorted in regions and should be more memory efficient
        - surfMesh is the placeholder name for an OpenFOAM native surface format
      2bb928ec