Commit Graph

5109 Commits

Author SHA1 Message Date
cf552e6343 utilities: Rationalised and standardised the handling of the -dict option 2021-03-05 13:42:46 +00:00
d4d21c9c04 engineMesh: Added dynamic() member function 2021-03-05 13:36:06 +00:00
9d520c6ef0 multiphaseEuerFoam: LaakkonenAlopaeusAittamaaDsd: Corrected SourceFiles documentation
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2021-03-03 14:12:32 +00:00
a936156f6d multiphaseEulerFoam: populationBalance: Removed population balance name suffix
A population balance suffix after the phase suffix makes determining the
phase for a given name more complex. The additional suffix is also
unnecessary as a phase can only ever belong to one population balance,
so the phase name alone uniquely idetifies the grouping.

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2021-03-03 14:06:35 +00:00
9055f96a1b ISstream: Removed limits on buffer size and made thread safe 2021-03-03 13:41:24 +00:00
2730049f70 fvOptions: Merged corrections with constraints
Field corrections are effectively explicit constraints applied to the field
after solution rather than to the equation and it significantly simplifies the
implementation to treat them as a special case of constraints.  To implement
this the fvOption::correct(<field>) function has been renamed
fvOption::constrain(<field>) and uses constrainsField and constrainedFields.
2021-03-02 16:57:44 +00:00
bdf45fb915 multiphaseEulerFoam: Added correctPhi support for moving-mesh cases with cell-volume change 2021-03-01 17:12:29 +00:00
be86c8ec0f CorrectPhi: Separated correctUphiBCs to simplify and generalise the use of CorrectPhi 2021-03-01 17:11:05 +00:00
6eb19d1b4a multiphaseEulerFoam::MovingPhaseModel: Added cast for older gcc versions 2021-03-01 14:43:45 +00:00
91874975aa multiphaseEulerFoam: Added UfRef() access function for moving-mesh flux manipulations 2021-03-01 11:53:41 +00:00
0e1db2f3c6 compressibleInterFoam: Corrected handling for rAU for restart of moving-mesh cases 2021-02-26 22:23:48 +00:00
d54645f2cd compressibleInterFoam: Changed correctPhi to use p_rgh BCs rather than p 2021-02-26 14:52:52 +00:00
e51038a212 multiphaseEulerFoam: Converted relative fluxes to absolute for the virtual-mass terms 2021-02-25 14:22:25 +00:00
9181195306 multiphaseEulerFoam: Changed field copies to references to cached tmps for efficiency 2021-02-24 18:14:31 +00:00
a060c63235 multiphaseEulerFoam: Corrected handling of K for energy equation
Resolves bug-report https://bugs.openfoam.org/view.php?id=3634
2021-02-24 15:37:28 +00:00
9c82a94e31 applications/solvers: Added fvOptions.correct()
to support new fvOptions that solve equations and provide sources to multiple
fields.
2021-02-24 08:34:50 +00:00
ba1e6da3b1 tutorials/incompressible/simpleFoam/drivaerFastback/Allrun: Added -test exclusion 2021-02-24 08:34:08 +00:00
1139177c75 compressibleInterFoam: Add support for surface films via the new VoFSurfaceFilm fvOption
This replaces compressibleInterFilmFoam in a more flexible, general and easily
maintainable form.  A compressibleInterFilmFoam script is provided to redirect
uses to the replacement functionality:

The compressibleInterFilmFoam solver has solver has been replaced by the more general
compressibleInterFoam solver, which now supports surface films using the new
VoFSurfaceFilm fvOption.

To run with with surface film create a system/fvOptions dictionary
containing the VoFSurfaceFilm specification, e.g.

    VoFSurfaceFilm
    {
        type    VoFSurfaceFilm;

        phase   water;
    }
