Commit Graph

4274 Commits

Author SHA1 Message Date
3f0b6ec830 Fix minor bug in ITstream
- The lineNumber of token::undefinedToken was being changed instead of
  just the lineNumber of the return token.

- use List::first() and List::last() methods as well
2009-12-15 09:27:27 +01:00
1b45fab97a Add minor documentation to pTraits specializations. 2009-12-15 09:03:07 +01:00
2df9e0c342 Add very rudimentary output support for wide-characters. 2009-12-15 08:38:06 +01:00
bf2865a087 Add missing low-level peek() to ISstream. 2009-12-11 17:31:15 +01:00
d016db1bc6 Enhance edgeMesh to support more formats.
Read only support:

  .bdf, .nas - NASTRAN format. Handles both CBEAM and CROD as lines.
  CROD is what Hypermesh happens to output.

Write only support:

  .vtk - VTK legacy format in ASCII

Read/write support:
  .eMesh - native format, which is simply a list of points, edges
      with an additional IOobject header that lets them be moved about
      easily to use as a featureEdgeMesh.

  .inp - STAR-CD inp/cel/vrt combination
       IOobject header)

  .obj - Alias waverfront format

Radically simplify surfaceFeatureConvert by using the new edgeMesh
functionality.
2009-12-11 16:29:55 +01:00
46a455ccea Remove unused Istream methods from surfMesh classes.
Move compilation edgeMesh and surfMesh up in the list
(they are independent of triSurface).
2009-12-11 15:04:28 +01:00
0fc464254a Fix minor bug in surfaceFeatureExtract.C 2009-12-09 13:50:31 +01:00
30eac79d55 argList gets addNote() static method
- output any notes in the usage
2009-12-09 10:58:32 +01:00
dd8f4f657a adjust usage for a few applications to account for new style 2009-12-09 10:19:53 +01:00
8d0522633e argList - surround option parameters with <>
- increase usageMin to 20 to compensate for extra <>

- look for _source.html instead of -source.html to match newer doxygen
2009-12-09 09:03:49 +01:00
94ab70b94d only using part of fvc that is needed - fvc.H brings in everything... 2009-12-08 11:18:26 +00:00
426a74efdf cosmetics 2009-12-08 11:17:49 +00:00
41fc71458b Use the PackedList unset() method in a few places
- also PackedBoolList.get(x) == 1 can be written without the ==
  comparison since the unsigned -> bool conversion is fast
2009-12-08 11:16:43 +01:00
d2d39c32be HashSet and PackedList get an unset() method
- provides a convenient (and lazy) means of removing entries
2009-12-08 10:01:48 +01:00
16c715ceec Applied Mattijs' PackedList improvements
- resize with factor 2 as per DynamicList

Old insertion speed:
    1000000 in 0.61 s
    2000000 in 2.24 s
    3000000 in 3.97 s
    4000000 in 5.76 s
    5000000 in 7.54 s
    6000000 in 9.41 s
    7000000 in 11.5 s

New insertion speed:
    1000000 in 0.01 s
    2000000 in 0.02 s
    3000000 in 0.01 s
    4000000 in 0.02 s
    5000000 in 0.01 s
    6000000 in 0.01 s
    7000000 in 0.01 s
2009-12-08 09:42:38 +01:00
8227aee6a2 STARCDsurfaceFormat - read cellTable names from .inp file 2009-12-07 15:33:35 +01:00
c183d0875d blockMesh splineEdge - drop old names 'simpleSpline' and 'polySpline' 2009-12-07 13:48:22 +01:00
a19e488f1e consistency update - writeCompression in system/controlDict
allow switch/bool values for writeCompression in system/controlDict

- eg,
    writeCompression false; or writeCompression uncompressed;
    writeCompression true;  or writeCompression compressed;

improves consistency with other controlDict parameters
2009-12-07 13:40:32 +01:00
190bbd69de add corners() method to boundBox 2009-12-07 13:06:03 +01:00
45f17a9e6c Merge commit 'OpenCFD/master' into olesenm 2009-12-07 10:41:19 +01:00
0b1a73673d cosmetic changes to arcEdge 2009-12-07 09:43:05 +01:00
73f9f7f780 Remove legacy splines code and use CatmullRomSpline as 'spline'
- compatibility:
  * 'polySpline' and 'simpleSpline' accepted
  * detect and discard end tangent specifications

