Commit Graph

811 Commits

Author SHA1 Message Date
Henry Weller
fb11bcc874 TurbulenceModels/compressible: Added correctEnergyTransport() function
to allow the turbulent energy transport properties to be updated for
every energy solution if required.

Added correctEnergyTransport() call to reactingTwoPhaseEulerFoam
2015-08-26 15:37:52 +01:00
Henry Weller
f5dc3eb8a7 reactingTwoPhaseEulerFoam: Moved into reactingEulerFoam
and two-phase functionality separated from multiphase functionality
2015-08-26 12:49:26 +01:00
Henry Weller
86cc19bd8b reactingTwoPhaseEulerFoam: Added support for thermal diffusivity and thermal wall-functions 2015-08-22 18:09:44 +01:00
Henry Weller
dbfb7cf250 SchaefferFrictionalStress: Updated with alphaMinFriction
Resolved bug-report http://openfoam.org/mantisbt/view.php?id=1831
2015-08-19 16:30:51 +01:00
Henry Weller
24c7a739ff reactingTwoPhaseEulerFoam: Improved support for boiling/condensation
Includes many contributions from Juho Peltola
2015-08-19 13:45:49 +01:00
Henry Weller
0cf3ae4fda Compressible solver: correct initial Courant-number calculation
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1816
2015-08-07 15:55:46 +01:00
Henry Weller
584fed888d twoPhaseEulerFoam/interfacialModels/dragModels/WenYu: Corrected Re -> Re*alpha_g
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1794
2015-08-04 13:29:11 +01:00
Henry Weller
251526e024 Removed trailing whitespace
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1805
2015-08-01 15:43:05 +01:00
Henry Weller
365f9b0006 dimensioned<Type>: Added constructor from name, dimensions and dictionary
to simplify construction of dimensionedScalar properties and avoid the
duplication of the name string in the constructor call.
2015-07-21 12:57:07 +01:00
Henry Weller
4c21f24a8c Input of dimensionedScalars: update read-construction of dimensionedScalar in applications
so that the specification of the name and dimensions are optional in property dictionaries.

Update tutorials so that the name of the dimensionedScalar property is
no longer duplicated but optional dimensions are still provided and are
checked on read.
2015-07-20 22:52:53 +01:00
Henry Weller
91e04d69c1 Resolve various unimportant warning messages from Gcc, Clang and Icpc 2015-07-19 11:31:49 +01:00
Henry Weller
94401af010 Resolved issues with virtual function inheritance and warning from clang
Also removed __GNUC__ conditional compilation statements which are no
longer needed.
2015-07-17 12:11:37 +01:00
Henry Weller
d47a42458f reactingTwoPhaseEulerFoam: Added support for thermally-driven phase-change (boiling)
The interfacial temperature is assumed equal to the saturation
temperature.  Only a single species is considered volatile and the other
species to not affect the mass-transfer.
2015-07-16 14:12:03 +01:00
Henry Weller
0fb6a01280 fluxRequired: Added setFluxRequired function to fvSchemes class
Added calls to setFluxRequired for p, p_rgh etc. in all solvers which
avoids the need to add fluxRequired entries in fvSchemes dictionaries.
2015-07-15 21:57:16 +01:00
Henry Weller
0ce5742d6a saturationModels: Added a model for constant pSat and Tsat 2015-07-04 14:48:19 +01:00
Henry Weller
a752d3e588 saturationModels: Added Tsat function
Currently this is implemented only for the Antoine equation, for the
other more complex models an iterative inversion from pressure to
temperature is required.
2015-07-04 14:46:55 +01:00
Henry Weller
7c6e1386f1 reactingTwoPhaseEulerFoam: Completed mass-transfer terms in both forms of momentum equations 2015-07-03 23:18:25 +01:00
Henry Weller
9c9ac368fe reactingTwoPhaseEulerFoam: Replace x*pos(x) with posPart(x) and same for neg 2015-07-03 18:04:34 +01:00
Henry Weller
2ee2a52fff reactingTwoPhaseEulerFoam: Updated wmake files 2015-07-03 17:44:34 +01:00
Henry Weller
243accc6f6 reactingTwoPhaseEulerFoam: Renamed saturationPressureModel -> saturationModel
In preparation for adding the Tsat function
2015-07-03 16:15:09 +01:00
Henry Weller
08682ca3eb Removed temporary Info statement 2015-07-03 15:47:25 +01:00
Henry Weller
a92691b0dd reactingTwoPhaseEulerFoam: Added mass-exchange contribution to the cell-based momentum equations 2015-07-03 15:46:52 +01:00
Henry Weller
b0d107499b reactingTwoPhaseEulerFoam: Changed the handling of the energy transfer
for consistency with the evaluation of the interface temperature.
2015-07-03 15:45:56 +01:00
Henry Weller
68ea75a37c reactingTwoPhaseEulerFoam: Corrected handling of heat-transfer caused by mass-transfer 2015-07-02 22:51:06 +01:00
Henry Weller
be16ebf24f reactingTwoPhaseEulerFoam/pU/pEqn: Added missing dmdt terms 2015-07-02 22:50:44 +01:00
Henry Weller
d0f15d4e3c EEqn: Added rho*(U&g) source term
Generally this term has a VERY small effect on temperature, it is only
important for low-speed buoyancy-dominated flows.

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1755

