Commit Graph

49 Commits

Author SHA1 Message Date
3814762785 ENH: relocate triSurface classes into surfMesh library (issue #294)
- simplifies organization, includes, linkage etc.
2017-05-18 10:42:05 +02:00
b708c23cfc ENH: Clean-up after latest Foundation integrations 2017-03-27 14:34:01 +01:00
0ffae6461a ENH: creating a bounding box without points yields an inverted box
- The code create a box with a (0,0,0) point.
  The new definition is more logical and makes it very easy to grow
  the bounding box to include new points. It also simplifies much of
  the logic in the constructors.

- Use ROOTVGREAT instead of VGREAT for sizing greatBox and invertedBox.
  Avoids some overflow issues reported by Mattijs (thus GREAT has been
  used in treeBoundBox), but might still need further revision.
2017-02-01 12:15:00 +00:00
af4429f94c STYLE: reduce bounding box list via list-combine-gather/scatter 2017-01-25 23:03:41 +01:00
722d23f59c ENH: additional methods/operators for boundBox (related to #196)
- Constructor for bounding box of a single point.

- add(boundBox), add(point) ...
  -> Extend box to enclose the second box or point(s).

  Eg,
      bb.add(pt);
  vs.
      bb.min() = Foam::min(bb.min(), pt);
      bb.max() = Foam::max(bb.max(), pt);

Also works with other bounding boxes.
  Eg,
      bb.add(bb2);
      // OR
      bb += bb2;
  vs.
      bb.min() = Foam::min(bb.min(), bb2.min());
      bb.max() = Foam::max(bb.max(), bb2.max());

'+=' operator allows the reduction to be used in parallel
gather/scatter operations.

A global '+' operator is not currently needed.

Note: may be useful in the future to have a 'clear()' method
that resets to a zero-sized (inverted) box.

STYLE: make many bounding box constructors explicit
2017-01-25 19:26:50 +01:00
17d76e6261 ENH: boundBox 'reduce' method (related to #196)
reduce()
- parallel reduction of min/max values.
  Reduces coding for the callers.

  Eg,
      bb.reduce();

  instead of the previous method:
      reduce(bb.min(), minOp<point>());
      reduce(bb.max(), maxOp<point>());

STYLE:

- use initializer list for creating static content
- use point::min/point::max when defining standard boxes
2017-01-25 18:52:37 +01:00
55ed6ec776 STYLE: use MUST_READ consistently for decomposeParDict
- there was a slight mix of MUST_READ and MUST_READ_IF_MODIFIED
  but with no obvious code to handle runtime modified values
  of the decomposition, or how this works with alternative
  dictionaries.
2016-11-24 11:26:03 +01:00
1c2aadb8d8 ENH: distributedTriSurfaceMesh: bail out if getting stuck due to precision errors 2016-09-28 12:26:23 +01:00
fd9d801e2d GIT: Initial commit after latest foundation merge 2016-04-25 11:40:48 +01:00
95d146ecdf Rationalized the indentation of C-preprocessor directives 2016-02-29 15:42:03 +00:00
fffb871d71 BUG: distributedTriSurfaceMesh: no need for messing with fileModificationChecking 2016-01-28 09:43:06 +00:00
0af509c22d BUG: injectors: positions are a global quantity. 2016-01-28 09:00:04 +00:00
5779e4fd16 Info -> InfoInFunction and updated comments 2016-01-20 16:21:37 +00:00
56fa7c0906 Update code to use the simpler C++11 template syntax removing spaces between closing ">"s 2016-01-10 22:41:16 +00:00
ca834a93c8 BUG: triSurfaceMesh: operate non-parallel so not do a reduction of points
Also redistributePar:
- recognise going from undecomposed to many
- read on master only
2015-12-14 09:36:52 +00:00
3f55f752fc GIT: Resolve conflict with upstream merge from Foundation 2015-12-07 17:07:20 +00:00
916dcb8685 ENH: parallel: overhaul of parallel mapping
- redistributePar to have almost (complete) functionality of decomposePar+reconstructPar
- low-level distributed Field mapping
- support for mapping surfaceFields (including flipping faces)
- support for decomposing/reconstructing refinement data
2015-11-17 15:05:05 +00:00
c4d5f65a10 Completed update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the
function signature string.
2015-11-11 09:03:39 +00:00
a96d82f79b Updated headers 2015-09-02 15:30:10 +01:00
430d894e37 Added ROOTSMALL 2015-09-02 15:29:54 +01:00
8628ef2fea Corrected capitalization of Doxygen documentation comments 2015-02-14 13:10:15 +00:00
4b8cb96f71 ENH: distributedTriSurfaceMesh: disable fileModificationChecking when construct from dictionary 2014-01-31 10:34:57 +00:00
0df52ae49b Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev 2013-06-10 15:18:02 +01:00
bbac10d275 ENH: Adding timeStamp check for distributedTrySurfaceMaesh.
It needs to be timeStamp (read on local processors)
2013-06-10 15:17:38 +01:00
1aefea9df7 BUG: codedFunctionObject: add timeSet functionality 2013-06-10 11:18:17 +01:00
fe32d73d5a BUG: distributedTriSurfaceMesh: handle zero sized local surfaces 2013-05-16 11:17:54 +01:00
3318a2972f BUG: distributedTriSurfaceMesh: non-parallel running clip against local proc 2013-05-02 17:17:21 +01:00
bfd30ea006 ENH: Expand triSurfaceSearch and add triSurfaceRegionSearch
+ Move most of the octree searching functionality from triSurfaceMesh into
  triSurfaceSearch. Much of it was duplicated anyway.
+ Add triSurfaceRegionSearch, which constructs an octree for each region in
  a surface and performs searches on specified regions only.
2013-04-05 15:28:00 +01:00
2812024796 Update headers 2013-02-26 22:20:05 +00:00
0afb3ab1ac MeshObject: extended to support movePoints and updateMesh as an alternative to call-backs
All MeshObjects are now handled generically in polyMesh and fvMesh
See MeshObject.H for details
2013-02-26 22:19:28 +00:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
2ea1ff1923 STYLE: date 2011-07-21 14:45:30 +01:00
b1c7bcee4e Merge branch 'master' into cvm
Conflicts:
	applications/test/Distribution/DistributionTest.C
	applications/test/Distribution/Make/options
	src/OpenFOAM/containers/Lists/Distribution/Distribution.C
	src/OpenFOAM/containers/Lists/Distribution/Distribution.H
	src/OpenFOAM/containers/Lists/Distribution/DistributionI.H
2011-01-19 10:32:36 +00:00
89619c5015 Revert "ENH: Copyright dates to allow a push."
This reverts commit c5bea5242b.
2011-01-19 10:26:24 +00:00
eaef8d482b STYLE: Updated 1991 start copyright year to 2004 2011-01-14 16:08:00 +00:00
c5bea5242b ENH: Copyright dates to allow a push. 2011-01-07 15:09:52 +00:00
2135f644d1 Merge branch 'master' into cvm 2011-01-07 14:50:43 +00:00
099cc39e2e Revert "STYLE: 2011 copyright date."
This reverts commit b18f6cc1ce.
2011-01-05 18:24:29 +00:00
8c04b4e692 Merge branch 'master' into cvm
Conflicts:
	src/OpenFOAM/meshes/boundBox/boundBox.H
2011-01-05 11:53:37 +00:00
b18f6cc1ce STYLE: 2011 copyright date. 2011-01-05 11:14:26 +00:00
8de19df4a7 COMP: avoid ambiguous construct from tmp - parallel 2010-12-17 17:11:57 +01:00
44be359294 Merge branch 'master' into cvm 2010-12-07 16:11:09 +00:00
a00ec1562a Merge remote branch 'OpenCFD/master' into olesenm 2010-12-07 15:20:19 +01:00
731f523188 ENH: mapDistribute : cleanup 2010-12-06 15:54:45 +00:00
0d662c74c6 STYLE: use triSurface::FaceType where triangle or region information
not required
2010-11-26 20:39:46 +01:00
f8213e80f7 Merge branch 'master' into cvm 2010-10-22 12:45:30 +01:00
95219e6f76 COMP: specialization Foam::NamedEnum templates within namespace Foam
- otherwise gets flagged as an error by clang
2010-10-12 12:17:13 +02:00
cc631ad6cd Merge branch 'master' into cvm 2010-09-16 15:13:45 +01:00
d12b64a273 COMP: moved distributedTriSurfaceMesh to break cyclic dependency
structuredDecomp uses finiteVolume which uses meshTools which
used to use decompositionMethods
2010-08-26 16:14:10 +01:00