OpenFOAM release notes for version 1.6
Table of Contents
- 1 Overview
- 2 GNU/Linux version
- 3 C++ Compiler version
- 4 Library developments
- 5 Solvers
- 6 Boundary conditions
- 7 Utilities
- 8 Post-processing
- 9 Tutorial restructuring
- 10 Third-party Software
1 Overview
OpenFOAM-1.6 is a significant upgrade to version 1.5 in ways that are outlined below. This release passes all our standard tests and the tutorials have been broadly checked. If there are any bugs, please report them using the instructions set out here: http://www.OpenFOAM.org/bugs.html.
2 GNU/Linux version
The 32bit and 64bit binary packs of the OpenFOAM release were compiled on a machine running openSUSE GNU/Linux version 11.1 and also tested on Ubuntu 9. We recommend that users run OpenFOAM on one of these, or on a similarly recent version of GNU/Linux. This release has also been successfully compiled and tested on older GNU/Linux releases, but this requires the installation of Qt 4.3.? (the sources for which are supplied with OpenFOAM-1.6, see README) for ParaView-3 to run.
3 C++ Compiler version
- Release compiled with GCC 4.3.3.
- Built-in support for the Intel C++ 10.? compiler (untested).
-
The choice of the compiler is controlled by the setting of the
$WM_COMPILERand$WM_COMPILER_ARCHenvironment variables in the OpenFOAM-1.6etc/bashrc/ (or cshrc) file. -
The location of the compiler installation is controlled by the
$compilerInstallenvironment variable in the OpenFOAM-1.6etc/settings.sh/ (or settings.csh) file.
4 Library developments
4.1 Core library
4.1.1 Dictionary improvements/changes
- Dictionaries can use words (unquoted) or regular expressions (quoted) for their keywords. When searching, an exact match has priority over a regular expression match. Multiple regular expressions are matched in reverse order.
-
The new
#includeIfPresentdirective is similar to the#includedirective, but does not generate an error if the file does not exist. -
The default
#inputModeis now 'merge', which corresponds to the most general usage. The#inputMode warncorresponds to the previous default behaviour. -
The new
#inputMode protectcan be used to conditionally merge default values into existing dictionaries. -
New
digest()method to calculate and return the SHA1 message digest.
4.1.2 Regular Expressions
The addition of regular expressions marks a major improvement in usability.
-
New
regExpclass provides support for accessing POSIX extended regular expresssions from within OpenFOAM. -
New
wordReclass can contain awordor aregExp. -
New
stringListOpsto search string lists based on regular expressions,wordReorwordReList. -
IstreamandOstreamnow retain backslashes when reading/writing strings.
4.1.3 Convenience changes
-
IOobjecthas a new constructor for creating anIOobjectfrom a single-path specification (eg, seeblockMesh -dictoption). -
argListhas new convenience methods for accessing options more directly:option(),optionFound(),optionLookup(),optionRead(),optionReadIfPresent(). -
The new
readList(Istream&)can read a bracket-delimited list or handle a single value as a list of size 1. This can be a useful convenience when processing command-line options. -
Export new environment variable
FOAM_CASENAMEthat contains the name part of theFOAM_CASEenvironment variable.
4.2 Turbulence modelling
-
Major development of turbulence model libraries to give extra flexibility
at the solver level. For solvers that can support either RAS/LES
computations, the selection is made in the
constantturbulenceProperties/, by setting the
simulationTypekeyword to:-
laminar, -
RASModel, -
LESModel.
-
-
Depending on the selection, the model is the instantiated from constant/
- RASProperties,
- LESProperties.
4.2.1 RAS wall functions
Wall functions are now run-time selectable per patch for RAS.
-
Velocity:
-
Apply to turbulent viscosities
nutormut, -
Apply to
k,Q,R, -
Apply to
epsilon,omega.
-
Apply to turbulent viscosities
-
Temperature:
-
Apply to turbulent thermal diffusivity,
alphat(compressible only).
-
Apply to turbulent thermal diffusivity,
-
To apply wall functions:
-
To recapture the functionality of previous OpenFOAM versions (v1.5 and
earlier) assign:
-
for velocity:
-
nut:nutWallFunction, -
mut:muWallFunction, -
epsilon:epsilonWallFunction, -
omega:omegaWallFunction, -
k,q,R:kqRWallFunction.
-
-
for temperature:
-
alphat:alphatWallFunction.
-
-
for velocity:
-
New
alphaSgsJayatillekeWallFunctionthermal wall function for compressible LES.
-
To recapture the functionality of previous OpenFOAM versions (v1.5 and
earlier) assign:
4.2.2 New LES turbulence models
- Spalart-Allmaras DDES.
- Spalart-Allmaras IDDES.
4.2.3 Upgrading:
-
New utility -
applyWallFunctionBoundaryConditions. -
Solvers will automatically update existing cases.
-
New fields created based on the presence of the
nut/mutfield. - Boundary conditions include scoping, i.e compressibility:: for compressible solvers.
- Modified fields will be backed-up to <field>.old.
-
New fields created based on the presence of the
-
NOTE:
- Fields are only updated for those fields associated with the current turbulence model selection, i.e. if fields exist for use with other models, they will not be updated.
- The new specification is not backwards compatible.
4.3 Thermo-physical Models
-
Old compressibility-based thermo package renamed
basicThermo→basicPsiThermo. -
New
basicRhoThermothermo package.- Additional density field stored.
- General form - can be used for other types of media, e.g. liquids.
-
Additional polynomial-based thermodynamics:
-
Equation of state:
icoPolynomial, -
Transport:
polynomialTransport, -
Thermo:
hPolynomialThermo.
-
Equation of state:
-
Removed earlier hard-coding of gas thermophysics for chemistry modelling:
-
reactingMixturenow templated on thermo package, -
chemistryModelnow templated on thermo package, -
chemistrySolvernow templated on thermo package.
-
-
New
fvDOMradition model- finite volume, discrete ordinates method.
-
New (reinstated)
eThermothermodynamics package- internal energy-based thermodynamics.
4.4 Lagrangian
4.4.1 Intermediate
- Overhaul of the underlying framework.
- Reacting now split into reacting and reacting multiphase.
- New structure for variable composition.
-
Many new sub-models, including:
-
Injection
-
PatchInjection- injection local to patch face cells, -
FieldActivatedInjection- injection based on satisfying external criterion, - LookupTableInjection - explicity define injection locations and all parcel properties.
-
-
Post-processing
- patch post-processing - collect data for parcels impacting user, defined patches.
-
Patch interaction
- generalised behaviour for parcel interaction with patch.
-
Phase change
- liquid evaporation.
-
Injection
4.4.2 Coal combustion
-
New library - extension of reacting-multiphase functionality.
- Surface reaction/combustion models.
4.5 Discrete methods
-
New library offering DSMC simulation functionality - see
dsmcFoambelow. -
Significant development of the libraries offering molecular dynamics
simulation functionality - see
mdFoamandmdEquilibrationFoambelow.
4.6 Numerics
-
new polynomial-fit higher-order interpolation schemes:
-
biLinearFit -
linearFit -
quadraticLinearFit -
quadraticFit -
linearPureUpwindFit -
quadraticLinearPureUpwindFit -
quadraticLinearUpwindFit -
quadraticUpwindFit -
cubicUpwindFit
-
-
new polynomial-fit higher-order Sn-Grad:
quadraticFitSnGrad.
4.7 New surfMesh library
Provides a more efficient storage mechanism than possible with triSurface
without restrictions on the shape of the face (templated parameter).
-
MeshedSurfaceclass - with zero or more contiguoussurfZones. -
UnsortedMeshedSurfaceclass - unordered surface zones (as pertriSurface). -
surfMeshclass - for reading/writing in native OpenFOAM format.
5 Solvers
5.1 Solver restructuring
The upgrade to the turbulence models means that the simulation type, i.e. laminar, RAS or LES can be selected at run time. This has allowed a reduction in the number of solvers, simplifying the overall code structure
-
Solvers which support laminar, RAS and LES:
-
turbFoam,oodles→pisoFoam. -
turbDyMFoam→pimpleDyMFoam. -
rhoTurbFoam,coodles→rhoPisoFoam. -
xoodles→ absorbed intoXiFoam. -
buoyantFoam,lesBuoyantFoam→buoyantPisoFoam. -
interFoam,rasInterFoam,lesInterFoam→interFoam. -
lesCavitatingFoam,rasCavitatingFoam→cavitatingFoam.
-
-
Solvers which support LES only:
-
channelOodles→channelFoam(LES).
-
-
pdreplaced by static pressurep. All solvers in which buoyancy affects might be strong have been converted from usingpdtopwith improved numerics to give equally good accuracy and stability. This change is prompted by the need to remove the confusion surrounding the meaning and purpose ofpd. -
g(acceleration due to gravity) is now a newuniformDimensionedVectorFieldwhich has the behaviour of a field, is registered to anobjectRegistry, but stores only a single value. Thusgand otherUniformDimensionedFieldscan be created and looked-up elsewhere in the code, e.g. infvPatchFields.
5.2 Solver control improvements
Now uses consistent dictionary entries for the solver controls.
- This Allows dictionary substitutions and regular expressions in systemfvSolution/.
-
The old solver control syntax is still supported (warning emitted), but
the new
foamUpgradeFvSolutionutility can be used to convert systemfvSolution/ to the new format.
5.3 New Solvers
-
buoyantBoussinesqSimpleFoamSteady state heat transfer solver using a Boussinesq approximation for buoyancy, with laminar, RAS or LES turbulence modelling. -
buoyantBoussinesqPisoFoamTransient heat transfer solver using a Boussinesq approximation for buoyancy, with laminar, RAS or LES turbulence modelling. -
coalChemistryFoamTransient, reacting lagrangian solver, employing a coal cloud and a thermo cloud, with chemistry, and laminar, RAS or LES turbulence modelling. -
porousExplicitSourceReactingParcelFoamTransient, reacting lagrangian solver, employing a single phase reacting cloud, with porous media, explicit mass sources, and laminar, RAS or LES turbulence modelling. -
rhoReactingFoamDensity-based thermodynamics variant of the reactingFoam solver, i.e. now applicable to liquid systems. -
dsmcFoamDSMC (Direct Simulation Monte-Carlo) solver for rarefied gas dynamics simulations, able to simulate mixtures of an arbitrary number of gas species. The variable hard sphere collision model with Larsen-Borgnakke internal energy redistribution (see "Molecular Gas Dynamics and the Direct Simulation of Gas Flows" G.A. Bird, 1994) is available; other run-time selectable collision models can be easily added.
5.4 Updated solvers
-
mdFoamMolecular Dynamics (MD) solver able to simulate a mixture of an arbitrary number of mono-atomic and small, rigid polyatomic (i.e. H2O, N2) molecular species, with 6 degree of freedom motion, in complex geometries. A molecule of any species can be built by specifying its sites of mass and charge. All molecules interact with short-range dispersion forces and pairwise electrostatic interactions using methods described in: Fennell and Gezelter, J. Chem. Phys. 124, 234104 (2006). -
mdEquilibrationFoamSimilar to mdFoam, but employs velocity scaling to adjust the simulation temperature to a target value. Useful to equilibrate a case before simulation. -
chtMultiRegionFoamNew boundary condition allows independent decomposition of coupled regions without any constraint on the decomposition.
6 Boundary conditions
- Improved set of direct mapped boundary conditions.
-
buoyantPressureFvPatchScalarField, the new buoyancy pressure boundary condition now supportspandpdfor backward compatibility. -
uniformDensityHydrostaticPressureis an additional pressure boundary condition to aid the transition frompdtopas it behaves similarly to specifying a uniformpdat an outlet for example. -
activeBaffleVelocitydynamically combines cyclic and wall patches so that the flow through the patch can be controlled e.g. by pressure drop. -
rotatingWallVelocityspecifies a rotating velocity, given the rotational speed, origin and axis.
7 Utilities
7.1 Improvements
-
blockMeshhas a new-dictoption for specifying an alternative dictionary for the block mesh description. The 'convertToMeters' entry is now optional, and the alternative 'scale' entry can be used for less typing. -
foamToEnsighthas a new-noPatchesoption to suppress generation of patches. -
foamToEnsightPartshas new-noMeshand-indexoptions that can be useful when post-processing results incrementally. -
snappyHexMeshhas lower memory footprint. New distributed triangulated surface type for meshing surfaces with extremely large triangle count. Now supports multi-region meshing of arbitrarily complex regions.
7.2 New utilities
-
particleTracks- generate particle tracks for lagrangian calculations. -
dsmcInitialise- preprocessing utility to create initial configurations of DSMC particles in a geometry. -
surfaceRedistributePar- preprocessing utility to create distributed triangulated surface.
7.3 New foamCalc functions
-
interpolateperforms fvc::interpolate(<field>). -
randomiserandomises a <field> by a given perturbation. -
addSubtractprovides simple add/subtract field functionality.
7.4 Usage
-
timeSelectorcan now combine-time rangesand-latestTimeoptions. For example, -time '0.01:0.09' -latestTime vs. -time '0.01:'. More reliable behaviour for cases missing constant/ or 0/ directories. When the-noZerooption is enabled,-latestTimewill not select the0/directory unless the-zeroTimeoption is given. This helps avoid ill effects caused by accidentally using the 0/ directory in certain utilities (eg,reconstructPar). -
-regionoption added to more utilities.
7.5 Improvements to Paraview reader module
-
PV3FoamReaderadded mesh region handling. The region name is parsed from the filename. Eg, case{region}.OpenFOAM. -
paraFoamwith a new-regionoption for specifying an alternative region. A new-touchoption to generate the .OpenFOAM file only. Only creates (and removes) .OpenFOAM files if they didn't already exist, which is useful in connection with the-touchoption.
8 Post-processing
- Sampling on iso-surfaces, interpolated or non-interpolated.
-
Sampling on surface defined by distance to surface (
distanceSurface). - Cutting planes for arbitrary meshes.
-
Output to any surface geometry format supported by the
surfMeshlibrary.
8.1 Function objects
8.1.1 Improvements for function objects and time-looping
-
The
functionObjectListretains the order of thefunctionObjectorder, which allows a chaining of operations. It is thus internally more efficient when systemcontrolDict/ usesfunctions {..}instead offunctions (..), but both forms are supported. -
The
functionObjectnow has an additionalend()method that is called whenTime::loop()orTime::run()determine that the time-loop exits. Accordingly, one of these two idioms should be used in solver code:-
while (runTime.loop() { ... }, -
while (runTime.run()) { runTime++; ... }.
-
-
New
functionObjectListnow tracks the SHA1 message digest of the sub-directories. This avoids reloading afunctionObjectwhen something unrelated in systemcontrolDict/ changed.
8.1.2 New function objects:
-
systemCall- executes a list of system instructions. -
fieldMinMax- computes the min/max of a <field>. -
staticPressure- converts kinematic pressure to static pressure. -
dsmcFields- calculates intensive fields (velocity and temperature) from averaged extensive fields (i.e. momentum and energy).
8.1.3 Usage
-
Improved output control:
timeSteporoutputTime.
9 Tutorial restructuring
to reflect solver application structure.
10 Third-party Software
-
gccupgraded to version 4.3.3. -
OpenMPIupgraded to version 1.3.3. -
ParaViewupgraded to version 3.6.1. -
Scotchnew decomposition method:
Scotch (http://gforge.inria.fr/projects/scotch/) is a general multi-level decomposition method originating from the ScAlApplix project (Inria). It is a framework for general recursive partitioning methods and a such comparable to Metis but with a permissive licence.The corresponding decomposition method (in
decomposeParDict) isscotch. An optionalstrategystring can be supplied to change the decomposition methods; initial testing shows the default strategy producing decompositions comparable in quality to Metis.
Date: July 2009
HTML generated by org-mode 6.28trans in emacs 23