See also http://cfd.direct/openfoam/energy-equation/
2015-07-01 10:53:37 +01:00
Henry Weller
aa42c1f906 kOmegaSSTSato: Relocated to src/TurbulenceModels/phaseCompressible/RAS 2015-06-30 13:04:27 +01:00
Henry Weller
fd9d07413a LTS: Simplify the selection of LTS operation 2015-06-29 11:53:20 +01:00
Henry Weller
f92d657ab7 LTS: Formalize the naming of the rDeltaT and rSubDeltaT fields
Now the specification of the LTS time scheme is simply:

ddtSchemes
{
    default         localEuler;
}
2015-06-28 21:41:40 +01:00
Henry Weller
edcc472535 reactingTwoPhaseEulerFoam: Removed superfluous trSubDeltaT field 2015-06-26 22:05:39 +01:00
Henry Weller
587c93574a LTS, MULES and sub-cycling: Improved the handling of the rSubDeltaT field 2015-06-26 21:58:27 +01:00
Henry Weller
d14e8ed169 interFoam: Change construction order 2015-06-26 18:54:37 +01:00
Henry Weller
1d16db3fa0 reactingTwoPhaseEulerFoam: Added experimental run-time selectable LTS support
Select LTS via the ddtScheme:

    ddtSchemes
    {
        default         localEuler rDeltaT;
    }

The LTS algorithm is currently controlled with the standard settings in
controlDict, e.g.:

    maxCo           0.5;
    maxDeltaT       2e-8;

with the addition of the optional rDeltaT smoothing coefficient:

    rDeltaTSmoothingCoeff 0.02;

which defaults to 0.02.

    ddtSchemes
    {
        default         localEuler rDeltaT;
    }
2015-06-26 18:52:23 +01:00
Henry Weller
e00ae44ad0 interFoam family: Added run-time selectable LTS support
LTS is selected by the ddt scheme e.g. in the
tutorials/multiphase/interFoam/ras/DTCHull case:

ddtSchemes
{
    default         localEuler rDeltaT;
}

LTSInterFoam is no longer needed now that interFoam includes LTS
support.
2015-06-26 18:32:20 +01:00
Henry Weller
bf95b5c286 reactingTwoPhaseEulerFoam: Change the implicit handling of phase-pressure and dispersion
to support any number of phases
2015-06-26 15:15:10 +01:00
Henry Weller
4d6823c3eb reactingTwoPhaseEulerFoam: Minor reorganization 2015-06-25 22:43:22 +01:00
Henry Weller
5d3d40392f reactingTwoPhaseEulerFoam: Add fvOption handling to the continuity error
correction in MovingPhaseModel<BasePhaseModel>::correct()
2015-06-25 22:29:08 +01:00
Henry Weller
e9ecd7ddef twoPhaseEulerFoam, reactingTwoPhaseEulerFoam: Removed duplicate files 2015-06-25 20:27:09 +01:00
Henry Weller
0f8d7e677d reactingTwoPhaseEulerFoam: Construct MRF and fvOptions in phaseSystem 2015-06-25 19:22:47 +01:00
Henry Weller
550ba440fd reactingTwoPhaseEulerFoam: Change the sign of the compressibility correction field
to correspond to the phase dilatation rate.
2015-06-25 16:37:53 +01:00
Henry Weller
9f6c161e49 reactingTwoPhaseEulerFoam: Generalize the handling of the dilatation rate
to support any number of phases
2015-06-25 16:10:07 +01:00
Henry Weller
69d994e794 twoPhaseEulerFoam: Change the implicit particle-pressure and turbulence dispersion
to be phase-symmetric so that the results are independent of which
phase-fraction is solved.
2015-06-25 16:08:21 +01:00
Henry Weller
8293227964 Rationalized the LTS solvers 2015-06-16 12:42:37 +01:00
Henry Weller
eb53f9bdf0 reactingTwoPhaseEulerFoam: New twoPhaseEulerFoam supporting mass-transfer and reactions
Multi-species, mass-transfer and reaction support and multi-phase
structure provided by William Bainbridge.

Integration of the latest p-U and face-p_U algorithms with William's
multi-phase structure is not quite complete due to design
incompatibilities which needs further development.  However the
integration of the functionality is complete.

The results of the tutorials are not exactly the same for the
twoPhaseEulerFoam and reactingTwoPhaseEulerFoam solvers but are very
similar.  Further analysis in needed to ensure these differences are
physical or to resolve them; in the meantime the twoPhaseEulerFoam
solver will be maintained.
2015-06-12 09:52:17 +01:00
Henry Weller
360604b104 twoPhaseEulerFoam: Minor reorganization 2015-06-12 09:42:19 +01:00
Henry
8eda4b8632 twoPhaseEulerFoam/interfacialModels/heatTransferModels/sphericalHeatTransfer: new heat-transfer model
Model which applies an analytical solution for heat transfer from the
surface of a sphere to the fluid within the sphere.

