Commit Graph

3480 Commits

Author SHA1 Message Date
e3672a7e4f reactingTwoPhaseEulerFoam: Prevent error in LBend tutorial
The LBend was set to run for 2 s, but at about 1.95 s the packed region
builds up to the inlet and the simulation diverges. The end time has
been reduced to 1.9 s so that this does not occur.
2018-09-24 15:26:58 +01:00
2d3e7e9981 reactingEulerFoam/phaseModels: Added multi-component isothermal phase 2018-09-24 11:24:25 +01:00
eaa089e38c InterfaceCompositionPhaseChangePhaseSystem: Two sided mass transfer fix
This change fixes an issue where mass transfer models were being looked
up on the wrong side of the interface. This also means that specifying
mass transfer just on one side of an interface is now possible without
generating errors.
2018-09-24 11:21:27 +01:00
819c24869e singleRegionCorrectorConvergenceControl: Typo in error message 2018-09-24 09:54:53 +01:00
1c0256ffab InterfaceCompositionPhaseChangePhaseSystem: Typo in error message 2018-09-24 09:54:34 +01:00
1c26ed2d31 particle: Added logic to break closed loops
When a part of the tetrahedral decomposition is inverted, tracking along
a straight line can result in a closed loop which never ends.

This change adds a limit to the number of tracks that are done that end
before or at the maximum distance already achieved. This breaks these
closed loops and prevents the simulation from hanging. The particles do,
however, end up in an incorrect position as a result of the tracking
being abandoned at an intermediate point in the step. A warning is
printed to indicate when this is occuring.

This resolves bug report https://bugs.openfoam.org/view.php?id=3056
2018-09-24 09:19:21 +01:00
a098cdb710 hydrostaticDisplacementFvPatchVectorField: New experimental traction boundary condition for solidDisplacementFoam
Description
    Fixed traction boundary condition for the standard linear elastic, fixed
    coefficient displacement equation in which the traction is caused by
    the hydrostatic pressure of an external liquid reservoir.
20180922
2018-09-21 22:12:21 +01:00
82d8784901 solidDisplacementFoam: Added support for fvOptions in both D and T equations 2018-09-21 14:52:46 +01:00
3a7b76198e Downgraded OpenMPI to 2.1.1 to avoid bug in the new "vader" shared memory module
Resolves bug-report https://bugs.openfoam.org/view.php?id=3071
2018-09-21 09:58:31 +01:00
721b807122 Downgraded OpenMPI to 3.0.2 to avoid bug in latest version
Resolves bug-report https://bugs.openfoam.org/view.php?id=3071
2018-09-13 23:59:48 +01:00
0cdea3c64e gambitToFoam: Removed \file statement in header 2018-09-07 16:35:34 +01:00
26478060e0 Created .C files corresponding to the <application>.L files for Doxygen and -doc option
Resolves bug-report https://bugs.openfoam.org/view.php?id=3070
2018-09-07 15:07:19 +01:00
490a297190 Doxyfile: include .L files and exclude .C files which clash with application source files
Resolves bug-report https://bugs.openfoam.org/view.php?id=3070
2018-09-06 18:05:22 +01:00
0dfcae6a26 doc/Doxygen/Doxyfile: Exclude src/mesh/blockMesh/blockMesh/blockMesh.C
to avoid clash with the blockMesh.C application source file
2018-09-06 00:00:19 +01:00
e757d5210e functionObjects::log: New functionObject to calculate the natural logarithm of a scalar field
Description
    Calculates the natural logarithm of the specified scalar field.

    Performs \f$ln(max(x, a))\f$ where \f$x\f$ is the field and \f$a\f$ an
    optional clip to handle 0 or negative \f$x\f$.

The etc/caseDicts/postProcessing/fields/log configuration file is provided so
that the simple #includeFunc can be used to execute this functionObject during
the run, e.g. for some dimensionless field x

functions
{
    #includeFunc log(x)
}

or if x might be 0 or negative in some regions the optional clip may be applied:

