Commit Graph

3936 Commits

Author SHA1 Message Date
d7ee0a6fbb Corrected handling of "value" entry to allow post-processing of input file. 2009-12-08 15:06:18 +00:00
b67c07177c Removed "forces" library dependency to avoid many solvers inheriting unnecessary
dependencies.
2009-12-08 15:05:52 +00:00
0a533f700d Corrected the name for the source doc file created by the -srcDoc option. 2009-12-08 15:04:44 +00: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
a820021a0a Adding moment of inertia code, unused as yet. 2009-12-06 12:20:38 +00:00
9f702d722d Merge branch 'master' into particleInteractions 2009-12-06 12:14:03 +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
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
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
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
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
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
bd8ff13669 Cosmetic changes. 2009-12-02 16:37:44 +00:00
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
99b293ffb3 cellMatcher - can use ListOps for identity instead of its own method 2009-12-02 16:43:42 +01:00
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
2f8c7782f4 removed dynamicFvMesh/dynamicRefineFvMesh/dynamicRefineFvMesh.C.save
- was not touched for a very long time, seems to be left over from
  the pre-git era
2009-12-02 14:02:07 +01:00
c3457b5152 argList - specializations for optionRead<string> etc.
- new optionLookupOrDefault and additional form of optionReadIfPresent
  with a default value
2009-12-02 13:45:11 +01:00
8b36e8cdc9 Merge commit 'OpenCFD/master' into olesenm 2009-12-01 18:55:31 +01:00
5b628ebb31 HashSet - use AnyType, AnyHash templates as per HashTable
- this probably should have been in commit c7c9a6e0 (2009-11-04)
  but got overseen in the HashTbl -> HashTable switch
2009-12-01 18:53:15 +01:00
745d8e47d1 probes - use new HashSet::insert() method 2009-12-01 18:32:30 +01:00
a4f4a904f4 HashSet enhancement
- allow insert() and set() from a UList of Key
  This complements the existing erase(const UList<Key>&) method
2009-12-01 18:26:18 +01:00
d0b8aa40f0 trim trailing space in src/sampling 2009-12-01 17:56:35 +01:00
2667382644 probes - handle fields as wordReList
- adjust code to more closely resemble sampledSets / sampledSurfaces
2009-12-01 17:53:18 +01:00