Provided by William Bainbridge
2015-06-07 18:57:13 +01:00
Henry
61e52b2cb4 twoPhaseEulerFoam: Move the residualAlpha used for drag into the phaseModel
This is necessary to guarantee consistency between the residualAlpha
used for drag and buoyancy in a multi-phase system
2015-06-07 18:55:24 +01:00
Henry
c3ee2348a6 MRF: Separate MRF from fvOptions
fvOptions does not have the appropriate structure to support MRF as it
is based on option selection by user-specified fields whereas MRF MUST
be applied to all velocity fields in the particular solver.  A
consequence of the particular design choices in fvOptions made it
difficult to support MRF for multiphase and it is easier to support
frame-related and field related options separately.

Currently the MRF functionality provided supports only rotations but
the structure will be generalized to support other frame motions
including linear acceleration, SRF rotation and 6DoF which will be
run-time selectable.
2015-05-29 23:35:43 +01:00
Henry
38171e0c7a MRFZone: rationalize to allow support for general frame acceleration 2015-05-29 15:31:53 +01:00
Henry
7ddeaa3777 driftFluxFoam/relativeVelocityModels/Make/options: add newline 2015-05-19 14:34:37 +01:00
Henry
18641f0649 twoPhaseEulerFoam: rationalize handling of fixed-flux BC update 2015-05-09 23:45:15 +01:00
Henry
cd2aa39eda Update header 2015-05-08 10:10:47 +01:00
Henry
6b2fb4664c twoPhaseEulerFoam: Update only the fixed-value phi patch fields before constructing the pressure eqn
Avoids small continuity error in parallel
2015-05-08 09:51:36 +01:00
Henry
24b0f3ad0b twoPhaseEulerFoam: In the limit of phase-fraction->0 the velocity is calculated from a force balance
Rather than forcing the dispersed-phase velocity -> the continuous-phase
velocity as the phase-fraction -> 0 the velocity is now calculated from
a balance of pressure, buoyancy and drag forces.  The advantage is now
liquid or particles are not carried out of bubble-column of
fluidised-beds by the fictitious drag caused by forcing the
phase-velocities becoming equal in the limit.
2015-05-02 17:15:49 +01:00
Henry
0b5e422dd1 Updated header 2015-04-30 10:44:40 +01:00
Henry
f22ae158f9 multiphaseInterFoam/multiphaseMixture: Updated MULES call 2015-04-30 10:44:15 +01:00
Henry
00ce68ee18 compressibleMultiphaseInterFoam: VoF and MULES controls are now in the alpha sub-dict of fvSolution
consistent with multiphaseInterFoam and other VoF solvers
2015-04-29 16:32:33 +01:00
Henry
b5b6791230 Update headers 2015-04-29 14:44:53 +01:00
Henry
f7e4d0a110 MULES: nLimiterIter and smoothLimiter are now user-input via the corresponding fvSolution sub-dict
nLimiterIter: Number of iterations during limiter construction
    3 (default) is sufficient for 3D simulations with a Courant number 0.5 or so
    For larger Courant numbers larger values may be needed but this is
    only relevant for IMULES and CMULES

smoothLimiter: Coefficient to smooth the limiter to avoid "diamond"
    staggering patters seen in regions of low particle phase-fraction in
    fluidised-bed simulations.

    The default is 0 as it is not needed for all simulations.
    A value of 0.1 is appropriate for fluidised-bed simulations.
    The useful range is 0 -> 0.5.
    Values larger than 0.5 may cause excessive smearing of the solution.
2015-04-29 14:37:41 +01:00
Henry
9284d856b9 Updated header 2015-04-28 18:19:13 +01:00
Henry
9655398064 twoPhaseEulerFoam: Improvements to implicitPhasePressure 2015-04-28 18:18:34 +01:00
Henry
fc6b44ee3c twoPhaseEulerFoam: Added experimental face-based momentum equation formulation
This formulation provides C-grid like pressure-flux staggering on an
unstructured mesh which is hugely beneficial for Euler-Euler multiphase
equations as it allows for all forces to be treated in a consistent
manner on the cell-faces which provides better balance, stability and
accuracy.  However, to achieve face-force consistency the momentum
transport terms must be interpolated to the faces reducing accuracy of
this part of the system but this is offset by the increase in accuracy
of the force-balance.

Currently it is not clear if this face-based momentum equation
formulation is preferable for all Euler-Euler simulations so I have
included it on a switch to allow evaluation and comparison with the
previous cell-based formulation.  To try the new algorithm simply switch
it on, e.g.:

PIMPLE
{
    nOuterCorrectors 3;
    nCorrectors      1;
    nNonOrthogonalCorrectors 0;
    faceMomentum     yes;
}

It is proving particularly good for bubbly flows, eliminating the
staggering patterns often seen in the air velocity field with the
previous algorithm, removing other spurious numerical artifacts in the
velocity fields and improving stability and allowing larger time-steps
For particle-gas flows the advantage is noticeable but not nearly as
pronounced as in the bubbly flow cases.

Please test the new algorithm on your cases and provide feedback.

