Commit Graph

4666 Commits

Author SHA1 Message Date
Mark Olesen
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
Mark Olesen
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
mattijs
01db239dde Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-07 17:03:37 +00:00
mattijs
3c6befa360 updated tutorial for wildcards in changeDictionaryDict 2009-12-07 17:03:32 +00:00
mattijs
ef3e39dd38 reserve doubles storage (like DynamicList) 2009-12-07 15:00:40 +00:00
mattijs
a8c400de1d added region option 2009-12-07 14:59:57 +00:00
Mark Olesen
8227aee6a2 STARCDsurfaceFormat - read cellTable names from .inp file 2009-12-07 15:33:35 +01:00
Mark Olesen
c183d0875d blockMesh splineEdge - drop old names 'simpleSpline' and 'polySpline' 2009-12-07 13:48:22 +01:00
Mark Olesen
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
Mark Olesen
190bbd69de add corners() method to boundBox 2009-12-07 13:06:03 +01:00
Mark Olesen
45f17a9e6c Merge commit 'OpenCFD/master' into olesenm 2009-12-07 10:41:19 +01:00
Mark Olesen
0b1a73673d cosmetic changes to arcEdge 2009-12-07 09:43:05 +01:00
Mark Olesen
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
graham
a820021a0a Adding moment of inertia code, unused as yet. 2009-12-06 12:20:38 +00:00
graham
f23e3eb3ea Changing linked library from finiteVolume to meshTools. 2009-12-04 17:11:30 +00:00
graham
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
Mark Olesen
1b0cf102cc testing on fileName Istream construction 2009-12-04 16:22:59 +01:00
Mark Olesen
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
Mark Olesen
b634c17e55 fixed off-by-one error in argList text wrap 2009-12-04 14:34:04 +01:00
Mark Olesen
37c4f2f375 remove empty 'Description' from various .C files 2009-12-04 14:11:33 +01:00
Mark Olesen
5e972c772f remove trailing space from some files 2009-12-04 13:39:35 +01:00
Mark Olesen
24543185dc removed cellPointWeight.H.old - left over from pre-git era 2009-12-04 13:30:26 +01:00
Mark Olesen
65e56915fc add single-line version/build info to argList::printUsage 2009-12-04 13:02:34 +01:00
Mark Olesen
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
Mark Olesen
b83e69818b update some old dictionary headers - even found mention of Nabla! 2009-12-04 12:39:14 +01:00
Mark Olesen
975d56086c promote org-mode conversion utilities from bin/tools -> bin/ 2009-12-04 10:49:04 +01:00
Mark Olesen
0e33bf0bba add some usage information to a few utilities 2009-12-04 10:20:15 +01:00
Mark Olesen
ebf94bfc74 cleanup text wrapping code in argList 2009-12-04 10:09:32 +01:00
Mark Olesen
6e3ed58ae5 Merge commit 'OpenCFD/master' into olesenm 2009-12-03 16:40:37 +01:00
henry
3e2425b72b Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-02 22:42:27 +00:00
henry
c8f03c3bef Corrected and simplified solver selection for implicit MULES. 2009-12-02 22:42:10 +00:00
mattijs
1665a86206 more Icc11.1 changes 2009-12-02 18:32:03 +00:00
mattijs
23e5930d83 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-12-02 16:44:12 +00:00
mattijs
4eb40f90ee link all libraries 2009-12-02 16:41:28 +00:00
henry
f686c8d531 Remove spurious warnings from the Icc compiler concerning casting NULL. 2009-12-02 16:39:12 +00:00
henry
2db271b969 Allow copy construction because crappy compilers need them. 2009-12-02 16:38:38 +00:00
mattijs
e31f1c3aeb changed comment 2009-12-02 16:38:34 +00:00
mattijs
5ee1f98e2c linear interpolation always 2009-12-02 16:38:19 +00:00
mattijs
a0a05c1b77 allow region interfaces on processor patches 2009-12-02 16:37:59 +00:00
henry
192c0e56a1 Cosmetic changes. 2009-12-02 16:37:44 +00:00
Mark Olesen
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
Mark Olesen
587401643c add text wrapping to the argList::printUsage output 2009-12-03 16:16:56 +01:00
Mark Olesen
67b79d9206 commit existing sizeof test 2009-12-03 14:40:12 +01:00
Mark Olesen
c091d856ae pedantic changes: 'forAll (' -> 'forAll(' in applications/
- to match coding guidelines
2009-12-03 14:12:08 +01:00
Mark Olesen
58b7e64185 Use argList::addOption, argList::addBoolOption (almost) everywhere
- ensure that the standard options (eg, from timeSelector) also have
  some usage information
2009-12-03 13:32:12 +01:00
Mark Olesen
ca7acea5f4 argList fixes/enhancements
- bugfix: noParallel() didn't remove 'parallel' from validParOptions
  allowing it to sneak through to the Pstream layer.
  noParallel() now clears the entire validParOptions as well

- new convenience methods
  * addOption()
  * removeOption()
  * addBoolOption() - as per addOption(), but for bool options (no param)

- printUsage() output format
  * options sorted alphabetically
  * options listed on separate lines for better readability

- new optionUsage static member for short usage information about
  an option
  * corresponding addUsage() method or provide usage information
    in addOption() / addBoolOption()
2009-12-03 09:32:30 +01:00
henry
bd8ff13669 Cosmetic changes. 2009-12-02 16:37:44 +00:00
Mark Olesen
51fd6327a6 use PackedBoolList typedef instead of PackedList<1>
Note:

PackedList constructor initializes to zero, faster not to do it
ourselves.
ie,
    PackedList foo(nPoints);
vs.
    PackedList foo(nPoints, 0);

saves an extra nPoints operations with shifts/masks etc.

If speed is important, change this type of code

    PackedList isMaster(nPoints, 1u);
    for (loop)
    {
        if (condition)
        {
            isMaster.set(i, 0u);   // unset bit
        }
    }
    return isMaster;

into this:

    PackedList notMaster(nPoints);
    for (loop)
    {
        if (!condition)
        {
            notMaster.set(i, 1u);
        }
    }
    notMaster.flip();
    return notMaster;

or this:

    PackedList isMaster(nPoints);
    isMaster.flip();

    for (loop)
    {
        if (condition)
        {
            isMaster.set(i, 0u);
        }
    }
    return isMaster;
2009-12-02 17:04:31 +01:00
Mark Olesen
99b293ffb3 cellMatcher - can use ListOps for identity instead of its own method 2009-12-02 16:43:42 +01:00
Mark Olesen
00985638d8 remove fvCFD.H usage from remaining library source
- exception calcType.H since it'll most likely be used for building
  applications anyhow

- use quailified names in more of the lagrangian code

- killed some tab indents in various places.
2009-12-02 15:34:52 +01:00