Commit Graph

4797 Commits

Author SHA1 Message Date
c69f21cc7e thermophysicalModels::eTabulated: New (p, T) tabulated sensible internal energy thermo 2020-09-03 15:39:51 +01:00
ec858fe59d foamListTimes: Corrected operation of -rm option when using collated fileHandler 2020-09-03 14:31:27 +01:00
13589ce524 rhoTabulated, hTabulatedThermo, tabulatedTransport: New (p, T) tabulated thermophysical functions
This is a prototype implementation of (p, T) tabulated density, enthalpy,
viscosity and thermal conductivity using a uniform table in pressure and
temperature for fast lookup and interpolation.  The standard Newton method is
used for h->T inversion which could be specifically optimised for this kind of
table in the future.
2020-09-03 13:06:37 +01:00
efe197f9af Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-09-03 12:09:21 +01:00
a7f185eec2 foamListTimes: Added support for the collated fileHandler
Resolves bug-report https://bugs.openfoam.org/view.php?id=3541
2020-09-03 12:08:18 +01:00
9f9ef9a2c0 fvOptions/.../codedSource: Updated for compressible and phase sources
There are now three possible code entries for the scalarCodedSource,
vectorCodedSource, etc..., fvOptions. These are `codeAddSup` for basic
sources, `codeAddRhoSup` for compressible sources, and
`codeAddAlphaRhoSup` for phase (compressible) sources.

Previously `codeAddSup` was used for both basic and compressible
sources, and phase sources were not implemented. This meant that whilst
a compressible source could be created, it could not make use of the
`rho` argument or the basic source function would fail to compile.
2020-09-03 11:13:42 +01:00
37e2922cd5 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-09-03 10:30:49 +01:00
3831bc05a7 tutorials: Updated the object name turbulenceProperties -> momentumTransport 2020-09-03 10:29:48 +01:00
1cbb707a86 multiphaseEulerFoam/.../populationBalance: Added fvOption source terms
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-09-02 20:31:04 +01:00
f94884c87a multiphaseEulerFoam/.../populationBalance: Changed sizeGroup equations to volumetric form
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-09-02 20:31:03 +01:00
571c5524d2 multiphaseEulerFoam/.../populationBalance: Corrected density change drift model
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-09-02 20:31:03 +01:00
e4bde47c8d Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-09-02 16:04:03 +01:00
1eb086c9cb thermophysicalModels: Minor code reorganisation 2020-09-02 16:03:34 +01:00
0ca4f3f1e2 equationOfState: Added Z (compression factor) implementation 2020-09-02 16:02:19 +01:00
1ca739cd8e RectangularMatrix: Added writeEntry 2020-09-02 16:00:40 +01:00
acdf1ad740 fvPatch: Removed unnecessary default arguments in lookupPatchField
These were marked as being necessary to resolve a bug in Gcc, but no
tested version of Gcc failed to compile with these removed. It is
assumed that the Gcc bug is in a version older than those supported.

Also added "db()" method to fvPatch in order to remove inclusion of
fvPatchFvMeshTemplates.C in fvMesh.H. The resulting inclusion strategy
is significantly simpler as a result.
2020-09-02 11:21:42 +01:00
564e214a66 timeStep: New functionObject which writes the timeStep at each time
which can be viewed during the run with foamMonitor.

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-08-28 13:46:05 +01:00
def4772281 Documentation: Centred the Class Declaration comment
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-08-28 13:28:58 +01:00
73e1fabc77 applications/test/dictionary/testSlashDict: Added example of the expansion of a variable to a variable name 2020-08-27 11:16:27 +01:00
7faa251f0a applications/test/dictionary/testSlashDict: Added an example using $FOAM_CASE 2020-08-27 09:39:37 +01:00
573cdcf82a buoyantSimpleFoam: Removed redundant include 2020-08-26 17:29:57 +01:00
7878d401b3 etc/templates: Updated momentumTransport 2020-08-26 16:58:46 +01:00
306871f317 buoyantSimpleFoam: Updated to use fluidThermo rather than rhoThermo
thus supporting both rho- and psi-base thermophysical models.
2020-08-26 16:54:54 +01:00
e638d73690 thermophysicalModels::coefficientWilkeMultiComponentMixture: New Wilke mixing model for gaseous transport properties
The new generalised framework for thermophysical mixing models has allowed the
efficient implementation of the useful combination for gases of coefficient
mixing for thermodynamic properties with the Wilke model for transport
properties:

Description
    Thermophysical properties mixing class which applies mass-fraction weighted
    mixing to the thermodynamic coefficients and Wilke's equation to
    transport properties.

    Reference:
    \verbatim
        Wilke, C. R. (1950).
        A viscosity equation for gas mixtures.
        The journal of chemical physics, 18(4), 517-519.
    \endverbatim
2020-08-26 16:47:40 +01:00
5c45aeb93f Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-08-26 16:47:19 +01:00
de7843222f thermophysicalModels::coefficientWilkeMultiComponentMixture: New Wilke mixing model for gaseous transport properties
The new generalised framework for thermophysical mixing models has allowed the
efficient implementation of the useful combination for gases of coefficient
mixing for thermodynamic properties with the Wilke model for transport
properties:

