Commit Graph

647 Commits

Author SHA1 Message Date
mattijs
96da5f0e5b sorted zones
modified:   ../applications/utilities/mesh/manipulation/setsToZones/setsToZones.C
	modified:   dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.C
2009-03-26 12:07:56 +00:00
andy
5569bd4bfe Merge branch 'olesenm' 2009-03-24 13:38:19 +00:00
henry
a55441e758 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-23 19:25:25 +00:00
henry
232d22a7a1 New version from Niklas. 2009-03-23 19:25:17 +00:00
andy
9bc9b9cd65 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-23 17:44:57 +00:00
Mark Olesen
852d9f3298 #undef VTKPV3FOAM_DUALPORT to disable dual-port output for paraview reader 2009-03-23 18:39:29 +01:00
Mark Olesen
5af070f914 Merge commit 'OpenCFD/master' into olesenm 2009-03-23 17:22:48 +01:00
Mark Olesen
be8cbc1018 use timeSelector mechanism in a few more utilities 2009-03-23 16:57:26 +01:00
Mark Olesen
549c78f9fe PV3FoamReader fix
- using a filter such as clip-plane on a multi-port source causes
  inconsistent UPDATE_TIME_STEPS() on each port. This looks like a
  VTK/Paraview bug to me.
  Workaround: check both ports and take the first one that has a value
  different than the last time set.
2009-03-23 14:53:14 +01:00
andy
ff78c6d637 conflict resolution 2009-03-23 11:58:03 +00:00
mattijs
8ef30f0fb8 use runtime selection mechanism 2009-03-20 18:13:16 +00:00
mattijs
84c8fe33ce probing on regions 2009-03-20 16:29:23 +00:00
andy
9035b3e419 added noLagrangian option 2009-03-19 11:38:47 +00:00
Mark Olesen
681cd5fc30 sampling: use proxy surfaceWriter to generate obj, stl and other formats 2009-03-17 14:13:03 +01:00
Mark Olesen
fb1e155eed Merge commit 'OpenCFD/master' into olesenm 2009-03-16 08:28:08 +01:00
Mark Olesen
fe455d1cbf cloud, surfaceRegistry: rename subInstance -> prefix 2009-03-16 08:27:03 +01:00
andy
e5dd634327 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-13 16:43:36 +00:00
andy
48b3071742 Merge branch 'dsmc' 2009-03-13 16:26:52 +00:00
andy
c5b894cf01 minor clean-up 2009-03-13 15:35:18 +00:00
mattijs
0128b2be68 UIndirectList 2009-03-12 19:25:21 +00:00
andy
156b71b9f1 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-12 17:22:35 +00:00
mattijs
642dadf1f7 yaw pitch roll 2009-03-12 15:12:31 +00:00
Mark Olesen
e011328d99 Merge commit 'OpenCFD/master' into olesenm 2009-03-12 10:39:22 +01:00
graham
542e05ce7f Changed way of populating database for dsmcFieldCalc. Added correctBoundaryConditions() to sigmaTcRMax on initialisation 2009-03-10 14:25:15 +00:00
mattijs
9ec530528f Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-03-10 12:50:34 +00:00
Mark Olesen
ce3d79de1c surfMesh changes
- can read MeshedSurface, UnsortedMeshedSurface from surfMesh/
- can write surfMesh in any third-party format
2009-03-10 01:37:06 +01:00
Mark Olesen
8e57ed53f6 Merge commit 'bundle/olesenm' into home 2009-03-09 20:32:24 +01:00
graham
e49d70a85a Created new functionObject for dsmcFields, renamed post processing utility dsmcFields to dsmcFieldsCalc and calling function object from there. 2009-03-09 19:29:08 +00:00
Mark Olesen
6ecdf4fc41 updated DebugSwitches, surfaceWriter
- added obj surfaceWriter
- don't bother with prepended field names on obj and stl surfaceWriter.
  It fills the disk and suggests differences where there are none.
2009-03-09 15:37:54 +01:00
graham
a7341a7e95 Merge branch 'master' into dsmc 2009-03-09 11:20:58 +00:00
Mark Olesen
6309810e2e surfMesh reworked
- 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
2009-03-08 00:59:33 +01:00
Mark Olesen
b968e62ef9 objectRegistry fixes
- objectRegistry gets a rename() that also adjusts the dbDir
- cloud reworked to use static variables subInstance and defaultName.
  This avoids writing "lagrangian" everywhere

