Commit Graph

1576 Commits

Author SHA1 Message Date
129e16f975 DynamicList improvements/disambiguities
* DynamicList::allocSize(label)
  - Adjust the allocated size. The addressed list can be truncated but not
    extended, use setSize() for that.

* DynamicList::reserve(label)
  - Reserve allocation for *at least* this number of elements.
    Never shrinks the allocated size, nor touches the addressed list size.

* DynamicList::setSize(label)
  - proposed behaviour:
    Adjust the addressed list size, allocating extra space if required.
  - The current behaviour is ambiguous about what addressable size will
    actually get set and using it to extend the addressable size (as
    per List) automatically shrinks the allocated space to this size!
2008-11-23 12:17:11 +01:00
e72a6234d6 surfMesh changes
- 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
2008-11-22 11:22:34 +01:00
d6b247a3b1 added static data boundBox::greatBox and boundBox::invertedBox
- boundBox::invertedBox is useful for initializing our own calculations
- NOTE treeBoundBox::greatBox is still in place, since it uses GREAT
  instead of VGREAT. If this is only historical, we can drop it.
2008-11-22 11:15:20 +01:00
99eea2d52e sampling: use new runtime macros and avoid typedefs for each writer/instance 2008-11-21 21:46:06 +01:00
750cd8c69f bin/foamCheckSourceDeps works again
- added -rm | -remove option
 - added -rmdir option
2008-11-21 11:23:50 +01:00
41880c2760 added triFace::reverseFace() for symmetry with face class 2008-11-21 10:01:31 +01:00
fa69fd6690 surfMesh streamlining
- 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
2008-11-21 01:38:56 +01:00
7bbe6c9d10 SubList: added void operator=(const T&) for convenience 2008-11-20 23:02:14 +01:00
a11386e6ba surfMesh - ac3d, tri read into MeshedSurface
- optimized stl reading to skip sort if possible
2008-11-20 16:28:38 +01:00
74cb43af0b s/openfoam\.org/OpenFOAM.org/g 2008-11-19 19:03:22 +01:00
367639bf02 Merge commit 'OpenCFD/master' into olesenm 2008-11-19 18:57:15 +01:00
a5179ff417 surfMesh changes
- use new HashSet capabilities and sortedOrder function
 - make STL format a MeshedSurface instead of an UnsortedMeshedSurface for
   better (MeshedSurface) reader efficiency
2008-11-19 18:39:47 +01:00
16e9f10e22 Added support for HP-MPI. 2008-11-19 14:57:06 +00:00
e3c70a839b Merge commit 'OpenCFD/master' into olesenm 2008-11-19 13:06:49 +01:00
110e9989b9 further HashSet improvements
- added global operator|, operator& and operator^
 - can construct from table of contents of another HashTable
2008-11-19 12:37:37 +01:00
cf7762c2b2 Merge commit 'bundle/home' into olesenm 2008-11-19 10:33:13 +01:00
4645e93f8b SortableList improvements
- now works as expected with transfer() and assignment from other Lists
  - shrink() method : clears indices and returns underlying List
2008-11-19 10:28:21 +01:00
e7d5afc1ae ListOps: added sortedOrder and changed template type (cosmetic)
- changed template<class List> to template<class ListType> for better
   distinction between List as class and as template type
2008-11-19 09:54:42 +01:00
c9373ba12f surfMesh - reader delegation between MeshedSurface <-> UnsortedMeshedSurface 2008-11-19 01:08:27 +01:00
1c9102dada HashSet gets additional operators
- operator+=  : add in the listed keys
 - operator-=  : remove the listed keys
 - operator&=  : intersection of keys
 - added xfer constructor (just in case)
 - moved labelHashSet typedef to HashSet.H, for consistency with the
   wordHashSet typedef being there and since it is used so often
2008-11-18 23:11:09 +01:00
7c0048e878 Added line number counting, more accommodating point parsing and updated
handling of "uniform", "mixed" and "polygonal" face lists.  Now converts
.cas files as well as .msh files.
2008-11-18 14:57:44 +00:00
04c8cdf729 ListOps with (const UList<label>&) instead of (const labelList&)
PackedList with (const UList<label>&) instead of (const labelList&)
2008-11-18 11:02:25 +01:00
bbb989f8cd SortableList changes
- moved SortableList<T>::less class to UList<T>::less for better accessibility
 - add clear() method now also handles the indices
 - indices length is caught in sort()
 - indices remain (mostly) zero-sized until after sort()
 - allow non-const access to indices
