Commit Graph

1806 Commits

Author SHA1 Message Date
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
5ebf61eb41 smoluchowskiJumpTFvPatchScalarField: Updated use of basicThermo 2015-06-25 19:28:16 +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
ad40e110df Update headers 2015-06-24 10:45:42 +01:00
Henry Weller
5e05479e2a Use basicThermo::dictName rather than hard-coding "thermophysicalProperties" 2015-06-24 10:44:57 +01:00
Henry Weller
e332c4a335 simpleFoam: Construct a turbulenceModel rather than RASModel
to support laminar simulations in the new framework.

Unfortunately this allows LES models to be instantiated although they
are not compatible with steady-state simulations.
2015-06-23 10:52:45 +01:00
Henry Weller
91ee15e3ac rhoCentralFoam: Added experimental LTS support
Select LTS via the ddtScheme:

ddtSchemes
{
    default         localEuler rDeltaT;
}

The LTS algorithm is 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.

For cases with reasonably uniform meshes like the forwardStep tutorial
LTS does not provide much benefit but for cases with large variation in
cell-size like the biconic25-55Run35 tutorial LTS provides significant
speed-up to convergence particularly if started from uniform conditions.
2015-06-19 11:52:48 +01:00
Henry Weller
80e13f8002 rhoCentralFoam: Reverted correction to BCs
Reverted changes proposed in
http://openfoam.org/mantisbt/view.php?id=1548 as it adversely affects
fixed-value BCs and is formulated to fix an issue with an unphysical
case.  Further analysis of the handling of fixed pressure outlet
conditions as the Mach number approaches 1 is required.
2015-06-18 15:10:48 +01:00
Henry Weller
164448f8b1 rhoCentralFoam: Updated Courant number calculation to be cell-based rather than face-based
Now consistent with the way the Courant number is calculated for other solvers
2015-06-17 20:20:49 +01:00
Henry Weller
bc493180d9 rhoCentralFoam: Ensure fixed value boundary conditions are preserved
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1748
2015-06-17 08:46:46 +01:00
Henry Weller
8293227964 Rationalized the LTS solvers 2015-06-16 12:42:37 +01:00
Henry Weller
03adb37ab4 LTSCoalChemistryFoam: LTS version of coalChemistryFoam 2015-06-15 22:36:27 +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
af51444760 rhoCentralFoam, sonicFoam: Remove superfluous includes
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1730
2015-06-03 09:40:25 +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
38177526ff simpleFoam/SRFSimpleFoam: Added support for SIMPLEC
SIMPLEC (SIMPLE-consistent) is selected by setting "consistent" option true/yes:

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    consistent yes;
}

which relaxes the pressure in a "consistent" manner and additional
relaxation of the pressure is not generally necessary.  In addition
convergence of the p-U system is better and reliable with less
aggressive relaxation of the momentum equation, e.g. for the motorbike
tutorial:

relaxationFactors
{
    equations
    {
        U               0.9;
        k               0.7;
        omega           0.7;
    }
}

The cost per iteration is marginally higher but the convergence rate is
better so the number of iterations can be reduced.