string fixes
- avoid masking of std::string::replace in string.H
- avoid old strstream in PV3FoamReader
2009-03-06 15:18:00 +01:00
graham
e111540322 Info line tweaks. 2009-03-06 13:41:24 +00:00
mattijs
e1c28506b7 scaling logic 2009-03-06 13:35:05 +00:00
mattijs
00328814d9 disconnected cell check 2009-03-06 13:34:35 +00:00
graham
31964adc76 Averaging does not need to be weighted if the fields being averaged are extensive - they weight themselves automatically. Recording momentum and energy denisty, and averaging them, then once decent averaged fields exist, using the new dsmcFields utility to create the intensive fields: UMean and TMean (translational, internal and overall). 2009-03-06 12:59:58 +00:00
mattijs
11d9c0f279 rename snappy parameter 2009-03-05 17:01:31 +00:00
mattijs
7e69b33586 include file 2009-03-05 17:01:16 +00:00
mattijs
50df688455 demand driven volPointInterpolation 2009-03-05 14:01:23 +00:00
mattijs
aa7be71de3 problem cell deletion 2009-03-05 13:11:28 +00:00
Mark Olesen
0cfce1a7ab Merge commit 'OpenCFD/master' into olesenm 2009-03-05 11:00:34 +01:00
mattijs
f411ac6884 patchnames on uncached meshes 2009-03-04 12:34:53 +00:00
graham
f5d45542ae Added Larsen Borgnakke internal energy redistribution and all supporting variables and function calls. Added energy and momentum monitoring functions. Added U and T fields to be used for boundary conditions and field measurement. Modified constructors accordingly. Now reading dsmcInitialiseDict in the Cloud, not the application. Initialisation dict now reads a subdict of <species keyword> <number density> entries. 2009-03-03 13:39:52 +00:00
graham
b5add8f750 Merge branch 'dsmc' of ssh://graham@hunt//home/noisy3/OpenFOAM/OpenFOAM-dev into dsmc 2009-03-02 13:21:40 +00:00
andy
e10c3a86ba minor formatting/coding changes 2009-03-02 13:18:45 +00:00
graham
8b4c6f0662 Merge branch 'master' into dsmc 2009-03-02 13:11:18 +00:00
graham
9edb5b4941 Changing template-depth back to 40. Adding initialisation functions and constantProperties construction. 2009-02-25 18:04:51 +00:00
Mark Olesen
507ad1e643 Merge commit 'OpenCFD/master' into olesenm 2009-02-25 10:50:26 +01:00
mattijs
c49b302aa3 added solutionD and geometricD 2009-02-24 19:20:55 +00:00
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
Mark Olesen
0571f5393e rename Foam::dotFoam() -> Foam::findEtcFile() with an optional 'mandatory' argument
- if mandatory is true, findEtcFile() will abort with a message (via cerr).
  This allows a non-existent file to be caught at the lowest level and avoid
  error handling in IFstream, which might not be initialized at that stage.
2008-12-12 19:16:32 +01:00
Mark Olesen
c65a40d57d don't need shrink before List::transfer(DynamicList&) anymore 2008-12-12 14:20:56 +01:00
mattijs
5e7a1f7ea9 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-12-11 15:51:31 +00:00
mattijs
ffa75238a6 comment 2008-12-11 15:49:29 +00:00
Mark Olesen
e2d140fa94 timeSelector: improved functionality
- the improved side-effect of enabling -zeroTimea alters default selection
  behaviour and -latestTime selection behaviour for utilities in which
  accidentally using the 0/ directory can cause damage (eg, reconstructPar)
- can combine -time ranges and -latestTime
2008-12-10 09:14:00 +01:00
Mark Olesen
f7f2d1672a extend fvSolution re-write to also include the 'smooth' entry 2008-12-09 17:04:05 +01:00
Mark Olesen
d0795abc51 Merge commit 'bundle/home' into olesenm 2008-12-09 09:11:26 +01:00
Mark Olesen
4f1bb8345f lduMatrix now takes a dictionary instead of an Istream for the solver controls
- can now use dictionary substitutions and regular expressions in
    system/fvSolution

  - foamUpgradeFvSolution application to convert system/fvSolution
    (with -test option)

