Commit Graph

4045 Commits

Author SHA1 Message Date
627f1810f4 tutorials::DTCHull: No need to renumber fields before setFields 2019-08-22 21:35:00 +01:00
87709f9ee0 rhoThermo, solidThermo: Corrected name of the thermo rho field in documentation 2019-08-22 18:56:02 +01:00
a823a7fea4 specie: Correct documentation for the mass fraction Y 2019-08-22 18:55:14 +01:00
54509a7968 mixtureAdiabaticFlameT: Add conversion of volume fraction to mass fractions 2019-08-22 18:54:42 +01:00
37204c1559 Field: Protect the direct mapping functions from self-mapping
Resolves bug-report https://bugs.openfoam.org/view.php?id=3334
2019-08-22 18:53:56 +01:00
f103a18d6e tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/bubbleColumnEvaporatingReacting: Removed unused files and entries
Resolves bug report https://bugs.openfoam.org/view.php?id=3332
2019-08-22 10:13:20 +01:00
96bd820571 functionEntries::if.*Entry: use addToMemberFunctionSelectionTable 2019-08-21 13:05:58 +01:00
84a1266706 faceZoneAverage: New functionObject configuration to average fields over a faceZone
e.g. given a vol pressure field p

functions
{
    // Interpolate the pressure field to the faces
    surfacep
    {
        type        surfaceInterpolate;
        libs        ("libfieldFunctionObjects.so");
        fields      ((p surfacep));
        writeControl none;
    }

    // Average the surface pressure field over the centre faceZone
    #includeFunc faceZoneAverage(name=centre, surfacep)
    .
    .
    .
}
2019-08-21 11:57:16 +01:00
da52b23f41 functionEntry: Simplified the primitiveEntry created when functions are disabled 2019-08-20 23:36:49 +01:00
c5d4d5e17b plateHole/system/singleGraph: Removed unnecessary sub-dictionary 2019-08-20 23:35:56 +01:00
f77c9e4861 reactingEulerFoam: alphatWallBoilingWallFunction: Updated documentation and stabilised a division
Patch contributed by Juho Peltola, VTT.
2019-08-20 16:35:11 +01:00
4d8981bef7 functionEntries: Simplified implementation and reduced code duplication 2019-08-20 01:39:18 +01:00
e7f8987b28 dictionary: Removed unnecessary functions 2019-08-19 16:45:10 +01:00
05bbe6660e dictionary: Allow duplicate entries when function entries are disabled
Needed to support delayed expansion of conditional statements which contain
duplicate entries between the conditions.
2019-08-19 15:46:12 +01:00
db5d858802 PBiCGStab: Further improvements to the dual convergence logic 2019-08-19 12:49:02 +01:00
62c193d929 functionName: New word type for the type names of dictionary functionEntries
This simplifies the handling of functionEntries between the token parser,
keyType and dictionary entry reading.
2019-08-19 11:56:53 +01:00
c61a66fc00 fluent.*ToFoam: Added support for ';' in schemes expressions
Resolves feature request https://bugs.openfoam.org/view.php?id=3330
2019-08-19 11:06:54 +01:00
6736543e3a PBiCGStab: Added minIter test to first convergence test
Resolves bug-report https://bugs.openfoam.org/view.php?id=3329
2019-08-19 09:45:54 +01:00
7350f07582 foamDictionary: improved checking for FoamFile 2019-08-19 09:20:05 +01:00
3fe2d3d9ad variable: Simplified the Istream operator
The token parser guarantees the correct type handling for variable.
2019-08-18 19:31:34 +01:00
409548cbcc Moved the dictionary keyword type keyType into the dictionary directory
and removed the need for the direct dependency of Ostream on keyType which is
not a primitive IO type and relates specifically to dictionary and not all IO.
2019-08-17 20:22:30 +01:00
0b6346c721 keyType: Added proper type handling and formalised construction from the string types
Rationalised IO of keyType so the internal structure is not duplicated in
if-else structures in dictionary::entry.
2019-08-17 10:57:22 +01:00
c8f4487a07 Removed unused private data members 2019-08-16 17:56:59 +01:00
888d362bfa Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2019-08-16 15:39:36 +01:00
63ec196ea3 token: Added isAnyString and anyStringToken
to conveniently handle the cases where the particular string type does not
matter, e.g. the string equality comparison in the ifeqEntry dictionary function
entry.
2019-08-16 15:38:05 +01:00
4c34cb13ee entry: Removed legacy code 2019-08-16 15:37:31 +01:00
49023e6c57 dictionary: Added special treatment for naming of dictionaries with a null parent 2019-08-16 15:36:55 +01:00
d7d41de406 includeEntry: resolved issue with dictionaries which do not start with a FoamFile entry 2019-08-16 15:24:16 +01:00
3f7c575816 foamDictionary: Avoid expanding the first entry when checking for FoamFile 2019-08-16 15:23:37 +01:00
1a54b2ecfc lagrangian: distributionModels: Cumulative general distribution
The general distribution has been extended to accept cumulative
distribution data, by means of a "cumulative" switch. The calculation of
the mean value has also been corrected for this distribution, and
additional header documentation and parameter checking has been added.

In addition, the distribution models now all print some basic
information (min, max and mean) into the log file to help in checking
that the specification is correct.

