Commit Graph

3936 Commits

Author SHA1 Message Date
295d503d83 PackedList tweaks
- set() handles overflow as max_value() - the principle of least surprise.
- use pointers in iterator to avoid any assignment issues. Allows default
  bitwise copy/assignment.
2009-01-26 10:16:37 +01:00
94dc33da2e Merge commit 'bundle/home' into olesenm 2009-01-26 08:28:15 +01:00
84ec272d23 PackedList changes
- added Mattijs' speed tests
- optimized resize() and assignment operators to avoid set() method
- add const_iterator and re-did the proxy handling.

Reading/writing by looping across iterators is still somewhat slow, but
might be acceptable.
2009-01-26 00:33:28 +01:00
a922f81999 one-off warning for unsorted boundaries 2009-01-23 17:57:30 +00:00
ce14f243c6 Removed handling of single-quoted strings. 2009-01-23 15:17:01 +01:00
42c04b8505 Merge commit 'OpenCFD/master' into olesenm 2009-01-23 12:51:45 +01:00
f86636edd1 Merge commit 'OpenCFD/master' into olesenm 2009-01-23 10:24:02 +01:00
41c1239a74 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-23 08:59:39 +00:00
6bd41c513d missing assignment operator 2009-01-23 08:59:28 +00:00
45bfb91afb thisDb to get at objectRegistry 2009-01-23 08:46:54 +00:00
55c48861b3 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-23 08:35:38 +00:00
3be01b9e86 Added "max" and "min" constants to the primitive types which represent the
largest and smallest representable values.  Accessible directly and via pTraits.
2009-01-23 08:35:29 +00:00
3684da1bc3 Merge commit 'OpenCFD/master' into olesenm 2009-01-23 08:26:50 +01:00
cc4cd0a171 PackedList: encapsulate calculations in an iterator
- eliminated previous PackedBitRef class, the iterator does all of that and
  can also be used to (forward) traverse the list
- no const_iterator yet

- Note that PackedList is also a bit like DynamicList in terms of storage
  management and the append() method. Since the underlying storage in
  integer, any auto-vivified elements will also flood-fill the gaps with
  zero.
2009-01-23 01:40:55 +01:00
40c1c2b2af XYZ files should be in angstroms, scaling appropriately. 2009-01-22 20:30:38 +00:00
bd4d8db171 Added XYZ site writer 2009-01-22 19:39:57 +00:00
1b9bef5dd3 Adding vectors for global pi and tau as well as a triplet of orientation vectors to visualise rotational motion to written fields for post-processing. 2009-01-22 17:20:48 +00:00
5140b7c577 renamed directory 2009-01-22 17:07:49 +00:00
173607fd2d PackedList gets functionality akin to DynamicList 2009-01-22 16:24:05 +01:00
8ccd361f56 promoted omega0 and omegaSmall to RASModel to be consistent with epsilon0 and epsilon0
- removed Cmu from kOmegaSST models - not used
- general tidying up
2009-01-22 10:42:48 +00:00
0b859cba7d updated incompressible models so that fields that are looked-up can be optionally specified 2009-01-21 17:00:04 +00:00
c48d6279a5 updated compressible models so that fields that are looked-up can be optionally specified 2009-01-21 16:58:54 +00:00
7fe6fca4df added helper function for writing entries if not default 2009-01-21 16:55:25 +00:00
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
4da086b141 Merge commit 'bundle/home' into olesenm 2009-01-21 08:36:37 +01:00
0690c64d31 PrimitivePatchExtra orientation fixed and improved face::edgeDirection() 2009-01-21 01:19:31 +01:00
29db6a6517 Merge commit 'OpenCFD/master' into olesenm 2009-01-20 18:56:29 +01:00
2723998c7b Merge branch 'master' into molecularDynamics 2009-01-20 17:24:45 +00:00
372cd1b0e6 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-20 13:35:56 +00:00
21067168dd tidying up 2009-01-20 13:33:58 +00:00
98481bc0fe Avoid jump in deltaT for restarts 2009-01-20 13:28:52 +00:00
7e08613522 tidying up 2009-01-20 12:09:12 +00:00
ce12ace5a6 typo 2009-01-20 12:05:51 +00:00
7b769b5035 added C++0x-style cbegin(), cend() iterator methods
- added STL-compatible resize() method.
  Should this be the primary entry point?