- a BSpline is also included (eg, for future support of NURBS), but is
  not selectable from blockMesh since it really isn't as nice as the
  Catmull-Rom (ie, doesn't *exactly* go through each point).
2009-12-07 06:54:06 +01:00
f23e3eb3ea Changing linked library from finiteVolume to meshTools. 2009-12-04 17:11:30 +00:00
6b7dd8160d Adding a function to calculate the moment of inertia of a triangle to
triangle, from:

http://en.wikipedia.org/wiki/Inertia_tensor_of_triangle

Adding the ability to calculate the inertia tensor of a polygon face
by summing the triangle inertias.

Added a test application to draw a test face with its principal
axes and moments of inertia.
2009-12-04 16:33:46 +00:00
1b0cf102cc testing on fileName Istream construction 2009-12-04 16:22:59 +01:00
066b3158e7 quickly implemented BSpline2 as an alternative B-Spline implementation
- also looks reasonable and doesn't deviate much from Catmull-Rom
2009-12-04 15:34:42 +01:00
b634c17e55 fixed off-by-one error in argList text wrap 2009-12-04 14:34:04 +01:00
37c4f2f375 remove empty 'Description' from various .C files 2009-12-04 14:11:33 +01:00
5e972c772f remove trailing space from some files 2009-12-04 13:39:35 +01:00
24543185dc removed cellPointWeight.H.old - left over from pre-git era 2009-12-04 13:30:26 +01:00
65e56915fc add single-line version/build info to argList::printUsage 2009-12-04 13:02:34 +01:00
79b53a9c6c rename BSplineTest to splineTest and add Catmull-Rom to it
- the current B-Splines deliver rubbish
2009-12-04 12:54:15 +01:00
b83e69818b update some old dictionary headers - even found mention of Nabla! 2009-12-04 12:39:14 +01:00
975d56086c promote org-mode conversion utilities from bin/tools -> bin/ 2009-12-04 10:49:04 +01:00
0e33bf0bba add some usage information to a few utilities 2009-12-04 10:20:15 +01:00
ebf94bfc74 cleanup text wrapping code in argList 2009-12-04 10:09:32 +01:00
6e3ed58ae5 Merge commit 'OpenCFD/master' into olesenm 2009-12-03 16:40:37 +01:00
3e2425b72b Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-02 22:42:27 +00:00
c8f03c3bef Corrected and simplified solver selection for implicit MULES. 2009-12-02 22:42:10 +00:00
1665a86206 more Icc11.1 changes 2009-12-02 18:32:03 +00:00
23e5930d83 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-02 16:44:12 +00:00
4eb40f90ee link all libraries 2009-12-02 16:41:28 +00:00
f686c8d531 Remove spurious warnings from the Icc compiler concerning casting NULL. 2009-12-02 16:39:12 +00:00
2db271b969 Allow copy construction because crappy compilers need them. 2009-12-02 16:38:38 +00:00
e31f1c3aeb changed comment 2009-12-02 16:38:34 +00:00
5ee1f98e2c linear interpolation always 2009-12-02 16:38:19 +00:00
a0a05c1b77 allow region interfaces on processor patches 2009-12-02 16:37:59 +00:00
192c0e56a1 Cosmetic changes. 2009-12-02 16:37:44 +00:00
063d8edea1 PackedBoolList specializaton for operator=
- now that I re-examined the code, the note in commit 51fd6327a6
  can be mostly ignored

  PackedList isMaster(nPoints, 1u);
  is not really inefficient at all, since the '1u' is packed into
  32/64-bits before the subsequent assignment and doesn't involve
  shifts/masking for each index

  The same misinformation applies to the PackedList(size, 0u) form.
  It isn't much slower at all.

  Nonetheless, add bool specialization so that it is a simple assign.
2009-12-03 16:33:58 +01:00
587401643c add text wrapping to the argList::printUsage output 2009-12-03 16:16:56 +01:00