Henry G. Weller
CFD Direct
2015-04-27 21:33:58 +01:00
Henry
828ca8322c twoPhaseEulerFoam: Minor improvement to the handling of p_rgh->p after the pEqn 2015-04-20 20:48:12 +01:00
Henry
24a340ef75 applications/solvers/multiphase: for MRF make phiHbyA relative BEFORE adjustPhi
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1665
2015-04-20 16:50:02 +01:00
Henry
3b65f924ec twoPhaseEulerFoam: Added fvOptions correction to the phase velocities after matrix construction 2015-04-18 21:40:54 +01:00
Henry
f5bb944965 twoPhaseEulerFoam: Improved handling of velocity/flux boundary conditions
Updated tutorials to converge pressure during PIMPLE loop to avoid
phase-fraction unboundedness which limits thermodynamics convergence.
2015-04-12 09:57:56 +01:00
Henry
4ee86fd7c7 twoPhaseEulerFoam: Correct continuity errors after temperature update 2015-04-11 11:00:28 +01:00
Henry
6c097fc2b6 twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/noTurbulentDispersion: Corrected dimension of D 2015-04-10 15:40:26 +01:00
Henry
4c443233be twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels/Burns: Corrected sign of the diffusivity 2015-04-10 11:51:00 +01:00
Henry
ff2f3205af twoPhaseEulerFoam: formalize the use of partial-elimination for phase velocity and flux correction 2015-04-08 16:42:06 +01:00
Henry
5688e3daa7 Updated headers 2015-04-08 12:22:15 +01:00
Henry
0be1e89204 twoPhaseEulerFoam: Interpolate lift, wall-lubrication and turbulent dispersion forces
Reduces or eliminates staggering patterns due to cell-force imbalances
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1363
2015-04-08 12:19:23 +01:00
Henry
724b0fdb8c twoPhaseEulerFoam: Add partial-elimination to phase flux and velocity correction
Improves stability and convergence of systems in which drag dominates
e.g. small particles in high-speed gas flow.

Additionally a new ddtPhiCorr strategy is included in which correction
is applied only where the phases are nearly pure.  This reduces
staggering patters near the free-surface of bubble-column simulations.
2015-04-05 21:18:28 +01:00
Henry
9cd9a9f364 ddtScheme::fvcDdtPhiCoeff: Zero ddtCorr on AMIs
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1421
2015-03-24 15:23:01 +00:00
Henry
a7f0de9aa9 multiphaseEulerFoam: transform to solve for p_rgh
to avoid excessive pressure/buoyancy balance errors on non-orthogonal meshes
2015-03-19 21:40:41 +00:00
Henry
28abb8cda5 Buoyant solvers: Add special handling for ghRef in the case g = (0 0 0) 2015-03-19 15:26:06 +00:00
Henry
fa2721ffd5 JohnsonJacksonFrictionalStress: alphaDeltaMax -> alphaDeltaMin (it is the lower limit) 2015-03-18 15:40:39 +00:00
Henry
2e35cc76e8 twoPhaseEulerFoam JohnsonJacksonFrictionalStress: alphaDeltaMax now user input (previously hard-coded to 5e-2) 2015-03-18 15:03:10 +00:00
Henry
fb84761ef8 twoPhaseEulerFoam: Rationalize the particle-pressure flux BCs and correct for coupled-patches 2015-03-18 11:53:23 +00:00
Henry
c530e1cd9b twoPhaseEulerFoam: transform to solve for p_rgh
to avoid excessive pressure/buoyancy balance errors on non-orthogonal meshes
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1379
2015-03-17 22:40:09 +00:00
Henry
e588d61879 Solvers based on p_rgh: Added support for optional hRef
Allows the specification of a reference height, for example the height
of the free-surface in a VoF simulation, which reduces the range of p_rgh.

hRef is a uniformDimensionedScalarField specified via the constant/hRef
file, equivalent to the way in which g is specified, so that it can be
looked-up from the database.  For example see the constant/hRef file in
the DTCHull LTSInterFoam and interDyMFoam cases.
2015-03-17 17:15:11 +00:00
Henry
a8d5917389 TomiyamaLift: Updated coefficient to make the model continuous at EoH = 10.7
Correction provided by Juho Peltola
2015-03-11 18:06:04 +00:00
Henry
a80d9c7407 TomiyamaLift: Corrected coefficients to correspond exactly to the original paper cited
Resolved bug-report http://www.openfoam.org/mantisbt/view.php?id=1564
2015-03-10 19:57:42 +00:00
Henry
a7cdf0c713 Update Header 2015-03-02 22:30:29 +00:00
Henry
00ebf8e153 BinghamPlastic: Change definition of shear-rate by 1/sqrt(2)
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1552
2015-03-02 22:27:39 +00:00
Henry
5a6bc2f7d6 Removed temporary Info 2015-03-02 22:26:24 +00:00
Henry
44ad48906b interFoam/alphaEqn: Corrected handling of the off-centreing coefficient for Crank-Nicolson 2015-02-22 12:13:19 +00:00
Henry
87cfd5788b interFoam/alphaEqn: Updated phiCN 2015-02-22 10:25:30 +00:00
Henry
fef8853027 interFoam/alphaEqn: Update explicit corrector to use the Crank-Nicolson flux 2015-02-21 21:39:59 +00:00
Henry
bd3cbd4c37 LTSinterFoam: test for localEuler as a valid scheme in the new alphaEqn 2015-02-20 22:47:51 +00:00
Henry
1ace10b372 interFoam family: Add support for MULES-bounded Crank-Nicolson 2nd-order ddt(alpha)
This is an experimental feature demonstrating the potential of MULES to
create bounded solution which are 2nd-order in time AND space.