2008-11-18 10:28:52 +01:00
4e700e62b0 surfMesh - moved more things to PrimitiveMeshedSurface 2008-11-17 14:55:47 +01:00
82a481a6c0 PrimitivePatchExtra cosmetic changes 2008-11-17 14:34:46 +01:00
7bb09fe458 Merge commit 'OpenCFD/master' into olesenm 2008-11-17 08:41:08 +01:00
5bf78f0e23 autoPtr - removed unneeded const_cast 2008-11-17 08:40:39 +01:00
d01c115f02 surfMesh gets PrimitiveMeshedSurface as common basis 2008-11-17 01:41:07 +01:00
d56220c34a PrimitivePatchExtra - adjusted template args to match PrimitivePatch 2008-11-16 00:00:34 +01:00
c651a0ba29 surfMesh code cleanup
- 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
2008-11-15 23:29:50 +01:00
59bfd4ecef added surfaceCoordinateSystemTransform 2008-11-14 19:10:01 +01:00
a622a9a0ec Changed the function name "cofactors" to "cof" and propagated the function
through the field algebra.
2008-11-14 16:02:47 +00:00
d119dfe7b8 Merge commit 'OpenCFD/master' into olesenm
Conflicts:

    src/OpenFOAM/db/runTimeSelection/runTimeSelectionTables.H
2008-11-14 15:58:44 +01:00
1b843a3ce5 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-11-14 14:24:45 +00:00
6dc5b6e935 Added support for selection tables containing New functions rather than constructors. 2008-11-14 14:24:33 +00:00
d31ce5b970 Merge commit 'OpenCFD/master' into olesenm 2008-11-14 14:56:04 +01:00
80c19974f1 ignore status 2008-11-14 13:42:28 +00:00
0a146530d7 surfMesh - more code refactoring 2008-11-14 13:15:07 +01:00
b5a3037463 Merge commit 'OpenCFD/master' into olesenm 2008-11-14 10:55:11 +01:00
f22f355e66 Merge commit 'bundle/home' into olesenm 2008-11-14 10:54:29 +01:00
1f823838dc surfMesh code refactoring 2008-11-14 08:50:35 +01:00
4be0d80a7e Use new templated baseType run-time selection to reduce number of typedefs
- now there are only 2 places to adjust the typedefs when we decide on
   better names:
     MeshedSurfacesFwd.H, UnsortedMeshedSurfacesFwd.H

     - also allow table definition to have a
     - added some comments/whitespace to make the files easier to read
2008-11-14 02:02:44 +01:00
895feecb6b more runTimeSelection/memberFunctionSelection templated forms
- also allow table definition to have a templated baseType
 - added some comments/whitespace to make the files easier to read
2008-11-14 01:42:30 +01:00
9b3fb9fee3 Templated meshedSurface/keyedSurface -> MeshedSurface/UnsortedMeshedSurface
- neither class names, nor the typedefs for the <face> and <triFace>
    instances are really decided
2008-11-14 00:45:45 +01:00
8ffb89dab0 runTimeSelection/memberFunctionSelection templated forms
- useful when the baseType isn't a typedef and thus requires the same
   template argument as the derived class
2008-11-13 17:45:19 +01:00
051eee5caa runTimeSelection/memberFunctionSelection templated forms
- useful when the baseType isn't a typedef and thus requires the same
   template argument as the derived class
2008-11-13 09:44:03 +01:00
9a2c1adb79 wmakeLnInclude : also ignore 'noLink' directories
- useful for avoiding links on older versions, or for 'hiding' contents
2008-11-12 23:33:51 +01:00
4d2284c99d rmt isosurface correction 2008-11-12 16:05:22 +00:00
0fe10dcf33 guarantee 2:1 on non-cubic grids 2008-11-12 10:48:12 +00:00
d4fcd2d9c4 surfMesh consistency updates, added read() member throughout etc. 2008-11-11 22:18:52 +01:00