The SIMPLEC algorithm also provides benefit for cases with large
body-forces, e.g. SRF, see tutorials/incompressible/SRFSimpleFoam/mixer
and feature request http://www.openfoam.org/mantisbt/view.php?id=1714
2015-05-29 11:30:40 +01:00
Henry
1568641986 DPMFoam, MPPICFoam: Corrected contiuousPhaseName -> continuousPhaseName
Resolves second part of http://www.openfoam.org/mantisbt/view.php?id=1717
2015-05-28 17:01:18 +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
c28036665d potentialFoam: No longer executes functionObjects by default
Use the new -withFunctionObjects command-line option to execute functionObjects
2015-04-25 21:56:14 +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
67e8bd8bf9 shallowWaterFoam: Read hU rather than U to support complex e.g. time-varying BCs
Disadvantage is that the BC values have to be specified in terms of hU
rather than U.  The alternative would be to add complex code to map h
and U BCs into the equivalent for hU.
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1566
2015-03-13 22:14:08 +00:00
Henry
d0122cfea3 Revert "Revert "Revert "DPMFoam: Multiply the gravitational force by the gas phase fraction"""
This reverts commit 41b9348271.
2015-03-13 14:39:01 +00:00
Henry
ec41a4cc7e rhoCentralFoam: Correct handling of single-cell meshes
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1548
2015-03-13 09:51:33 +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
41b9348271 Revert "Revert "DPMFoam: Multiply the gravitational force by the gas phase fraction""
This reverts commit 0a6395b6ee.
2015-03-11 17:33:14 +00:00
Henry
0a6395b6ee Revert "DPMFoam: Multiply the gravitational force by the gas phase fraction"
This reverts commit 991819bbf6.
2015-03-11 15:47:29 +00:00
Henry
991819bbf6 DPMFoam: Multiply the gravitational force by the gas phase fraction
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1563
2015-03-11 10:50:32 +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
da09c915ff rhoCentralFoam: Corrected the BCs for positive (outgoing) fluxes
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1548
2015-02-26 17:00:36 +00:00
Henry
35d8078251 rhoCentralDyMFoam: Add support for morphing-meshes and provide movingCone tutorial case 2015-02-25 12:20:12 +00:00
Henry
7e2329c0b5 rhoEqn: Do not constrain; would violate conservation 2015-02-22 16:50:48 +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
1dcf50d4b4 icoFoam/nonNewtonianIcoFoam: Update to use pisoControl 2015-02-21 21:39:01 +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
1845e2014d DSMC: Rationalization and addition of mapping support 2015-02-20 17:24:14 +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
32a31972aa potentialFoam: Added new method to estimate the static pressure field from the velocity
Uses a form of the Euler equation in which only variation along the streamlines is considered
2015-02-19 19:05:17 +00:00
Henry
eeedf5a051 Thermodyamics: Add support for multiphase
Pass the phase-name through hierarchy
Add phase-name to variables
Split basicCombustionMixture
Update applications accordingly
2015-02-18 21:21:22 +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
5e6aa74566 chtMultiRegionSimpleFoam: Support simpler input for rhoMax and rhoMin 2015-02-17 15:06:31 +00:00
Henry
16a90e82ff applications/solvers: Update trans-sonic option in pEqns to by consistent with sonic-solvers 2015-02-17 10:47:34 +00:00
Henry
9df7208d4c DyM solvers: rationalized handling of time update 2015-02-16 21:48:00 +00:00
Henry
e26498eed3 Rationalized sprayFoam family of solvers and added sprayDyMFoam 2015-02-16 21:47:15 +00:00
Henry
fb54c54db0 Rationalized pEqn in sprayFoam solvers 2015-02-16 21:45:28 +00:00
Henry
7132f1380f Compressible solvers: rhoMax and rhoMin now optional and may be supplied without dimensions 2015-02-16 21:43:40 +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
4129560601 potentialFoam: Solve for velocity potential named Phi rather than using the pressure field for this purpose
The Phi field is read if available otherwise created automatically with
boundary conditions obtained automatically from the pressure field if
available (with optional name) otherwise inferred from the velocity
field.  Phi Laplacian scheme and solver specification are required.  See
tutorials for examples.
2015-02-14 11:03:37 +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
0ea062816e Correct section comment: there can only be one destructor 2015-02-12 21:57:29 +00:00
Henry
35675e512a rhoCentralDyMFoam: Name intermediate fields to avoid duplicate registration
Updated mesh-motion functionality
2015-02-12 13:17:28 +00:00
Henry
315ab1225c Update headers 2015-02-12 12:34:27 +00:00
Henry
d01afadbc1 Name fields to avoid duplicate registration 2015-02-12 12:33:45 +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
46f16ecb80 Use old PISO control structure for teaching solvers icoFoam and nonNewtonianIcoFoam 2015-02-10 17:31:38 +00:00
Henry
25908eb4fc pimpleControl and pisoControl: Rationalize PISO and PIMPLE control 2015-02-10 13:47: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
a92a04f18d Updated options files for new location of radiation lnInclude directory 2015-01-11 22:27:36 +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
andy
ade2801158 ENH: chtMultiRegionFoam solvers - added option to calculate using frozen flow 2014-10-16 10:20:19 +01: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
sergio
cb8b410bf3 BUG: mantis 1397. volSymmTensorField not found for cht problems with two coupled solids 2014-09-15 17:19:57 +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
27bce3b0a1 sonicFoam family: updated 2014-07-29 15:17:50 +01:00
Henry
0fd28ff8fc compressibleInterFoam: Add min(T) diagnostics 2014-07-24 18:01:22 +01:00
Henry
382574378f rhoPimpleDyMFoam: Update correctPhi for morphing meshes 2014-06-19 15:19:13 +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
b602e83da5 rhoPimpleDyMFoam/pEqn: Filter use of meshPhi 2014-05-18 21:31:44 +01:00
Henry
e4cecfcdb5 rhoPimpleDyMFoam/correctPhi.H: Add compressibility term in pcorr equation 2014-05-18 21:19:26 +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
7026e6a6a6 rhoPorousSimpleFoam: remove optional constraints on pEqn as this would violate continuity 2014-05-08 11:55:55 +01:00
Henry
24679abcc5 twoPhaseEulerFoam: Add fvOptions support and tutorial 2014-05-08 11:45:50 +01:00
Henry
f609ccd76f fvOptions: Rationalise the rhoEqn.H so that all compressible solvers support mass-sources correctly 2014-05-01 16:11:03 +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
0c181744a2 BUG: Mantis #1259: created lagrangian turbulence library for new turbulent structure 2014-04-15 16:38:06 +01:00
andy
a840324451 BUG: heat transfer Boussinesq solvers - added fvOptions MRF support - mantis #1267 2014-04-11 12:11:36 +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
Henry
cab71bd05f pimpleFoam: Added support for fixedFluxPressure BC 2014-03-20 16:34:31 +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
b766becf56 Added makeRelative for MRF
Resolves bug report http://www.openfoam.org/mantisbt/view.php?id=1221
2014-03-14 08:25:45 +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
d9eba622c5 buoyantPimpleFoam: Corrected phiHbyA
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1183
2014-02-25 09:53:16 +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
andy
fbee36db43 BUG: chtMultiRegionSimpleFoam - solveSolid error due to incorrect scoping - mantis #1163 2014-02-19 09:26: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
Henry
e0a6bf9a00 Update header 2014-02-04 16:25:17 +00:00
Henry
9dffad7cad Compressible solvers: change interpolation of rho*HbyA back to HbyA to avoid instability in prism and NACA test cases 2014-02-04 16:24:23 +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
5a106bc101 STYLE: typo in DPMFoam and MPPICFoam descriptions 2014-02-03 16:20:26 +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
william
e0de7c96c7 BUG: DPMFoam: removed duplicate register of transport properties dictionary 2014-01-29 09:34:14 +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
william
87115af2d0 ENH: twoPhaseEulerFoam: Removed requirement that a model (most likely "none") had to be specified for all pairs 2014-01-23 16:37:16 +00:00
william
e4c45b821e STYLE: twoPhaseEulerFoam: changed coefficient names in segregated drag model 2014-01-23 11:05:55 +00:00
william
ff9366cb81 ENH: twoPhaseEulerFoam: Added noBlending model for cases with a guaranteed continuous phase 2014-01-23 10:58:24 +00:00
william
60b8939e1b BUG: twoPhaseEulerFoam: fixed definition of Prandtl number in phase pair 2014-01-23 10:51:06 +00:00
william
4735a5b023 STYLE: twoPhaseEulerFoam: Added header references and comments to new interfacial models 2014-01-23 10:09:55 +00:00
andy
ab1c1d1373 ENH: simpleReactingParcelFoam - added density under-relaxation 2014-01-22 17:51:51 +00:00
william
509529cab8 ENH: Added bubble library functionality to twoPhaseEulerFoam 2014-01-22 17:46:17 +00:00
Henry
9b2f66ed48 Deleted legacy files 2014-01-22 11:39:46 +00:00
Henry
a3e1fd8006 Removed optional library which should be selected at run-time 2014-01-21 12:25:18 +00:00
andy
3c0058f4e9 ENH: interDyMFoam - added linkage agains sixDoFRigidBodyMotion library 2014-01-20 14:10:45 +00:00
Henry
608fe67047 Improved comment 2014-01-20 12:50:15 +00:00
Henry
4d12989c43 VoF alphaEqn: Under-relax the correction for all but the 1st corrector 2014-01-20 12:48:21 +00:00
andy
7e8981b72e GIT: resolve merge conflict 2014-01-10 15:48:55 +00:00
william
5d55a1f60f ENH: Added noLift model for twoPhaseEulerFoam 2014-01-06 14:16:41 +00:00
william
b842081c35 BUG: fixed referencing of drag model in two phase system 2014-01-03 11:49:00 +00:00
william
475e885772 ENH: Abstracted and made run-time selectable the lift models in twoPhaseEulerFoam 2014-01-02 16:53:37 +00:00
Henry
b8335f88af Corrected sign of momentum source 2013-12-21 12:25:47 +00:00
Henry
498ff5a9cd compressibleInterDyMFoam: Corrected handling of the relative flux 2013-12-18 22:55:57 +00:00
william
4d7ab99f99 BUG: Separated surface film wall functions into a separate library to remove duplication messages when using new turbulent structure 2013-12-18 16:53:41 +00:00
william
9916da0252 BUG: Added lagrangianTurbulence library to solvers: error messages still showing due to surfaceFilm library 2013-12-17 15:04:05 +00:00
Henry
50557d4638 Merge branch 'master' of ssh://dm/home/dm4/OpenFOAM/repositories/OpenFOAM-dev 2013-12-17 15:00:37 +00:00
Henry
267f5cf0f5 interDyMFoam, interPhaseChangeDyMFoam : Use 1/A from the previous time-step rather than 1 in the pcorr equation
This provides better convergence and consistency between p_rgh and pcorr
2013-12-17 14:59:13 +00:00
william
0de6a8dd2b ENH: Added MPPICFoam solver source and build files 2013-12-17 11:05:55 +00:00
william
c5d8166e76 ENH: Added MPPICFoam solver and MPPIC types and models to the Lagrangian library 2013-12-17 10:41:35 +00:00
william
5e884ea48a ENH: added DPMFoam, DPM drag models and Goldschmidt tutorial case 2013-12-16 18:16:12 +00:00
Henry
a8c917fd4b DyM solvers: correct Uf using phi after construction 2013-12-11 17:26:34 +00:00