functions
{
    #includeFunc log(p,clip=1e-6)
}
2018-09-05 23:43:54 +01:00
53ee32d5c2 pimpleFoam: Corrected application name 2018-09-05 18:05:34 +01:00
c75f7b6e19 LESdeltas::PrandtlDelta: Corrected documentation
Resolves bug-report https://bugs.openfoam.org/view.php?id=3066
2018-09-04 14:46:54 +01:00
3fc52f94d7 Function1/Scale: Added optional scaling of the 'x' argument to the scale and value functions
Resolves feature request https://bugs.openfoam.org/view.php?id=3053#c10023
2018-09-03 18:40:21 +01:00
c7e2611975 radiationCoupledBase: Corrected scope of the NamedEnum definition 20180902 2018-08-31 22:09:05 +01:00
187557eb4a radiation/derivedFvPatchFields: Rationalised namespace of the BCs 2018-08-31 17:04:32 +01:00
90c74d8c7c Function1/CSV: Allow reference column index to be higher than highest component column index
Patch contributed by Juho Peltola, VTT.
Resolves patch request https://bugs.openfoam.org/view.php?id=3053
2018-08-31 16:47:36 +01:00
e750f2555c src/OpenFOAM: Rationalised use of enumerations by using the C++11 scoped form
for Time, treeBoundBox, indexedOctree, dynamicIndexedOctree, CirculatorBase
2018-08-31 16:11:16 +01:00
de456c4f94 applications/test/wordRe: Updated for changes to enum in class wordRe 2018-08-31 16:10:23 +01:00
9581ec1384 applications/test/alloc: Avoid compilation warning 2018-08-31 16:10:05 +01:00
f8ecf8f98e applications/test/ensightFoamReader: Removed due the large number of compilation issues 2018-08-31 16:09:32 +01:00
ad90fe0ac9 applications/test/cubicEqn: Avoided warning from gcc-8.1 2018-08-31 16:08:52 +01:00
ad8a0f967c applications/test/HashingSpeed: Removed due to the large number of compilation warnings 2018-08-31 16:08:23 +01:00
bef34e6b05 greyDiffusiveRadiationMixedFvPatchScalarField, wideBandDiffusiveRadiationMixedFvPatchScalarField: Added mapping functions
Patch contributed by Timo Niemi, VTT.
Resolves patch request https://bugs.openfoam.org/view.php?id=3062
2018-08-31 16:07:41 +01:00
dee5b8e4eb src/OpenFOAM: Rationalised use of enumerations by using the C++11 scoped form
for polynomialEqns
2018-08-30 13:02:18 +01:00
5377d637f7 LangmuirHinshelwoodReactionRate: Added T^beta pre-factor to the Arrhenius expressions 2018-08-28 17:28:46 +01:00
4f533d3c36 src/OpenFOAM: Rationalised use of enumerations by using the C++11 scoped form
for triangle intersection.
2018-08-27 20:48:18 +01:00
98ec0df866 reactingParcelFoam: Removed the unnecessary and inconsistent writing of the density field
Resolves feature request https://bugs.openfoam.org/view.php?id=3054
2018-08-27 20:47:00 +01:00
8ed92de98c src/OpenFOAM: Rationalised use of enumerations by using the C++11 scoped form
for

    db/functionObjects/timeControl/timeControl.H: timeControls
    primitives/bools/Switch/Switch.H: class switchType
    primitives/strings/fileName/fileName.H: fileType
    primitives/strings/wordRe/wordRe.H: compOption
20180826
2018-08-25 07:26:51 +01:00
61c9bc2ee3 functionObjects: Rationalised use of enumerations by using the C++11 scoped form 2018-08-23 17:25:47 +01:00
fd08eae933 Replaced mplib with mplibDummy for consistency with the dummy Pstream 2018-08-16 21:11:40 +01:00
583043b0e3 Moved -lpthread to wmake/rules/General/mplib 2018-08-16 13:30:04 +01:00
bce53f1758 Rationalising the mplib files and reinstating support for compiling without MPI 2018-08-16 12:26:16 +01:00
50f5c22c87 wmake/rules: Removed duplicate mplib.* files 2018-08-15 17:27:32 +01:00
f5dd712c84 localEulerDdtScheme: Added fvcDdtPhiCoeff calculated from the local time-step
For cases where the time-step varies in space ddtCorr is not needed with LTS but
in regions where the time-step is uniform it may be required.  This change
ensures that the localEuler scheme operates equivalently to Euler in regions and
for cases where the time-step is uniform.

Addresses report https://bugs.openfoam.org/view.php?id=3020
2018-08-15 14:40:43 +01:00
925e6b5b02 particleForces: New scaled force, and optional alternate syntax
In addition to the current syntax, particle forces can now also be
specified with a named dictionary and a type entry. This allows multiple
forces of the same type to be used. For example:

    particleForces
    {
        // Existing syntax. The model typename, either on it's own
        // or heading a dictionary of model parameters.

        gravity;

        ErgunWenYuDrag
        {
            alphac alpha.air;
        }

        // New syntax. An arbitrary name, followed by a dictionary
        // containing a type entry, and any model parameters.

        gravity2
        {
            type gravity;
        }

        drag2
        {
            type ErgunWenYuDrag;
            alphac alpha.air;
        }
    }

A scaled force has also been added. This is a wrapper around another
particle force model, and applies a scaling factor to the force value.
It can be used to tune the models, or to blend two or more models.

    particleForces
    {
        // Tuning the simulation by reducing the pressure gradient force

        scaled1
        {
            type scaled;
            factor 0.94;
            forceType pressureGradient;
            U U;
        }

        // Blending two drag models

        scaled2
        {
            type scaled;
            factor 0.2;
            forceType sphereDrag;
        }

        scaled3
        {
            type scaled;
            factor 0.8;
            forceType ErgunWenYuDrag;
            alphac alpha.air;
        }
    }

This work was supported by Moritz Hoefert, at Evonik
2018-08-15 10:39:24 +01:00
9a437d5743 LangmuirHinshelwoodReactionRate: Added support for arbitrary powers of concentration in the denominator
and the "1" constant in the denominator is now an optional input to provide
greater flexibility of the model.
2018-08-13 16:10:14 +01:00
c3c09229be PDRFoam: Added betav to ddtCorr
Resolves bug-report https://bugs.openfoam.org/view.php?id=3014
2018-08-13 14:47:30 +01:00
adea51c53c water/thermophysicalProperties: Changed equation of state to perfectFluid 2018-08-12 19:04:43 +01:00
f18a771184 timeSelector: Removed unused select function 2018-08-12 19:04:14 +01:00
380eca5586 Updated OpenMPI to version 3.1.1 2018-08-10 11:37:44 +01:00
df4d9de0d3 LangmuirHinshelwoodReactionRate: Corrected specie "A" and "B" lookup 2018-08-09 14:14:48 +01:00
5cf8d63a1d wallHeatTransferCoeff: Avoid holding references to temporary fields 2018-08-09 10:52:07 +01:00
03c56a1449 wallHeatFlux: Avoid holding references to temporary fields 2018-08-08 18:37:08 +01:00
7d95604f2f foamUpdateCaseFileHeader: Deleted because out of date and unmaintained 2018-08-08 15:38:49 +01:00
bc6cb51a42 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2018-08-07 14:36:35 +01:00