Crank-Nicolson may be selected on U and/or alpha but will only be fully
2nd-order if used on both within the PIMPLE-loop to converge the
interaction between the flux and phase-fraction.  Note also that
Crank-Nicolson may not be used with sub-cycling but all the features of
semi-implicit MULES are available in particular MULESCorr and
alphaApplyPrevCorr.

Examples of ddt specification:

ddtSchemes
{
    default         Euler;
}

ddtSchemes
{
    default         CrankNicolson 0.9;
}

ddtSchemes
{
    default         none;
    ddt(alpha)      CrankNicolson 0.9;
    ddt(rho,U)      CrankNicolson 0.9;
}

ddtSchemes
{
    default         none;
    ddt(alpha)      Euler;
    ddt(rho,U)      CrankNicolson 0.9;
}

ddtSchemes
{
    default         none;
    ddt(alpha)      CrankNicolson 0.9;
    ddt(rho,U)      Euler;
}

In these examples a small amount of off-centering in used to stabilize
the Crank-Nicolson scheme.  Also the specification for alpha1 is via the
generic phase-fraction name to ensure in multiphase solvers (when
Crank-Nicolson support is added) the scheme is identical for all phase
fractions.
2015-02-20 15:59:43 +00:00
Henry
76195712b4 Updated header 2015-02-17 23:59:13 +00:00
Henry
2f27d6bba6 driftFluxFoam: Updated base-class of incompressibleTwoPhaseInteractingMixture 2015-02-17 23:58:44 +00:00
Henry
945c4c3d18 fluidThermo: Add compressibleTransportModel as base-class
Needed to create generic compressible turbulence model library
2015-02-17 17:25:26 +00:00
Henry
9df7208d4c DyM solvers: rationalized handling of time update 2015-02-16 21:48:00 +00:00
Henry
4b4ca3a247 compressibleInterDyMFoam and interPhaseChangeDyMFoam: cache divU before time advancement to ensure the old-time meshPhi are used to make phi absolute
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1531
2015-02-16 21:42:09 +00:00
Henry
8628ef2fea Corrected capitalization of Doxygen documentation comments 2015-02-14 13:10:15 +00:00
Henry
ef95c576ff porousInterFoam is no longer needed
Use interFoam with fvOptions
2015-02-13 21:39:48 +00:00
Henry
f86f904d7d twoPhaseEulerFoam/twoPhaseSystem/diameterModels/IATE: Corrected sign of random coalescence source
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1382
2015-02-13 09:23:22 +00:00
Henry
d9eb18adbc pEqn: DO NOT constrain the pressure equation as this will lead to continuity errors 2015-02-12 10:42:17 +00:00
Henry
5a2c5c8fdc Explicitly name derived fields to improve readability of diagnostic messages and avoid duplicate registration 2015-02-12 09:59:52 +00:00
Henry
04834350dd kineticTheoryModel: Name intermediate variable and avoid duplicate registration 2015-02-11 16:51:44 +00:00
Henry
5ebba3f8e1 driftFluxFoam: Name ghf correctly
Avoids problem of duplicate registration
2015-02-11 14:49:23 +00:00
Henry
573829b60b twoPhaseEulerFoam/twoPhaseSystem/diameterModels/constantDiameter: Do not register the temporary diameter field 2015-02-11 14:48:34 +00:00
Henry
91ffedbeb2 Solvers: Rationalized correctPhi 2015-02-11 13:22:24 +00:00
Henry
c778346c96 Formatting: Rationalized the indentation of #include 2015-02-10 20:35:50 +00:00
Henry
45461bfcfe solvers: rationalize the construction of the fvOptions 2015-02-10 18:33:45 +00:00
Henry
633ae4ede0 solvers: rationalize the return statement 2015-02-10 18:20:42 +00:00
Henry
7c4e3a0761 threePhaseInterfaceProperties: Update constructor to be consistent with the two-phase interfaceProperties
Avoids problem of duplicate registration of K
2015-02-10 17:44:18 +00:00
Henry
fe8c5ff636 Applications: use pimpleControl.dict() and simpleControl.dict() instead of looking-up the sub-dict 2015-02-09 22:15:26 +00:00
Henry
66cb99e696 Updated headers to ensure the class name declared to Doxygen is in the appropriate namespace
Also moved global classes which should be in the Foam namespace into it.
2015-02-09 14:43:11 +00:00
Henry
5c77a34f5a twoPhaseEulerFoam: Corrected EoH2
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1505
2015-02-02 09:44:18 +00:00
Henry
5252c800eb twoPhaseEulerFoam/twoPhaseSystem/diameterModels/IATE: Added fvOptions support
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1402
2015-01-22 10:59:45 +00:00
Henry
9a40fb787e multiphase solvers: print phase-name rather than alpha1/2 when printing max and min phase-fraction 2015-01-21 20:07:15 +00:00
Henry
2aec249647 Updated the whole of OpenFOAM to use the new templated TurbulenceModels library
The old separate incompressible and compressible libraries have been removed.

