Commit Graph

498 Commits

Author SHA1 Message Date
andy
8d97ebf3cd Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-24 15:57:53 +00:00
andy
1f7a41b297 cosmetics 2009-02-24 15:57:34 +00:00
mattijs
af8a42067c collapse cell detection 2009-02-24 12:05:35 +00:00
graham
9cea1db461 Removing CV mesher from dsmc branch 2009-02-24 10:10:31 +00:00
graham
53ab605456 Merge branch 'master' into cvm 2009-02-23 12:14:29 +00:00
graham
2ad849811b Modified grading function. 2009-02-20 18:36:48 +00:00
mattijs
a1525f016a extrapolate to any non-constraint patch 2009-02-20 16:47:09 +00:00
graham
c09bbf8a25 Added distance to and index of closest surface patch to indexedVertex, using this to preform tests of near surface grading and refinement. 2009-02-19 18:01:13 +00:00
mattijs
b1fe3cc51a processorFvPatchField now holds opposite value; not interpolate 2009-02-19 11:15:32 +00:00
graham
7f2f779779 Fixes to point insertion, making faceAreaWeight normalised, not hard coded to cell size, adding tweak to fertex removal criteria to allow selective insertion at short-edge midpoint if the vertices have not already been flagged for removal. 2009-02-18 18:57:09 +00:00
Mark Olesen
4b60453cf1 use while (runTime.loop() { .. } where possible in solvers
- change system/controlDict to use functions {..} instead of functions (..);
  * This is internally more efficient
- fixed formatting of system/controlDict functions entry

- pedantic change: use 'return 0' instead of 'return(0)' in the applications,
  since return is a C/C++ keyword, not a function.
2009-02-18 08:57:10 +01:00
graham
8695977fc5 Added point removal for short Delaunay edges in rotational controller as well as small and highly conntected dual cell removal. 2009-02-17 17:58:28 +00:00
Mark Olesen
19aa23d707 Merge commit 'OpenCFD/master' into olesenm 2009-02-17 16:35:00 +01:00
Mark Olesen
c2256e51f3 change solvers, utilities, etc. to use while (..) time-looping idiom
- this (now deprecated) idiom:
      for (runTime++; !runTime.end(); runTime++) { ... }
  has a few problems:
    * stop-on-next-write will be off-by-one (ie, doesn't work)
    * function objects are not executed on exit with runTime.end()
  Fixing these problems is not really possible.

- this idiom
      while (runTime.run())
      {
          runTime++;
          ...
      }
  works without the above problems.
2009-02-17 08:47:42 +01:00
graham
0d4433cb33 Merge branch 'master' into cvm 2009-02-16 19:19:19 +00:00
graham
7d5e91f6a0 Added point insertions on long edges for rotational controller and identified possible point removal candidates. 2009-02-16 19:15:09 +00:00
mattijs
68f1ba6a6d extraneous files 2009-02-13 15:33:04 +00:00
graham
10dfba5795 Writing out of a pointField along with the mesh - allows restarts. Added FCC and BCC initial conditions (commented), their duals are rhombic dodecahedra and bitruncated octahedra respectively. 2009-02-12 19:06:22 +00:00
graham
20349d2eaf Merge branch 'master' into cvm 2009-02-12 10:24:58 +00:00
Mark Olesen
b5a1f09321 functionObjectList with SHA1Digest tracking 2009-02-12 10:51:30 +01:00
graham
d6c8a34fe0 Fixed mistake in spoke search - wasn't setting closestSpokeHitDistance for further comparisons. Isotropic forcing using sqrt(faceArea). Added 3D analogue of 2D forcing function - needs experimented with. 2009-02-11 17:24:15 +00:00
andy
ac084b840b Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-02-11 12:45:17 +00:00
Mark Olesen
3d126aca51 Merge commit 'OpenCFD/master' into olesenm 2009-02-11 10:37:22 +01:00
mattijs
7bc85824aa typos 2009-02-10 16:49:03 +00:00
mattijs
e96264ad9e typo 2009-02-10 14:33:56 +00:00
andy
03f950341f added output of geometric boundary type 2009-02-10 11:37:40 +00:00
graham
bb278906be Using CGAL-3.4. Requires to be linked to compiled boost thread library. In this commit it is hard-coded to -lboost_thread-gcc43-mt-1_37, i.e. boost version 1.37.0, will need to be parameterised. CGAL does not need to be compiled, as before, and needs the CGAL-3.4/src/files file as before, but the compiler_config.h file, written by cmake, is now included from CGAL/3.4/include/CGAL, where it has been editted to remove the use of GMP. To use the CMP libraries, add -lgmpxx -lmpfr -lgmp to Make/options - there is little (2%) obvious performance benefit to creating a DT with GMP. -frounding-math is a required option - when running in debug assertions failures occur without it when using an exact construction. 2009-02-09 18:07:53 +00:00
andy
6a908364c2 added cylinderToCell and sphereToCell options 2009-02-09 11:59:31 +00:00
graham
87f0693973 Merge branch 'master' into cvm 2009-02-09 10:01:14 +00:00
graham
4d42f6e518 Changed mistake in declaring alignmentDirections, now a non-const reference. Added initial loop outline for cell based looping. 2009-02-09 09:18:01 +00:00
Mark Olesen
844211a940 Merge commit 'OpenCFD/master' into olesenm 2009-02-06 21:19:42 +01:00
Mark Olesen
69918f23c5 consistency update
- 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.
2009-02-06 20:43:09 +01:00
mattijs
9b0bebec00 making overwrite work 2009-02-06 15:12:24 +00:00
Graham
bda9076130 Added isotropic forcing, face area weighted. Added global aligment to the rotation to alignment method. 2009-02-06 13:11:39 +00:00
Mark Olesen
d3ec38f0aa Merge commit 'OpenCFD/master' into olesenm 2009-02-06 10:40:19 +01:00
Mark Olesen
ffd9bb08a8 OSspecific: altered file tests
- removed the previously added fileName type(), isDir(), isFile() methods.

- added optional bool parameter to isFile() function to explicitly
  enable/disable the check for gzip files.

- fixed minor bugginess where the default usage of isFile() would result in
  false positive matches.

- be slightly more stringent and use isDir() and isFile() instead of
  exists() function when we actually know the expected type.
2009-02-06 10:25:41 +01:00
Mark Olesen
fb29e08539 Merge commit 'bundle/home' into olesenm 2009-02-06 08:34:43 +01:00
Mark Olesen
22f6b4dc06 surfMesh gets surfPointFields, surfaceFormats write() for surf mesh components
- add placeholder BoundaryMesh to surfMesh allows us to drop the
  SurfGeoMesh class and just reuse the GeoMesh class.
  Do the same for triSurface.
2009-02-05 22:41:22 +01:00
Mark Olesen
3aba0e28ff surfMesh, surfaceRegistry re-working 2009-02-05 16:12:35 +01:00
Mark Olesen
a4d0094e48 added surfaceMeshImport, surfaceMeshExport 2009-02-05 00:08:24 +01:00
Mark Olesen
a43df3bddd added surfMesh, reworked MeshedSurface
- renamed surface regions (formerly patches or groups) to surfZone.

- added surfMesh, but without any of the patch information needed to make it
  useful for finiteArea.

- promoted coordinateSystem transformation to surfaceMeshConvert and moved
  old to surfaceMeshConvertTesting.
2009-02-04 16:17:14 +01:00
Graham
3b8c849b09 Using all of the surface alignment directions to perform near surface alignment. 2009-02-03 19:54:40 +00:00
Mark Olesen
bf6915455d Merge commit 'OpenCFD/master' into olesenm 2009-02-02 16:58:00 +01:00
Mark Olesen
05440dd4a0 updated surfaceCoordinateSystemTransform 2009-02-02 16:57:50 +01:00
Mark Olesen
e5c5829244 OSspecific: isDir(), isFile() instead of dir(), file() 2009-02-02 16:50:18 +01:00
mattijs
8fa4620e0a cutting plane 2009-02-02 12:24:32 +00:00
mattijs
206caf4ccb Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-30 14:45:10 +00:00
mattijs
5ec940465b missing link libraries 2009-01-30 14:44:44 +00:00
Mark Olesen
f0f677e3d6 Merge commit 'OpenCFD/master' into olesenm 2009-01-29 14:57:08 +01:00
mattijs
bdb4349ebd zonal postprocessing 2009-01-29 13:26:46 +00:00
Mark Olesen
6ac84bf1ef Merge commit 'OpenCFD/master' into olesenm 2009-01-29 14:08:33 +01:00
mattijs
fe6d908e59 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-28 16:05:36 +00:00
mattijs
1ab7bdce12 new pointMesh allocation method 2009-01-28 16:05:32 +00:00
andy
0f3c91ce0a Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-28 15:55:28 +00:00
andy
5e20eeb0e9 bugfix:
- convertPointField caused a seg-fault if the internal field was null
      - attempted to name the vtk object the name of the null field

+ minor clean-up
2009-01-28 15:54:42 +00:00
Mark Olesen
22df173acb Merge commit 'OpenCFD/master' into olesenm 2009-01-27 23:13:37 +01:00
Mark Olesen
ffdb280a27 reworked surfMesh and PrimitivePatchExtra
- 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.
2009-01-27 23:03:21 +01:00
mattijs
bdb532e0f3 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-27 20:25:19 +00:00
mattijs
8abbcc08c1 added option for sloppily matching cell zones to regions 2009-01-27 20:18:35 +00:00
graham
888a341e2b Merge branch 'master' into cvm 2009-01-27 16:52:43 +00:00
Mark Olesen
c048dd88c7 use new IOobject constructor: blockMesh, surfaceCoordinateSystemTransform(beta) 2009-01-27 15:12:19 +01:00
Mark Olesen
ce14f243c6 Removed handling of single-quoted strings. 2009-01-23 15:17:01 +01:00
Mark Olesen
42c04b8505 Merge commit 'OpenCFD/master' into olesenm 2009-01-23 12:51:45 +01:00
mattijs
45bfb91afb thisDb to get at objectRegistry 2009-01-23 08:46:54 +00:00
graham
7040c42e53 Weighing parameter change 2009-01-21 18:39:53 +00:00
graham
9ea81f2883 Blank line removal 2009-01-21 18:02:28 +00:00
graham
fbe607811a Adding relaxation calculation that adjusts to changes in runTime controls during a run. Experimenting with primary alignment rotations to achieve boundary alignment. Altering template depth back to 60 after master merge conflict resolution. 2009-01-21 17:48:27 +00:00
Mark Olesen
6d57bb4e7b added PackedBoolList typedef (used everywhere) and improved PackedList
- new members:  capacity(), two-argument resize()/setSize(), const storage()
- new static members: max_value(), packing(), etc.
2009-01-21 11:30:10 +01:00
graham
e5f370136d Reinstating CV2D and CV3D meshers after conflict resolution. 2009-01-21 10:06:38 +00:00
Mark Olesen
4da086b141 Merge commit 'bundle/home' into olesenm 2009-01-21 08:36:37 +01:00
Mark Olesen
0690c64d31 PrimitivePatchExtra orientation fixed and improved face::edgeDirection() 2009-01-21 01:19:31 +01:00
Mark Olesen
29db6a6517 Merge commit 'OpenCFD/master' into olesenm 2009-01-20 18:56:29 +01:00
Mark Olesen
d9096c1e47 cosmetics 2009-01-20 17:14:53 +01:00
andy
372cd1b0e6 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-20 13:35:56 +00:00
andy
e5e9902bec added output for areas of cyclic halves 2009-01-20 11:44:03 +00:00
Mark Olesen
19fc795489 Merge commit 'OpenCFD/master' into olesenm 2009-01-20 09:22:45 +01:00
mattijs
3c426d3b2e wildcard usage 2009-01-16 17:14:24 +00:00
Mark Olesen
be9051d375 Merge commit 'OpenCFD/master' into HEAD 2009-01-16 12:26:11 +01:00
Mark Olesen
246d569c4d consistency update for null pointers
- uniform use of reinterpret_cast<foo*>(0) instead of
  reinterpret_cast<foo*>(NULL)

- make all static null() members inline since they are really only a cast:
      "*reinterpret_cast<foo*>(0)"
2009-01-16 10:15:49 +01:00
Mark Olesen
f679bd5003 Merge commit 'OpenCFD/master' into olesenm 2009-01-14 14:32:01 +01:00
mattijs
dde4ca5bf7 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-14 12:36:22 +00:00
mattijs
782bd24fb1 unsynchronised looping 2009-01-14 12:24:42 +00:00
andy
4cc5ec39ea applying update from Graham 2009-01-13 18:03:18 +00:00
mattijs
30964be5c2 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-13 12:14:43 +00:00
mattijs
b8c8c685bc -latestTime fix 2009-01-12 16:39:39 +00:00
Mark Olesen
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
Mark Olesen
b85c9a7487 avoided some unneeded conversions of string::npos, minor cleanup of className
- string doesn't use any debug info, remove it
- restructured the macros to add in NoDebug macro versions to className,
  typeInfo.  Might be helpful with tackling the globals bootstrapping issue.
- HashTableName + StaticHashTableName - avoid lookup of debug switch when
  FULLDEBUG is not defined
2009-01-09 15:15:21 +01:00
mattijs
ef42bea66f added region 2009-01-08 18:13:04 +00:00
graham
d61af129f1 Finished lattice generation and molecule creation. Functions added to set the sizes of the sitePositions_ and siteForces_ members after construction from disk. 2009-01-07 15:33:16 +00:00
graham
fa0717dd00 rewriting molConfig, renamed to mdInitiaise. Driving all creation of molecules from within moleculeCloud. 2009-01-05 17:42:35 +00:00
Mark Olesen
cdd2266467 Merge commit 'OpenCFD/master' into olesenm
Conflicts:

	src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C
	src/OpenFOAM/db/IOstreams/Pstreams/OPstream.C
2009-01-07 09:39:17 +01:00
mattijs
eb2e37b296 SiCortex port 2009-01-06 21:41:20 +00:00
Mark Olesen
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
Mark Olesen
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
Mark Olesen
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
Mark Olesen
48af574040 new management for sampledSurface(s)
//- Does the surface need an update?
        virtual bool needsUpdate() const = 0;

        //- Mark the surface as needing an update.
        //  May also free up unneeded data.
        //  Return false if surface was already marked as expired.
        virtual bool expire() = 0;

        //- Update the surface as required.
        //  Do nothing (and return false) if no update was required
        virtual bool update() = 0;

    The constructors for the derived classes should generally start in a
    'expired' condition (ie, needsUpdate() == true) and rely on a subsequent
    call to the update() method to complete the initialization. Delaying the
    final construction as late as possible allows the construction of
    surfaces that may depend on intermediate calculation results (eg,
    iso-surfaces) and also avoids the unnecessary reconstruction of surfaces
    between sampling intervals.

    It is the responsibility of the caller to ensure that the surface
    update() is called before the surface is used.  The update() method
    implementation should do nothing when the surface is already up-to-date.
2008-12-31 18:53:57 +01:00
Mark Olesen
dcc82bf77b boundingBox has mag() and span() methods - use them 2008-12-31 17:58:23 +01:00
henry
09463aaa9f Further correction for commit bf92e86. 2008-12-30 23:02:05 +00:00
henry
bf92e869a9 Changed the IOOutputFilter constructor to accept a "name" argument. For details see the changes proposed by Vincent Tang:
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10405
2008-12-30 21:18:04 +00:00
Mark Olesen
bf057f99c0 small change to CMakeLists.txt for cmake-2.6.2 2008-12-15 22:06:44 +01:00