Commit Graph

4720 Commits

Author SHA1 Message Date
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
b1f6fa2ff5 Revert "Time::controlDict: Returned to IOdictionary and removed fileHandler clutter"
This reverts commit d071e40348.
2020-08-19 20:00:14 +01:00
d071e40348 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-19 19:09:29 +01:00
303c5a1c81 fvOptions: Added using optionList::read to avoid warning messages from gcc 2020-08-19 17:15:14 +01:00
67e106c42c localIOdictionary: Now derived from IOdictionary to reduce code duplication 2020-08-19 17:14:38 +01:00
82a5e12c06 dictionary: Corrected global function 2020-08-18 17:01:31 +01:00
edc72c2efc dictionary, codeStream: Updated to handle #calc in all global dictionaries 2020-08-18 16:12:12 +01:00
dcfd65c164 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-08-18 12:33:48 +01:00
e339ec34ee tutorials/multiphase/multiphaseEulerFoam/laminar/injection: Changed to adjustTimeStep 2020-08-18 12:33:24 +01:00
2df733ef99 lagrangian: Corrected reading of constant/clouds in parallel 2020-08-18 11:28:16 +01:00
8c32b1bba1 lagrangian: Removal of unused construction by component 2020-08-18 11:28:16 +01:00
ce307be540 lagrangian/basic/particle: Remove inclusion of Cloud header
This isolates the particle implementation a little more, allowing it to
be constructed as a throwaway tracking object.
2020-08-18 11:28:16 +01:00
36da539e82 buoyantPimpleFoam,buoyantSimpleFoam: Apply adjustPhi for steady subsonic and transonic cases 2020-08-18 10:47:05 +01:00
fca921c303 buoyantPimpleFoam::pEqn: Removed temporary diagnostic message 2020-08-17 16:15:28 +01:00
8ed965fe57 buoyantPimpleFoam::pEqn: Removed unnecessary additional call to adjustPhi 2020-08-17 16:02:20 +01:00
17c40d2aa5 UList,FixedList: Updated reverse_iterators for STL compliance
Resolves bug-report https://bugs.openfoam.org/view.php?id=3534
2020-08-17 14:04:42 +01:00
d926651d63 multiphaseEulerFoam: Added switches to revert to the previous phase limiters for testing
Optional switches "splitPhaseFlux" and "meanFluxReference" are now provided and
can be set true in fvSolution e.g.

solvers
{
    "alpha.*"
    {
        nAlphaCorr      1;
        nAlphaSubCycles 2;

        splitPhaseFlux  true;
        meanFluxReference true;
    }
.
.
.

to reinstate the previous form of phase flux limiters in which the mean and
phase flux differences are interpolated separately and the limited correction
referenced to the mean rather than phase flux.  This form of discretisation and
limiting is more aggressive than the latest version and hence less accurate but
it is hoped that the latest form of limitSum will handle the boundedness at the
upper limit reliably allowing the new more accurate limiters to be used for most
if not all multiphase simulations.
2020-08-15 11:23:41 +01:00
d65b3ef761 Updated calls to foamDictionary in the tutorials to use the 'slash' entry scope syntax 2020-08-15 00:16:16 +01:00
73e756a362 multiphaseEulerFoam: Improved limitSum for cases with stationary phases
limitSum operates on the sum positive and negative flux corrections as it did
originally to guarantee that the phase fractions sum to 1 but now on the scaled
moving sub-set of the phases so that it handles the presence of stationary
phases in a consistent manner.

Additionally limitSum is now applied to two-phase systems even when only one of
the phases is solved for to ensure the solution is the same irrespective of
which phase fraction is solved or if both are solved.

compressibleMultiphaseInterFoam and multiphaseInterFoam have been updated to use
the same form of limitSum as multiphaseInterFoam but this does not change their
behaviour, it is to reduce code duplication.
2020-08-14 20:16:31 +01:00
81c16ac498 thermalBaffle1DFvPatchScalarField: Updated documentation
Resolves bug-report https://bugs.openfoam.org/view.php?id=3530
2020-08-13 12:23:42 +01:00
5d9a5d2cbd phaseSystemSolve: Added comments to the changes to the flux used for the limiter 2020-08-12 21:15:58 +01:00
8747e8d950 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-08-12 11:11:08 +01:00
749f4c6119 multiphaseMixtureThermo, multiphaseMixture: Updated handling of alphaPhi 2020-08-12 11:10:40 +01:00
7beaef7f99 MULES.H: Updated arguments for consistency with MULES.C 2020-08-12 11:10:15 +01:00
aa20d9b895 thermophysicalModels: Corrections to selector error messages 2020-08-12 09:31:04 +01:00
058562e1ef MULES: Improved limitSum for multiphaseEulerFoam 2020-08-11 22:04:56 +01:00
a8e8090803 thermophysicalModels: Added fluidReactionThermo
psiReactionThermo- and rhoReactionThermo-s now derive from an additional
fluidReactionThermo class and are included on a corresponding run-time
selection table.

This means all multi-specie solvers can now be used with either
compressibility/psi- or density/rho-based thermodynamic models, in the
same way that non-reacting solvers can.

rhoReactingFoam has been removed, as it is no longer necessary now that
reactingFoam can operate with density-based thermodynamics.

rhoReactingBuoyantFoam has also been renamed buoyantReactingFoam to
reflect the fact that it is no longer a variant specific to
density-based thermodynamics; it can now operate with
compressibility-based thermodynamic models as well.

The change is fully backwards compatible. All cases should continue to
run without modification, apart from the fact that a different solver
might need to be called.
2020-08-11 14:41:02 +01:00
a9945a0570 multiphaseEulerFoam::phaseSystemSolve: Simplified limitSum when solving for >1 phases
also change the interpolation use for the limitSum from upwind to linear which
might provide a modest improvement in accuracy.
2020-08-10 15:19:47 +01:00