Most of the commonly used RANS and LES models have been upgraded to the
new framework but there are a few missing which will be added over the
next few days, in particular the realizable k-epsilon model.  Some of
the less common incompressible RANS models have been introduced into the
new library instantiated for incompressible flow only.  If they prove to
be generally useful they can be templated for compressible and
multiphase application.

The Spalart-Allmaras DDES and IDDES models have been thoroughly
debugged, removing serious errors concerning the use of S rather than
Omega.

The compressible instances of the models have been augmented by a simple
backward-compatible eddyDiffusivity model for thermal transport based on
alphat and alphaEff.  This will be replaced with a separate run-time
selectable thermal transport model framework in a few weeks.

For simplicity and ease of maintenance and further development the
turbulent transport and wall modeling is based on nut/nuEff rather than
mut/muEff for compressible models so that all forms of turbulence models
can use the same wall-functions and other BCs.

All turbulence model selection made in the constant/turbulenceProperties
dictionary with RAS and LES as sub-dictionaries rather than in separate
files which added huge complexity for multiphase.

All tutorials have been updated so study the changes and update your own
cases by comparison with similar cases provided.

Sorry for the inconvenience in the break in backward-compatibility but
this update to the turbulence modeling is an essential step in the
future of OpenFOAM to allow more models to be added and maintained for a
wider range of cases and physics.  Over the next weeks and months more
turbulence models will be added of single and multiphase flow, more
additional sub-models and further development and testing of existing
models.  I hope this brings benefits to all OpenFOAM users.

Henry G. Weller
2015-01-21 19:21:39 +00:00
Henry
0da35af2f4 Update headers 2015-01-12 12:34:38 +00:00
Henry
ff29093117 Incompressible turbulence models: Remove the correction of the laminar transport model
Explicitly correct laminar transport at the application level as is done in the multiphase solvers
2015-01-12 12:32:38 +00:00
Henry
f524fa1e9f Updated header 2015-01-08 16:25:48 +00:00
Henry
0f0672563b twoPhaseEulerFoam: removed unnecessary fvc.H 2015-01-08 16:25:17 +00:00
Henry
c4804e5a0b wallDist: Add support for cached wall-reflection vectors
Currently these vectors are generated at the same time as the wall-distance field
by the same run-time selected algorithm.  This will be changed so that the wall-reflection
vectors are only generated and stored if required.
2015-01-08 16:08:53 +00:00
Henry
69ff8aa4d2 wallDist: now a MeshObject cached and updated automatically with a run-time selected algorithm
When using models which require the wallDist e.g. kOmegaSST it will
request the method to be used from the wallDist sub-dictionary in
fvSchemes e.g.

wallDist
{
    method meshWave;
}

