Commit Graph

17013 Commits

Author SHA1 Message Date
c4ac52e6b0 fix: taking carrier specie id 2009-05-19 17:37:04 +01:00
724b034cc7 argList enhancement: added convenience methods for accessing options
Oriented somewhat on dictionary methods.

Return the argument string associated with the named option:
    Info<< "-foo: " << args.option("foo") << nl;

Return true if the named option is found
    if (args.optionFound("foo")) ...

Return an IStringStream to the named option
    old:      value = readScalar(IStringStream(args.options()["foo"])());
    newer:    value = readScalar(args.optionLookup("foo")());
    also:     List<scalar> lst(args.optionLookup("foo")());

Read a value from the named option
    newest:   value = args.optionRead<scalar>("foo");

Read a value from the named option if present.
    old:  if (args.options().found("foo"))
          {
              value = readScalar(IStringStream(args.options()["foo"])());
          }
    new:  args.optionReadIfPresent("foo", value);

Read a List of values from the named option
    patches = args.optionReadList<word>("patches");

Didn't bother adding optionReadListIfPresent<T>(const word&), since it
probably wouldn't be common anyhow.
2009-05-19 18:19:49 +02:00
55e766bd67 Fix: edge lookup from edgeLabels_ by index rather than just from edges 2009-05-19 15:48:54 +01:00
63daefa829 Fix: edge lookup from edgeLabels_ by index rather than just from edges 2009-05-19 15:48:54 +01:00
3efc299dea multiple updates 2009-05-19 15:06:43 +01:00
bbb9e52353 updates to surface reaction models 2009-05-19 15:05:18 +01:00
04064d110b fixed: wrong calculation of H1 2009-05-19 15:03:00 +01:00
1d2a94c38b HashTable minor iterator issues
- made const_iterator::operator* and const_iterator::operator() const only
- added const versions of iterator::operator* and iterator::operator()
2009-05-19 13:14:54 +02:00
de937e59d1 typo - missing ()'s 2009-05-18 19:36:31 +01:00
e28e356487 Removing unnecessary lines of asterisks 2009-05-18 19:15:13 +01:00
f2f7b74f03 added pre-factor for reference field 2009-05-18 19:02:16 +01:00
6f68f6fb20 typo - missing ()'s 2009-05-18 19:36:31 +01:00
2ca4831e61 multiple updates 2009-05-19 15:06:43 +01:00
8883e2b87e fixed: wrong calculation of H1 2009-05-19 15:03:00 +01:00
98fc11e827 added pre-factor for reference field 2009-05-18 19:02:16 +01:00
2f5178f60c updates 2009-05-18 18:05:17 +01:00
13a61cb519 Merge branch 'lagrangianDev' into WBM 2009-05-18 17:13:47 +01:00
f97e559be8 Merge branch 'master' into lagrangianDev 2009-05-18 17:10:02 +01:00
f6108ac023 updated copyright notices 2009-05-18 17:04:50 +01:00
c7d2bbec32 updates 2009-05-18 17:01:58 +01:00
04b673aada added new models 2009-05-18 17:01:20 +01:00
6b0b3453b7 Merge branch 'lagrangianDev' into WBM 2009-05-18 16:48:38 +01:00
6bbd094644 Removal of shrink from DynamicLists 2009-05-18 16:38:54 +01:00
3a4df7a451 refactored gases->carrierSpecies 2009-05-18 16:35:42 +01:00
1c6d3e2cbf Formatting changes 2009-05-18 14:12:06 +01:00
d054f81b57 using 1/3 rule for surface film temperature
comments
2009-05-18 12:06:52 +01:00
5c0b253300 avoid possible div0 2009-05-18 12:06:27 +01:00
428d629d95 Merge branch 'master' into cvm 2009-05-18 11:59:50 +01:00
c29b236d44 Bug fixes from:
http://www.cfd-online.com/Forums/openfoam-bugs/64379-bugs-moleculedynamics-
model.html

http://www.cfd-online.com/Forums/openfoam-bugs/64383-fix-taking-reference-
temporary-object-tetherpotentiallist-c.html
2009-05-18 11:49:32 +01:00
f673d3e338 updated coupling with carrier phase 2009-05-18 11:08:07 +01:00
a0a9cd3366 introduce readList<T> function
- Read a bracket-delimited list, or handle a single value as list of size 1.
  Mostly useful for handling command-line arguments.
  eg,
      if (args.options().found("patches"))
      {
          patches = readList<word>(IStringStream(args.options()["patches"])());
      }
  can handle both of these:
      -patches  patch0
      -patches \( patch1 patch2 patch3 \)
2009-05-18 12:05:52 +02:00
c2d39f1435 adding new coal-based surface reaction moodels 2009-05-18 09:38:31 +01:00
06517656e8 Foam::findEtcFile - avoid false positives on directories
- use isFile() instead of exists() for file-checking
2009-05-18 10:27:32 +02:00
20c1a673e7 'rebrand' OSspecific Unix -> POSIX
- change name of environment variable from $WM_OS -> $WM_OSTYPE
  as a better description
2009-05-18 10:26:11 +02:00
51e8809560 Merge branch 'lagrangianDev' into WBM 2009-05-15 17:13:15 +01:00
34254a29b0 assuming volatile mass does not include mass due to phase change 2009-05-15 16:19:46 +01:00
423cc00ae7 adding const-ness 2009-05-15 14:50:34 +01:00
0fb2546a43 updated for empty specie list 2009-05-15 14:39:01 +01:00
a624d51561 Added further stabilisation for the case where ksStar is very large. 2009-05-15 14:24:42 +01:00
3f11699fce updates for phase change modelling 2009-05-15 13:14:59 +01:00
f27c3cff74 changed notImplemented(...) to warnings under debug mode 2009-05-15 13:14:15 +01:00
b02f6145fd changed setting of carrier global ids for particle solid components 2009-05-15 13:13:24 +01:00
a41e845f97 changed info message 2009-05-15 13:12:18 +01:00
f6e23209de Merge branch 'master' into molecularDynamics 2009-05-15 10:11:02 +01:00
fb9b2219f7 added wmake libso coalCombustion 2009-05-14 18:15:23 +01:00
dfe30f9e46 Merge branch 'lagrangianDev' into WBM 2009-05-14 15:30:48 +01:00
ad67ebcf57 adding general include file 2009-05-14 15:30:15 +01:00
64c0a9813f intial commit of coal combustion functionality 2009-05-14 15:17:47 +01:00
30c7e8aa6c updated coupling with carrier phase 2009-05-14 13:26:41 +01:00
b9eafd250a - min rho, T and p now required in constantProperties
- added (cumulative) contributions due to transfer of mass, mom and energy when
  evaluating cell properties
2009-05-13 12:24:32 +01:00