Commit Graph

2698 Commits

Author SHA1 Message Date
d535ebc906 adding Mark's change to the build PV options 2009-07-08 11:20:46 +01:00
8edf105c45 cleanup of time handling (cosmetic changes), used timeSelector in more places 2009-05-20 15:40:30 +02:00
7941b04785 Merge commit 'OpenCFD/master' into olesenm 2009-05-19 21:15:56 +02:00
d1295da31f adjust solvers and utilities to use new argList methods
- also drop various unused time options from src/OpenFOAM/include
2009-05-19 20:21:50 +02: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
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
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
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
a624d51561 Added further stabilisation for the case where ksStar is very large. 2009-05-15 14:24:42 +01:00
2aec8f2820 renamed buildParaView3.5-cvs -> buildParaView and reworked
- get version from $ParaView_VERSION or from -version option
- added QT gui support (useful when compiling enGrid)
- update files for finding cmake-2.6.4 as well
- added bin/engridFoam for calling a version of enGrid that uses the
  paraview libraries compiled with/for OpenFOAM
- added foam3rdParty change directory alias
2009-05-13 11:31:44 +02:00
100e27dfa3 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
Conflicts:
	src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutRoughWallFunction/nutRoughWallFunctionFvPatchScalarField.C

Conflicts:
	src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutRoughWallFunction/nutRoughWallFunctionFvPatchScalarField.C
2009-05-13 00:06:11 +01:00
0d2fd6b252 Added stabilisation to the nut update. 2009-05-13 00:02:36 +01:00
58aa677a74 bugfix: removed reference to tmp field 2009-05-12 18:31:13 +01:00
72362de6b1 foamToEnsight* fixes and tweaks
foamToEnsight:
    - add -noPatches option
    - had incorrect part# when the internalMesh was not output
    - case file is always ascii

foamToEnsightParts:
    - fixed field selection bug,
      no fields were selected when a single time-step was selected
2009-05-12 12:37:25 +02:00
69c7280f50 Merge branch 'olesenm' 2009-05-12 10:59:45 +01:00
0ee817a060 Also added a separate specification of the static pressure level but the
location for the specification is the same as that for the pd level.
2009-05-11 23:19:56 +01:00
6562861180 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-05-11 21:20:02 +01:00
f2d00b3230 Improve reference handling. 2009-05-11 21:19:55 +01:00
f983e0b42e Correct handling of MANPATH so that the system settings are not overridden. 2009-05-11 21:19:26 +01:00
4366d8df2c cosmetics - adjust copyright dates 2009-05-11 15:10:31 +02:00
774cf8b4db Merge commit 'OpenCFD/master' into olesenm
- with minor additional changes
2009-05-11 13:55:06 +02:00
0bc18a26f6 bugfix decomposePar
- explicitly remove any previously decomposed 'mut' and 'nut' when
  decomposing fields since they can otherwise prevent the turbulence model
  from being upgraded properly.
  Removing all decomposed fields first might be a better idea in the
  long-term, but would probably be slower.
2009-05-11 10:52:51 +02:00
19d951ce86 minor cleanup of turbulence models
- added constructor dictionary(const dictionary*) that also handles NULL
  pointers and makes it convenient to construct from a possibly nonexistent
  sub-dictionary:
  eg,
      dictionary dict2(dict1.subDictPtr("someDict"));

- make some of the turbulence Coeffs sub-dictionary optional.
  Their contents are all 'lookupOrAddDefault' anyhow.

- in turbulentMixingLength BCs, skip namespace qualifier in template
  (eg, <RASModel> vs. <compressible::RASModel>)

- change comments from 'turbulenceProperties' to RASProperties/LESProperties

- consistency between compressible/incompressible - no separate file for
  'New' selector etc

- consistency in accessing the model coefficients.
  Use method coeffDict() for const access.
  Use protected data member coeffDict_ for read/write access.

- document model coefficients in etc/constant/RASProperties.
  Need the same for LESProperties before we can prune these from the
  tutorials.