2021-02-23 14:21:22 +00:00
2bd0fd2f49 drivaerFastback: changed mesh size options.
Allrun script includes the following options
-c | -cores <nCores>   number of cores in parallel run
-h | -help             help
-m | -mesh <S|M|L|XL>  mesh size
                       - S: small, 440k cells
                       - M: medium, 3M cells (default)
                       - L: large, 22.5M cells
                       - XL: extra large, ~200M cells
20210220
2021-02-19 15:45:25 +00:00
8922bdf6a7 drivaerFastback: additional '-help' option in Allrun script 2021-02-19 09:37:56 +00:00
ab38757902 drivaerFastback: additional '-cores' and '-meshSize' options in Allrun script 2021-02-19 09:33:12 +00:00
a72c3e6c88 tutorials::drivaerFastback: Added commented reconstruction commands 2021-02-19 08:52:58 +00:00
03f8a05e12 drivaerFastback: corrected gzip-compressed files 2021-02-18 20:48:04 +00:00
6336a30468 drivaerFastback: gzip-compressed geometry files 2021-02-18 19:46:58 +00:00
c8e35a2f67 drivaerFastback: example case of automotive aerodynamics 2021-02-18 19:43:45 +00:00
0e13649996 surfaceFeatures: Consistent plane specification for subsetting
Specifying a plane with which to subset feature edges is now done using
the same dictionary syntax used elsewhere in OpenFOAM. For example, in
system/surfaceFeaturesDict:

    subsetFeatures
    {
        // Include only edges that intersect the plane
        plane
        {
            planeType       pointAndNormal;
            point           (0 0 0);
            normal          (1 0 0);
        }

        ...
    }
2021-02-18 09:09:53 +00:00
cb8be0abbb isoSurface: Improvements to filtering robustness
The "full" filtering option in isoSurface now no longer attempts to
remove non-manifold faces. As a result, this filtering level is now
robust, but it may leave small imperfections in the surface. This has
been reinstated as the default filtering level as it has advantageous
properties over "partial" filtering in both smoothness of visualisation
and in the size of the files it generates.

A new "clean" level has been added, which does try and remove
imperfections. This is equivalent to the previous operation of the
"full" option. This is not guaranteed to be robust. In certain
configurations the removal process can propagate and delete an entire
section of the surface.
2021-02-18 08:49:38 +00:00
0d24c90b29 sampling: updated pointAndNormal plane parameters in header documentation 2021-02-17 19:21:24 +00:00
33537598e4 etc/templates/closedVolume/system/fvSchemes: Corrected div scheme for buoyantSimpleFoam. 2021-02-17 16:53:55 +00:00
de8042ee6a tutorials/resources/blockMesh/sloshingTank3D: Reformatting. 2021-02-17 16:23:57 +00:00
bed0454b2d tutorials/resources/blockMesh/sloshingTank2D: Reformatting. 2021-02-17 16:21:42 +00:00
306d44a04b tutorials/resources/blockMesh/titaniaSynthesis: Reformatting. 2021-02-17 16:15:31 +00:00
be0ee0f464 tutorials/multiphase/interFoam/RAS/planingHullW3: Removed unused scheme 2021-02-17 15:18:36 +00:00
a24e8e463a fvOptions::damping: Replaced the unused cellSetOption base-class with option
Resolves the bug-report https://bugs.openfoam.org/view.php?id=3631
2021-02-17 15:16:25 +00:00
f4a7dad25b fvOptions::buoyancyEnergy,radiation: Corrected documentation
See https://bugs.openfoam.org/view.php?id=3631
2021-02-17 12:39:11 +00:00
6c3b0a46c0 functionObjects::forces: Added support for phase filtering
Usage
    \table
        Property     | Description             | Required    | Default value
        type         | Type name: forces       | yes         |
        log          | Write force data to standard output | no | no
        patches      | Patches included in the forces calculation | yes |
        p            | Pressure field name     | no          | p
        U            | Velocity field name     | no          | U
        rho          | Density field name (see below) | no   | rho
        phase        | Phase name for phase-fraction  | no   |
        CofR         | Centre of rotation (see below) | no   |
        directForceDensity | Force density supplied directly (see below)|no|no
        fD           | Name of force density field (see below) | no | fD
    \endtable