motion solver syntax left as-is.
2008-12-08 17:22:01 +01:00
mattijs
f5b23d5065 missing patch selection 2008-12-03 11:19:40 +00:00
Mark Olesen
b30a6faf2c Merge commit 'OpenCFD/master' into olesenm 2008-11-28 18:06:40 +01:00
mattijs
1cff9e5409 merge 2008-11-24 16:42:44 +00:00
Mark Olesen
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
Mark Olesen
b7e349a727 Merge commit 'bundle/home' into olesenm 2008-11-24 08:44:47 +01:00
Mark Olesen
c61868e91b Merge commit 'OpenCFD/master' into olesenm 2008-11-24 08:33:55 +01:00
henry
47d0a28d7d Updated utilities to use the new turbulenceModels paths. 2008-11-23 16:17:05 +00:00
Mark Olesen
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
Mark Olesen
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
Mark Olesen
7cf90b039e sampling: use new runtime macros and avoid typedefs for each writer/instance 2008-11-21 21:46:06 +01:00
Mark Olesen
99eea2d52e sampling: use new runtime macros and avoid typedefs for each writer/instance 2008-11-21 21:46:06 +01:00
mattijs
b352c06f0f Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2008-11-21 15:19:25 +00:00
mattijs
fcf3262fb5 do not zonify baffles 2008-11-21 15:19:10 +00:00
henry
ecb510e914 Changed "]]" to "] ]" to keep old versions of flex happy. 2008-11-20 22:13:47 +00:00
Mark Olesen
74cb43af0b s/openfoam\.org/OpenFOAM.org/g 2008-11-19 19:03:22 +01:00
Mark Olesen
e3c70a839b Merge commit 'OpenCFD/master' into olesenm 2008-11-19 13:06:49 +01:00
Mark Olesen
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
henry
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
mattijs
ef19e4aab4 better dualisation 2008-11-18 12:35:43 +00:00
Mark Olesen
4e700e62b0 surfMesh - moved more things to PrimitiveMeshedSurface 2008-11-17 14:55:47 +01:00
Mark Olesen
d01c115f02 surfMesh gets PrimitiveMeshedSurface as common basis 2008-11-17 01:41:07 +01:00
Mark Olesen
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
Mark Olesen
59bfd4ecef added surfaceCoordinateSystemTransform 2008-11-14 19:10:01 +01:00
Mark Olesen
b5a3037463 Merge commit 'OpenCFD/master' into olesenm 2008-11-14 10:55:11 +01:00
Mark Olesen
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
mattijs
4d2284c99d rmt isosurface correction 2008-11-12 16:05:22 +00:00
mattijs
29d67c3240 averaging in isoSurfaces 2008-11-07 18:14:06 +00:00
Mark Olesen
345df1e970 Merge commit 'OpenCFD/master' into olesenm 2008-11-05 10:42:05 +01:00
Mark Olesen
5d0b3348c5 can call Allwmake scripts directly instead of with ( cd foo && ./Allwmake ) 2008-11-05 10:39:06 +01:00
mattijs
593db180ce added verbosity option 2008-11-04 14:47:48 +00:00
mattijs
99500b1fa8 updated for new functionality 2008-11-04 14:47:36 +00:00
andy
be3d701bb6 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-10-31 11:26:02 +00:00
henry
83bf5a7f98 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-10-29 13:19:27 +00:00
henry
fd57af9980 Changed sum to gSum for parallel execution. 2008-10-29 13:18:36 +00:00
mattijs
0f05c04153 sample files 2008-10-29 12:12:42 +00:00
mattijs
3403802282 region option 2008-10-28 21:07:59 +00:00
mattijs
b5ee8b6dc1 detect only option 2008-10-28 21:07:37 +00:00
andy
37cae8e7ef Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2008-10-28 15:59:55 +00:00
Mark Olesen
eba9bbf0d8 cosmetics 2008-10-28 01:59:42 +01:00
Mark Olesen
ae6bf7790a reworked keyedSurface to store region information indirectly
- improves efficiency throughout
2008-10-28 01:29:51 +01:00
Mark Olesen
9a4de95354 made xfer constructors explicit, with trickle down to polyMesh/fvMesh calls 2008-10-27 13:14:07 +01:00
Mark Olesen
4c3c2385ed blockMesh tweaks
- convertToMeters optional, also allow 'scale'
2008-10-25 17:55:56 +02:00
Mark Olesen
cd199d599e added triSurface scaling option to surfaceConvert/surfaceMeshConvert 2008-10-25 16:54:10 +02:00