Commit Graph

1977 Commits

Author SHA1 Message Date
19fc795489 Merge commit 'OpenCFD/master' into olesenm 2009-01-20 09:22:45 +01: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
e5f598542b debug message 2009-01-16 17:14:52 +00:00
3c426d3b2e wildcard usage 2009-01-16 17:14:24 +00:00
7aee58e5fa Switch : drop word data member in favour of enum 2009-01-16 14:06:36 +01:00
3adf0f5c8e minor cleanup for reverted string changes (commit 4f5f66e759)
- put back debug switch (even although it is never used)
- remove stringsGlobals.C, since it is now never used
2009-01-16 12:27:03 +01:00
be9051d375 Merge commit 'OpenCFD/master' into HEAD 2009-01-16 12:26:11 +01:00
b6b5eb17d7 dimensionedType gets plain lookupOrDefault() static method 2009-01-16 12:17:02 +01:00
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
4395170915 Put back
static const char* const typeName;
        static int debug;

which had disappeared.
2009-01-15 16:57:01 +00:00
bd04dc7b59 Some stuff 2009-01-15 16:45:44 +00:00
851a5f1c81 Many corrections and improvements. 2009-01-15 16:41:31 +00:00
4f5f66e759 Reverted change concerning the location of the construction of the "null" strings.
Changed dotFoam function to use null-constructed strings rather that the "null" strings.
2009-01-15 16:41:08 +00:00
a2b24d07a8 draft for having a resizing granularity in DynamicList
- nice idea, but need to convince compiler that division by zero doesn't occur
2009-01-15 10:03:23 +01:00
81184573c8 added regExp::empty() method 2009-01-14 14:45:25 +01:00
f679bd5003 Merge commit 'OpenCFD/master' into olesenm 2009-01-14 14:32:01 +01:00
dde4ca5bf7 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-14 12:36:22 +00:00
782bd24fb1 unsynchronised looping 2009-01-14 12:24:42 +00:00
f69806b9d2 optional perpendicular reading 2009-01-14 12:24:27 +00:00
9a1d3aec1d debug printing 2009-01-14 12:24:09 +00:00
03c7baf787 adding kinematic->dynamic pressure function object 2009-01-14 11:58:03 +00:00
ee416e8105 promoting MESA paths to top level 2009-01-14 11:57:05 +00:00
e16a7676cb minor updates + removed old FoamX cfg option 2009-01-14 10:21:59 +00:00
e059870ad2 typo 2009-01-14 10:21:16 +00:00
9bce583063 SortableList, sortedOrder - micro-optimization 2009-01-14 10:15:01 +01:00
1bd5737782 remove spurious references to INTERFOAM 2009-01-13 18:44:27 +00:00
45bf07beaa Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-13 18:05:03 +00:00
4cc5ec39ea applying update from Graham 2009-01-13 18:03:18 +00:00
95010f7b47 minor typo 2009-01-13 17:45:05 +00:00
8152f4f8d1 Removing two older solvers. 2009-01-13 17:44:42 +00:00
be789cf9a3 consistency update 2009-01-13 17:39:00 +00:00
654f844386 moved field-related function objects to field subfolder 2009-01-13 17:29:54 +00:00
44eeb27b52 Dealing with molecules that do not have all 3 diagonal components of the principal axis inertia tensor, i.e. point masses (mono-atomics) and linear molecules (diatomics and CO2 for example). 2009-01-13 16:50:11 +00:00
fe1f5ebec0 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-13 16:35:50 +00:00
bc3600f528 const reference to thermo 2009-01-13 16:35:45 +00:00
34c3702f1e Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-13 15:51:09 +00:00
4b8e8e3ecb adding basic add functionality 2009-01-13 15:50:01 +00:00
c1a32fa8f1 made gradient dimensioned 2009-01-13 15:47:57 +00:00
30964be5c2 Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev 2009-01-13 12:14:43 +00:00
fa8f316ecc Adding pressure measurement via r dot f and temperature measurement and control including rotational energy. Adding random orientation on initialisation. Modifying constantProperties construction to detect point masses. Tidy up hitWallPatch function to remove commented out stochastic wall code. 2009-01-12 17:35:57 +00:00