with the optional 'phase' entry the corresponding phase-fraction is used to
filter the surfaces forces for that phase.
2021-02-16 15:10:09 +00:00
a221c29a19 isoSurface: Changed default filtering to "partial"
The "full" filtering option has been found not to be sufficiently
robust. It erroneously removes entire contiguous sections of the
iso-surface in a number of situations. Full filtering can still be
enabled by specifying "filtering full;" in the relevant dictionary.
2021-02-16 12:19:05 +00:00
fa21918cb5 tutorials/multiphase/multiphaseInterFoam/laminar/mixerVessel2D: Changed rotor U BC
to fixedValue to provide velocity distribution on the rotor for post-processing.
2021-02-15 15:13:10 +00:00
a646067973 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2021-02-13 19:00:29 +00:00
766eb61f7b viscosityModels::BirdCarreau: Simplified the specification of the optional 'a' parameter 2021-02-13 18:59:46 +00:00
f5eace92b9 caseDicts/annotated/topoSetDict: Added examples of new sources 2021-02-12 17:28:32 +00:00
1440b668f1 topoSet: Added patchDistanceToCell cell source
This source choses cells below a certain distance to a patch or a set of
multiple patches:

Example Usage in system/topoSetDict:

    actions
    (
        {
            name    c0;
            type    cellSet;
            action  new;
            source  patchDistanceToCell;
            sourceInfo
            {
                patch ".*Wall";
                distance 0.1;
            }
        }
    );

Example usage in system/setFieldsDict:

    defaultFieldValues
    (
        volScalarFieldValue alpha.water 0
    );

    regions
    (
        patchDistanceToCell
        {
            patches (".*Wall" atmosphere);
            distance 0.1;
            fieldValues
            (
                volScalarFieldValue alpha.water 1
            );
        }
    );
2021-02-12 15:31:05 +00:00
583d97d145 Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-dev 2021-02-12 15:12:27 +00:00
6b29786f36 mixerVesselAMI: delete buried README file 2021-02-12 15:12:10 +00:00
6b469e278c containerDischarge2D: Tutorial with liquid discharge from the container. 2021-02-12 14:08:37 +00:00
d57401c5af multiphaseEulerFoam: Corrected header documentation of PrinceBlanch coalescence model
The paper of Prince and Blanch (1996) contains an error in equation (2),
which computes the collision cross-sectional area and should be using
the bubble diameter rather than the radius. This error also extends to
equation (8) where the coefficient is wrong by a factor of 4. The
current code is correct, but the documentation was still referring to
the wrong coefficient.

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2021-02-12 11:05:29 +00:00
f56539d8de porosityModel: Rationalised and simplified the interface
interRegionExplicitPorositySource: Removed the unnecessary and inappropriate
bidirectional mapping of data between the regions sharing the porous media.  Now
the drag is calculated on the same mesh as the flow and filtered according to
the fraction of the cells containing porosity.

To complete this work a small change will be made to the mesh-mapping functions.
2021-02-12 10:12:05 +00:00
0f04dd04c6 DenseDragForce: Corrected lookup type
Resolves bug report https://bugs.openfoam.org/view.php?id=3626
2021-02-12 09:36:16 +00:00
0e8391b35a solvers: Support outer correctors with frozenFlow setting
reactingFoam and multiphaseEulerFoam can now both be run with the
frozenFlow switch and multiple outer correctors. This makes their
behaviour consistent with the frozenFlow implementation in
chtMultiRegionFoam.
2021-02-12 09:04:11 +00:00
4d8aef07ef fvOptionList: Renamed addedToFields -> addSupFields 2021-02-12 08:38:29 +00:00