- made [DS]LListBase end iterators private
2009-01-20 10:55:39 +01:00
19fc795489 Merge commit 'OpenCFD/master' into olesenm 2009-01-20 09:22:45 +01:00
887ea6e066 removed boundary condition update 2009-01-19 19:11:09 +00:00
5602a440d0 new searchableSurface: infinite plane 2009-01-19 18:13:55 +00:00
fc2d438c97 parallel operation 2009-01-19 18:13:10 +00:00
ba6f878f6b added copy constructor since List copy constructor does not know about allocated size 2009-01-19 12:46:00 +00:00
9087cd7b8e Support for single-quoted strings
- token class handles both single and double quoted strings. Single quoted
  strings are used to tag regular expressions. At the moment this is just
  syntactical sugar and isn't (yet) treated differently than double-quoted
  strings.

- write output for std:string, with/without single quotes with the method
  writeQuoted(). Use distinct method name to avoid inadvertent compiler
  conversions.

- write wordRe and keyType using writeQuoted()
2009-01-19 11:33:37 +01:00
96751f7e02 Applied Mattijs' DynamicList copy constructor patch 2009-01-19 14:31:31 +01:00
7ab7eaa4e6 stringListOps - allow 'const char*' and 'const std::string&' arguments 2009-01-19 13:58:06 +01:00
2998f15d55 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-17 14:07:03 +00:00
db88110676 signed distance surface error 2009-01-17 13:59:12 +00:00
a83961a02a coordinate system cleanup
- coordinateSystem, cylindricalCS, sphericalCS:
  get copy with name constructor

- cylindricalCS, sphericalCS:
  can switch off default degrees

- dropped cartesianCS class (already covered by coordinateSystem) and just
  always use coordinateSystem directly.
  The dictionary runtime selection still accepts type "cartesian" as an alias,
  to provide the least surprises.

- dropped runtime selection based on origin/axis/direction (not used), but
  left runtime selection based on origin/coordinateRotation as still being
  potentially useful.
2009-01-16 22:08:24 +01:00
c20ab11afb bool and Switch reworked
- Switch now stores its value as an unsigned char, which gives it the same
  storage requirement as bool (1 byte). The original implementation had both
  bool+word (1+XXX bytes storage), an intermediate version with bool+enum
  had 8 bytes (1+4 + boundary alignment).

- The reading code in boolIO.C and SwitchIO.C is now identical except for
  the error message. This allows Switch to accept '1', '0' as logical
  values, and allows bool to accept 'yes', 'no' etc. as logical values.

- The Switch text translation of a bool value is now true/false instead of
  on/off. This is partly personal preference, but we could also output the
  same text when writing a bool value to Ostream.

- Switch gets null and integer constructors so it feels more like bool.
  Added Switch::operator=(const bool);

- Low-level types can be used for the constructors, and low-level return
  values are used for the greatest flexibility (and speed).

- Fixed bugginess with dictionary lookup. The previous version actually used
  a bool instead of a Switch and bombed on 'on/off'.

TODO?
  perhaps don't worry about the error message and just call the Switch
  routines from bool.
2009-01-16 19:08:27 +01:00
d5cbc3bf08 cosmetic cleanups
- grammar in comments, namespace qualifiers, etc.
2009-01-16 19:07:14 +01:00
399e6a3bab Modifying site virial contribution. 2009-01-16 17:43:21 +00:00
e5f598542b debug message 2009-01-16 17:14:52 +00:00
b1800b8b92 adding mag/component options 2009-01-16 15:45:52 +00:00