Patch contributed by Timo Niemi, VTT.
2019-08-16 11:42:38 +01:00
91e00b40b4 verbatimString: New string type to handle the code blocks in codeStream
without the need to handle the VERBATIMSTRING token type explicitly everywhere
in the IO sub-system.  Having a specific type is more consistent with the design
and operation of token and much easier to maintain and extend.
2019-08-16 11:35:46 +01:00
ca758706ae Initial work on rationalising the handling of verbatim strings
Also first step to remove the use of the contrived and incomplete write(token)
functions which are currently needed to handle the string multiple meaning.
2019-08-15 20:44:20 +01:00
31cc91634d keyType: Now derived from variable to directly support that type 2019-08-15 15:25:54 +01:00
011b15ba0a Corrected typo 2019-08-15 15:25:07 +01:00
e3f3b4c3ec PopulationBalancePhaseSystem.C: Corrected file mode 2019-08-15 14:14:06 +01:00
681f01e11a fileFormats: Added -lOpenFOAM to avoid global construction order problem 2019-08-15 14:11:56 +01:00
2693870e79 Corrected typos 2019-08-15 14:11:43 +01:00
3192d64875 dictionary: Rationalised the handling of dictionary variable
by introducing a new specialised type, variable, derived from word with
additional valid characters.  This avoids some complex type-juggling in the
parser and keyType in which string was used to represent either a string or a
variable.
2019-08-15 09:16:45 +01:00
19999767f3 tutorials/combustion/reactingFoam/RAS/SandiaD_LTS: Corrected controlDict 2019-08-15 08:59:30 +01:00
de177e9f07 global.Cver: Reorganised static construction for IOobject.C and regIOobject.C 2019-08-15 08:58:47 +01:00
ab9dd9cb65 specieCoeffs: Reinstated the error message for species which are not defined in the table 2019-08-14 11:54:22 +01:00
615d5dd2b0 dictionary: Disable wildcards for variables 2019-08-14 11:25:35 +01:00
5055147ae3 IOobject.C -> global.Cver: to avoid construction order problem with foamFile 2019-08-13 16:20:55 +01:00
ba7f87fe76 solidChemistryModel: Removed pending a rewrite based on the latest StandardChemistryModel
solidChemistryModel is not implemented in a general way but specialised to form
the basis of the highly specific pyrolysis mode.  The handling of reactions is
hard-coded for forward reactions only, the Jacobian was present but incomplete
so any ODE solvers requiring the Jacobian would either fail, diverge or produce
incorrect results.  It is not clear if many or any parts of the
solidChemistryModel are correct, in particular there is no handling for the
solid surface area per unit volume.  After a lot of refactoring work it has
become clear that solidChemistryModel needs a complete rewrite and can benefit
from all the recent development work done on the now more general
StandardChemistryModel.
2019-08-13 15:44:39 +01:00
8d00f37425 tutorials: reactingEulerFoam: wallBoiling*: Corrected name of zero wall distance 2019-08-13 10:41:38 +01:00
6ecd5b24ed tutorials: reactingMultiphaseEulerFoam: Removed unnecessary Allclean script 2019-08-13 10:41:38 +01:00
cfbb389fd3 reactingEulerFoam: populationBalanceModel: Added fractal shape modelling support
This change adds representation of the shape of a dispersed phase. A
layer has been added to model the relationship between the
characteristic volume of a sizeGroup and its physical diameter.
Previously this relationship was represented by a constant form factor.

Currently, two shape models are available:

  - spherical

  - fractal (for modelling fractal agglomerates)

The latter introduces the average surface area to volume ratio, kappa,
of the entities in a size group as a secondary field-dependent internal
variable to the population balance equation, which makes the population
balance approach "quasi-"bivariate. From kappa and a constant mass
fractal dimension, a collisional diameter can be derived which affects
the coagulation rates computed by the following models:

  - ballisticCollisions

  - brownianCollisions

  - DahnekeInterpolation

  - turbulentShear

The fractal shape modelling also takes into account the effect of sintering
of primary particles on the surface area of the aggregate.

Further additions/changes:

  - Time scale filtering for handling large drag and heat transfer
    coefficients occurring for particles in the nanometre range

  - Aerosol drag model based on Stokes drag with a Knudsen number based
    correction (Cunningham correction)

  - Reaction driven nucleation

  - A complete redesign of the sizeDistribution functionObject

The functionality is demonstrated by a tutorial case simulating the
vapour phase synthesis of titania by titanium tetrachloride oxidation.

Patch contributed by Institute of Fluid Dynamics, Helmholtz-Zentrum Dresden -
Rossendorf (HZDR) and VTT Technical Research Centre of Finland Ltd.
2019-08-13 10:40:25 +01:00
b2b3bd677f Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2019-08-12 15:47:24 +01:00
5c937c2ec3 DPMFoam, MPPICFoam: Added fvOptions 2019-08-12 15:46:52 +01:00
f3e4668e1a reactingEulerFoam: wallDampingModels: Additional control parameters
Added two new user parameters to wallDampingModels which allow
additional control over damping to zero in the near vicinity of the
walls.

"zeroWallDist" is a distance from the walls below which the damping
function sets the value of the model to zero.

"zeroInNearWallCells" is a switch which sets the value of the model to
zero in wall adjacent cells, regardless of their actual distance from
the wall.

Patch contributed by Juho Peltola, VTT.
2019-08-12 12:01:06 +01:00