Commit Graph

1003 Commits

Author SHA1 Message Date
30964be5c2 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-13 12:14:43 +00:00
b74f109639 wildcards in selection 2009-01-12 16:39:20 +00:00
c826865f92 using .xfer() method instead of xferMoveTo<...> in a few places 2009-01-11 00:35:40 +01:00
95dcb6ded7 Simplify checking of container (List/HashTable, strings) sizes
- can use 'XX.empty()' instead of 'XX.size() == 0', 'XX.size() < 1' or
  'XX.size() <= 0' or for simpler coding.
  It also has the same number of characters as '!XX.size()' and /might/ be
  more readable

- many size checking had 'XX.size() > 0', 'XX.size() != 0', or 'XX.size() >= 1'
  when a simple 'XX.size()' suffices
2009-01-10 20:28:06 +01:00
16aaf5b54e autoPtr gets "empty()" method that can be used instead of "! ...valid()" 2009-01-10 10:38:53 +01:00
19503c93e1 rename xfer<T> class to Xfer<T>
- 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.
2009-01-05 12:30:19 +01:00
973b9ea0ce boundBox, octree cleanup
- added boundBox(const tmp<pointField>&) constructor for use with
    coordinate systems
  - moved some methods from treeBoundBox to boundBox and use VectorSpace ops
2009-01-01 17:03:19 +01:00
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
dcc82bf77b boundingBox has mag() and span() methods - use them 2008-12-31 17:58:23 +01:00
cd7cff1e53 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-19 10:27:39 +00:00
c65a40d57d don't need shrink before List::transfer(DynamicList&) anymore 2008-12-12 14:20:56 +01:00
14b12aad79 adding cyclinderToCell cell source 2008-12-09 19:11:12 +00:00
928a283a6a Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-02 15:37:11 +00:00
5722298f64 no local segments 2008-12-02 15:36:52 +00:00
b30a6faf2c Merge commit 'OpenCFD/master' into olesenm 2008-11-28 18:06:40 +01:00
ece5fc8924 distance at centre 2008-11-26 11:14:29 +00:00
41bbcb6337 DynamicList changes.
- 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
2008-11-24 17:22:37 +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
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
345df1e970 Merge commit 'OpenCFD/master' into olesenm 2008-11-05 10:42:05 +01:00
0a8286b8ed inspired by MeshObject - added coordinateSystems::New selector 2008-10-29 15:00:50 +01:00
8ad016dd2c small normal tolerance. Fixed indexing error 2008-10-28 21:11:48 +00:00
6520f35f1e nearestToPoint 2008-10-28 21:07:05 +00:00
59821d6094 added optional notes to coordinate systems
porousZone constructor in the same order as sampling
2008-10-28 17:25:59 +01:00
20430a8586 Merge commit 'OpenCFD/master' into olesenm 2008-10-27 17:01:53 +01:00
619f7838e8 Merge branch 'master' of /home/hunt2/OpenFOAM/OpenFOAM-dev 2008-10-27 09:07:51 +00:00
88cd954540 triSurface/triSurfaceMesh adjustments
- typedefs to simplify code
 - added scalePoints() member
   * this is especially useful for the triSurfaceMesh dictionary constructor
     when we have surfaces in mm or inches and don't wish to rescale in some
     external program
2008-10-25 16:34:35 +02:00
c2dd9825fa Merge commit 'OpenCFD/master' into olesenm 2008-10-24 18:11:02 +02:00
ac00f974e6 drop ununsed nUsedFaces parameter from polyMesh::resetPrimitives(xfer<..)
- use xfer form for calls to resetPrimitives
2008-10-24 12:25:27 +02:00
536269a267 use new bounding box 2008-10-23 20:53:45 +01:00
651a64d609 force ascii writing of IOdictionary 2008-10-23 18:18:52 +01:00
805b45e88a dumping redistributed surfaces 2008-10-21 21:38:43 +01:00
99e8bf7516 volPointInterpolation, pointMesh now MeshObject 2008-10-21 15:02:04 +01:00
5640ed63c2 writing 2008-10-21 13:49:25 +01:00
42fbaffabf indexing errors 2008-10-15 11:24:02 +01:00
e81c5a29e3 annoying message 2008-09-26 10:33:25 +01:00
16fefa2f14 Merge branch 'master' of /home/hunt2/OpenFOAM/OpenFOAM-dev
Conflicts:

	src/OpenFOAM/containers/Lists/DynamicList/DynamicListI.H
2008-09-25 09:56:08 +01:00
7fe0ded9f8 changed to UPtrList 2008-09-24 11:28:30 +01:00
ae0581dfcb use dictionary::lookupOrDefault to simplify some code 2008-09-19 13:12:32 +02:00
958059fb58 dynamicList update 2008-09-17 11:59:50 +01:00
c4c0f54fc6 dynamicList change 2008-09-17 11:53:14 +01:00
e2f40769a8 Merge branch 'master' of /home/hunt2/OpenFOAM/OpenFOAM-dev 2008-09-16 21:22:14 +01:00
36fcd1cda6 binary read/write 2008-09-16 21:13:05 +01:00
e95b3a9312 Merge branch 'master' of ssh://hunt/home/hunt2/OpenFOAM/OpenFOAM-dev 2008-09-16 11:27:07 +01:00
571d39c321 further updates to mapping 2008-09-16 11:25:08 +01:00
ecf18da9d4 distributed surfaces 2008-09-15 12:20:51 +01:00
13e9ce0e95 contiguous data 2008-09-15 12:20:31 +01:00
e76a962441 distributed surfaces 2008-09-15 12:19:13 +01:00
f3d9fb59b0 tolerances 2008-09-15 12:18:04 +01:00
00e865c8d5 distributed surfaces 2008-09-15 12:17:19 +01:00