2009-05-08 17:27:42 +02:00
7deb4aa2a9 added alphaSgs wall functions - need checking 2009-05-08 13:32:00 +01:00
c0fcf87cb9 comment 2009-05-08 13:07:21 +01:00
1c101ec1a8 bugfix fixedBlended scheme, cosmetics changes
- actually blend correction factors as well in fixedBlended scheme

- consistency change: move 'linearUpwindV' into same directory as
  'linearUpwind', move correction code from .H into .C code.

- minor docu format/spelling changes

A more general question:
~~~~~~~~~~~~~~~~~~~~~~~~
- would it make more sense to use template specializations for the
  '*V' differencing schemes?
2009-05-08 13:05:19 +02:00
d2a78f7e96 finally drop references to ~/.OpenFOAM-<ver> (use ~/.OpenFOAM/<ver>) 2009-05-07 10:37:55 +02:00
1cdbeb29d7 minor tweak to wmake
- place wmkdep and dirToString executables under
  utilbin/$(WM_ARCH)$(WM_COMPILER).
  This helps somewhat when copying rules about, and might help when creating
  general rules.
2009-05-06 15:56:29 +02:00
b6be0105b1 Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev 2009-05-06 13:13:03 +01:00
51f443a345 Merge commit 'OpenCFD/master' into olesenm
Conflicts:
	applications/utilities/mesh/manipulation/createBaffles/createBaffles.C

Can't use [0] to assign the first value of a DynamicList unless it has been
preceded by a setSize() - use append() instead.
2009-05-06 09:33:38 +02:00
395298292d Renamed the LES wall-function back to how it was because it is more generally applicable than just to the Spalart Allmaras model. 2009-05-05 21:58:38 +01:00
162f9d57d8 Fix from Niklas. 2009-05-05 21:25:48 +01:00
01184dfb33 Minor typo correction. 2009-05-05 21:25:22 +01:00
ac37ed4537 Made floatTransfer 0 by default. 2009-05-05 21:25:01 +01:00
fbf67192e0 Change to keep gcc-4.4.0 happy. 2009-05-05 21:24:19 +01:00
48c6fbcab2 Added tags file to help locate files. 2009-05-05 21:23:56 +01:00
6e10b0defd adjusted dictionary #inputMode directive
- #inputMode error
  now issues a FatalError on duplicate entries

- #inputMode warn
  issues a warning on duplicate entries, corresponds to the
  old behaviour of 'error'

- #inputMode protect
  prevents overwriting existing entries

The 'protect' mode provides a simple mechanism for supplying default values.
eg,
    in file1:
        #inputMode  protect
        intensity       0.1;
        mixingLength    0.005;
        #inputMode  merge

        inlet
        {
            type        turbulentIntensityKineticEnergyInlet;
            intensity   $intensity;
        }

    which is included from file2:

        intensity   0.05;
        #include    "file1"
2009-05-05 13:18:29 +02:00
0be0e96fb9 added 'fixedBlended' scheme - uses a single global blending factor
- fixed misc. copyright dates, other cosmetics
2009-05-04 16:28:07 +02:00
f9869e0044 changed message for if cell not found 2009-05-01 12:58:08 +01:00
3f41f77db3 tolerance tightened 2009-05-01 12:57:47 +01:00
3d88003e77 order of creation consistent with cyclics 2009-04-30 20:31:13 +01:00
cb97fa675e use total number of cells/points in parallel 2009-04-30 15:43:20 +01:00
fb1256521a added options handling 2009-04-30 15:42:51 +01:00
6b5f282937 print ray directions 2009-04-30 09:24:31 +01:00
d78cf44114 changed error messages 2009-04-30 09:23:39 +01:00
fd44798f82 avoid persistent settings and spurious messages when re-reading fvSchemes
- emit warning for deprecated timeScheme entry
2009-04-30 09:45:03 +02:00
433b209702 update to openmpi-1.3.2, prepare for newly released gcc-4.4
- added rules for gcc-4.3 in preparation for switching to gcc-4.4

- added 'clean' target for wmake/src/Makefile
  It is probably reasonable to separate the binaries from the rules (TODO)
2009-04-30 08:32:48 +02:00
80d533325a added comment 2009-04-29 11:56:08 +01:00