Description
    Thermophysical properties mixing class which applies mass-fraction weighted
    mixing to the thermodynamic coefficients and Wilke's equation to
    transport properties.

    Reference:
    \verbatim
        Wilke, C. R. (1950).
        A viscosity equation for gas mixtures.
        The journal of chemical physics, 18(4), 517-519.
    \endverbatim
2020-08-26 16:43:22 +01:00
281f8ba40c multiphaseEulerFoam/.../BrownianCollisions: Added slip correction
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-08-26 14:22:01 +01:00
36ce8b31ae multiphaseEulerFoam/.../aerosolDrag: Improvements
Expanded the documentation and updated the mean free path calculation

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-08-26 14:19:51 +01:00
1844051d91 thermophysicalModels: Removed alphah from the low-level specie thermo
alphah is derived from kappa/Cp and mixing rules should be applied to kappa and
Cp separately rather than to alphah so it is more consistent to calculate the
mixture alphah from the mixture kappa and Cp at the heThermo level.
2020-08-26 13:16:03 +01:00
80662fe1e3 tutorials::fluidisedBed: Removed the extremaCoeff
With the new formulation of multiphase limiters the extremaCoeff is no longer
needed for fluidised bed simulations.
2020-08-26 11:42:47 +01:00
2ad3fa242a pairPatchAgglomeration: Added missing reduction for agglomeration in parallel
Resolves bug-report https://bugs.openfoam.org/view.php?id=3537
2020-08-25 16:59:05 +01:00
995cda665b reactionThermo::valueMultiComponentMixture: New mixture type providing property value based mixing
This provides support for mixtures of species in which coefficient mixing of the
thermophysical properties is not possible/practical, e.g. tabulated data.
Thermodynamic properties are mass-fraction mixed and transport properties
mole-fraction mixed.

In the new general mixture framework it is now possible to implement more
complex mixing rules which is particularly useful for transport properties,
e.g. the Wilke model for gases.  Combinations of coefficient mixing for thermo
and complex mixing for transport is also supported.

valueMultiComponentMixture is currently instantiated on all the standard
tabulated thermo combination:

thermoType
{
    type            heRhoThermo;
    mixture         valueMultiComponentMixture;
    transport       tabulated;
    thermo          hTabulated;
    energy          sensibleEnthalpy;
    equationOfState icoTabulated;
    specie          specie;
}

but can be used for any of the current or future combinations.
2020-08-25 16:20:05 +01:00
5b58603f4c specie::thermo: Generalised the H/E->T inversion function 2020-08-25 13:50:32 +01:00
d293f1e700 thermophysicalModels: Separated thermodynamic and transport mixing
To support coefficient mixing for thermo and complex specie property mixing for
transport efficiently.
2020-08-24 18:10:20 +01:00
42cbdee095 etc/caseDicts/postProcessing/pressure/pressureDifference.cfg: Added missing ';'
Resolves bug report https://bugs.openfoam.org/view.php?id=3538
2020-08-24 11:59:35 +01:00
586a0a447b Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 20200824 2020-08-23 10:20:32 +01:00
a63b3041d1 thermophysicalModels: Separated the thermo type from the mixing type
to support the implementation of other mixing rules for thermo and transport
properties.
2020-08-23 10:19:19 +01:00
c39f990c65 Made casting explicit in mixed Geometric/DimensionedField operations 2020-08-21 12:41:03 +01:00
2fb061568a DimensionedField::New: Made compatible with point fields 2020-08-21 12:41:03 +01:00
a51f8beeaf phaseForces: New configuration file for the phaseForces function object
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2020-08-21 09:42:57 +01:00
d82d47c74b regIOobject.H: Rationalised includes 2020-08-21 08:40:47 +01:00
aa5a2dccfe Time: Removed unnecessary fileHandler code from destructor 2020-08-20 17:48:51 +01:00
9b79c352f2 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-08-20 17:33:44 +01:00
a296bcba51 Removed unused template argument from field reuse classes 2020-08-20 16:30:00 +01:00
fe41811c36 IOdictionary: Returned to original form without baseIOdictionary 2020-08-20 15:56:38 +01:00
f274630f4d unwatchedIOdictionary: Removed with associated clutter
IOdictionary is now used instead of unwatchedIOdictionary
2020-08-20 12:45:29 +01:00
85f043040b Time::controlDict: Returned to IOdictionary and removed fileHandler clutter
By registering controlDict as MUST_READ_IF_MODIFIED automatic re-read is handled
in the same manner as any other IOdictionary.
2020-08-20 11:53:36 +01:00
c5c0b900da localIOdictionary: Added missing constructor for surfaceRedistributePar 2020-08-20 10:01:23 +01:00
540e26f996 localIOdictionary: Added constructor needed by foamDictionary 2020-08-20 08:10:05 +01:00
5dd1ab94c3 IOdictionary, localIOdictionary: Further rationalisation 2020-08-20 00:04:25 +01:00