specifies the mesh-wave method as hard-coded in previous OpenFOAM versions.
2015-01-08 10:40:23 +00:00
Henry
7c83877181 Updated headers 2015-01-06 17:32:02 +00:00
Henry
4fbf622008 wallDist: separate the meshWaveWallDist from the wallDist interface
In preparation for run-time selectable methods
2015-01-06 17:31:02 +00:00
Henry
e369cd1f24 twoPhaseEulerFoam/interfacialModels/turbulentDispersionModels: Added Fprime function
to support improved discretisation in pEqn and implicit treatment in the phase-fraction equation
2014-12-22 20:11:04 +00:00
Henry
ae26793c91 Added general kOmegaSST and kOmegaSSTSato for multiphase flow
Provided by Juho Peltola
2014-12-19 21:33:38 +00:00
Henry
aceb69149e Reformat references 2014-12-19 21:33:16 +00:00
Henry
fa562216ab Corrected for SP compilation 2014-12-19 17:03:30 +00:00
Henry
090768c0b3 Reformatted references 2014-12-19 11:55:16 +00:00
Henry
b45c39b976 Included new files 2014-12-19 11:54:57 +00:00
Henry
fde846b82e Removed spurious additional phase-fraction factor 2014-12-19 11:54:23 +00:00
Henry
a6780117e4 Added LopezDeBertodano turbulentDispersionModel 2014-12-19 11:53:36 +00:00
Henry
c84400b358 Added IshiiZuber drag model 2014-12-19 11:53:17 +00:00
Henry
95dcfa46aa Move gcc-specific options to the appropriate wmake rules files 2014-12-15 22:39:21 +00:00
Henry
844b283030 New version of wmake supporting out-of-tree object and dependency files 2014-12-14 21:42:18 +00:00
Henry
703a7a1fac Updated copyright following transfer from OpenCFD 2014-12-10 12:41:41 +00:00
Henry
fd5a14decb driftFluxFoam: separate advection and diffusion for predictor-corrector MULES to reduce operator-splitting error 2014-10-13 21:12:51 +01:00
Henry
5c4fdfce99 twoPhaseEulerFoam: Improve stability in the limit alpha -> 0 2014-08-20 11:59:53 +01:00
william
4b30be42ff BUG: mantis #1365: switched to using wall reflection to calculate wall normals, and added caching of the wall values 2014-08-14 12:45:57 +01:00
william
1417d523da BUG: mantis #1362: wrong sign in turbulent dispersion models 2014-07-30 12:59:35 +01:00
Henry
0fd28ff8fc compressibleInterFoam: Add min(T) diagnostics 2014-07-24 18:01:22 +01:00
william
243b3053d0 BUG: Mantis 1325: laplacian name in kinetic theory model incorrectly formatted 2014-06-11 11:31:12 +01:00
william
eb0d91bc96 BUG: Mantis 1325: Johnson Jackson BCs evaluating before dependent sub model data is created 2014-06-11 11:22:33 +01:00
william
5d11952429 BUG: twoPhaseEulerFoam: bug fixes and bounding improvements to interfacal models 2014-06-05 16:08:39 +01:00
Henry
a8f4c2f25e interPhaseChangeFoam: Do not correct phi at start of run
During restart correct phi would need the dilatation from the previous time-step.
Alternative is to run potentialFoam on 0 fields to initialise phi.
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1299
2014-05-20 16:15:07 +01:00
Henry
99d47d85a8 twoPhaseEulerFoam/twoPhaseSystem/diameterModels/IATE: Correct coefficient on dilatation term
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1291
2014-05-16 13:15:11 +01:00
Henry
49c5519be8 multiphaseInterFoam: cache the mixture kinematic viscosity for use in fvOptions etc. 2014-05-13 10:34:33 +01:00
Henry
24679abcc5 twoPhaseEulerFoam: Add fvOptions support and tutorial 2014-05-08 11:45:50 +01:00
Henry
e4bb5fa666 potentialFreeSurfaceDyMFoam: New DyM version of potentialFreeSurfaceFoam
with tutorial
2014-04-30 16:08:03 +01:00
Henry
d6b3f44adb driftFluxFoam/relativeVelocityModels: added access to mixture 2014-04-30 14:49:38 +01:00
Henry
85da9e6a54 twoPhaseEulerFoam: Now in fully-conservative form 2014-04-29 15:47:39 +01:00
Henry
40cfbdc74f Retire settlingFoam: replaced by driftFluxFoam 2014-04-29 14:18:57 +01:00
Henry
5bc5647827 driftFluxFoam: write Udm 2014-04-29 14:18:13 +01:00
Henry
9873774ee9 VoF solvers: rationalize the relationship between VoF solvers
Improve code reuse
Add multiphaseInterDyMFoam
Retire MRFinterFoam -> now handled by interFoam with fvOptions
Update tutorials
2014-04-29 14:16:41 +01:00
Henry
3885c4933d driftFluxFoam: add support for alphaMax and d of the dispersed-phase 2014-04-29 11:42:13 +01:00
Henry
63bef62f8e driftFluxFoam: Change turbulence modelling to new templated framework
Added k-epsilon model with buoyancy correction
2014-04-28 15:31:28 +01:00
Henry
a5f0ea6867 multiphaseInterFoam: Added fvOptions support for MRF etc. and added MRF tutorial
Deleted MRFMultiphaseInterFoam
2014-04-23 14:34:07 +01:00
william
17a85930eb ENH: twoPhaseEulerFoam: added new interfacial models 2014-04-07 10:23:02 +01:00
william
d9f39c10a9 BUG: JohnsonJacksonParticleSlipFvPatchVectorField: using solid turbulent visocity rather than thermo viscosity 2014-04-07 09:30:47 +01:00
william
caaa5c2e49 BUG: twoPhaseEulerFoam: fixed definition of Nu in RanzMarshall heat transfer model 2014-04-04 11:57:39 +01:00
mattijs
17df849a1a COMP: linear: single precision build 2014-04-01 15:06:19 +01:00
william
2db489b562 BUG: twoPhaseEulerFoam: fixed definition of drag in kineticTheory turbulence model 2014-04-01 09:12:03 +01:00
william
c07e1e0486 ENH: twoPhaseEulerFoam: added new interfacial models 2014-03-31 16:59:07 +01:00
william
32aa0b82c6 BUG: twoPhaseEulerFoam: Fixed JohnsonJackson BCs write 2014-03-27 11:58:15 +00:00
Henry
57b968044e Corrected rho used for yPlus 2014-03-26 15:19:39 +00:00
Henry
fcbca30a0d driftFluxFoam: corrected density to get kinematic viscosity for yPlus 2014-03-26 14:31:09 +00:00
Henry
7640ec88b0 driftFluxFoam: Changed the laminar viscosity used in the k-epsilon model that of the mixture 2014-03-26 12:49:18 +00:00
william
17cea5eb7c BUG: driftFluxFoam: removed divide by alpha from general Udm model 2014-03-25 16:06:03 +00:00
william
170fd9e5ec BUG: twoPhaseEulerFoam: Fixed JohnsonJackson Theta BC write 2014-03-25 14:36:18 +00:00
william
7033b6aa5e ENH: twoPhaseEulerFoam: Added Johnson-Jackson slip and granular temperature BCs 2014-03-24 10:30:41 +00:00
william
9183fe2060 ENH: twoPhaseEulerFoam: cached some fields in the kinetic theory model for lookup elsewhere 2014-03-20 11:56:27 +00:00
Henry
110968a5da Improved calculation of div(U) using the volumetric flux 2014-03-18 23:19:41 +00:00
william
acb63f5141 BUG: twoPhaseEulerFoam: corrected the definintion of K in turbulence models and in the segregated drag model 2014-03-18 15:03:41 +00:00
william
e71b49311c STYLE: twoPhaseEulerFoam: updated interfacial model headers to reflect changes in the definition of K 2014-03-18 09:07:35 +00:00
Henry
cfdd46ef15 Separate convection and diffusion terms in the MULEScorr predictor
to remove interaction of the diffusion term with the flux-correction.
2014-03-17 22:38:53 +00:00
Henry
e6236340b5 Removed alphaOuterCorrectors option because the mass-flux should be updated for all PIMPLE iterations
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1225
2014-03-17 21:31:09 +00:00
william
37c75a8b18 BUG: twoPhaseEulerFoam: removed multiple of the continuous phase fraction from force and heat transfer models 2014-03-17 16:34:32 +00:00
Henry
dd0efd159d twoPhaseEulerFoam: added optional alphaMax to phaseModel for MULES limiter
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1209
2014-03-07 23:32:00 +00:00
Henry
cda70b5eb7 driftFluxFoam: Created special mixture viscosity framework for interacting phases
Added Thomas' slurry model
2014-03-06 17:54:27 +00:00
Henry
09bb8b8f7f driftFluxFoam: Rationalisation of the handling of Udm and tauDm 2014-03-05 16:04:10 +00:00
Henry
fd13ec635a SchaefferFrictionalStress: phi input in deg as in JohnsonJacksonFrictionalStress
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1204
2014-03-03 19:20:17 +00:00
Henry
078e4b6980 Removed noDrag and noHeatTransfer models 2014-03-03 11:08:30 +00:00
william
6625be1dc4 ENH: driftFluxFoam: made viscosity and relative velocity modelling run-time selectable 2014-02-26 16:45:46 +00:00
Henry
a729ebe8df cavitatingFoam: rationalised phi -> rhoPhi, phiv -> phi
for consistency with the other multiphase solvers.
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1192
2014-02-26 13:02:59 +00:00
Henry
177b54ae94 driftFluxFoam: Rationalise phase-fraction handling and implement semi-implicit MULES 2014-02-24 17:10:20 +00:00
Henry
9fbfc7da57 driftFluxFoam: New version of settlingFoam including MULES and MRF/fvOptions support 2014-02-19 16:33:51 +00:00
william
10f31ddaea ENH: twoPhaseEulerFoam: modified noBlending to handle cases where only the segregated model is used 2014-02-19 14:19:46 +00:00
Henry
2c5a28e005 LTSInterFoam: revert the time-scale calculation to be based on the mass-flux
Which is more stable for the DTCHull case
2014-02-04 16:25:34 +00:00
william
d67fb0f7c1 Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev 2014-02-03 17:37:57 +00:00
Henry
d00b39aacb LTSInterFoam/setrDeltaT.H: use phi rather than rhoPhi to calculate the time-scale 2014-02-03 17:26:59 +00:00
william
a96e531f5c BUG: twoPhaseEulerFoam: fixed typo in GidaspowSchillerNaumann drag and stability issues in fludised bed cases 2014-02-03 16:05:24 +00:00
william
05a34f3dfa ENH: twoPhaseEulerFoam: changed Cd function to CdRe and removed some residual constants 2014-02-03 12:51:59 +00:00
william
4e36e9ce1c BUG: twoPhaseEulerFoam: fixed multiple registering of blended drag and virtual mass models 2014-01-29 10:16:16 +00:00
Henry
65ce3979fa Updated header 2014-01-28 13:08:39 +00:00
Henry
70f27712ae interPhaseChangeDyMFoam: Corrected correctPhi to include the phase-change dilatation effect 2014-01-28 13:07:35 +00:00
william
7be436b503 Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev 2014-01-27 15:49:11 +00:00
william
4abc681d09 BUG: Removed duplicate registers in twoPhaseEulerFoam 2014-01-27 15:49:05 +00:00
Henry
f0cec33f88 Update headers 2014-01-27 13:00:48 +00:00
Henry
bee3508b38 Adding names to temporaries to avoid duplicate registrations 2014-01-27 12:59:58 +00:00
william
93dd23afdf Merge branch 'bubbleLibrary' 2014-01-24 09:32:49 +00:00
william
2843ceff2f ENH: twoPhaseEulerFoam: made blending methods multiphase, and associated them with model types 2014-01-24 09:09:51 +00:00