Commit Graph

2522 Commits

Author SHA1 Message Date
a4e755c0dc Replace foamList utility with -list.* options
Provides better context for the available boundary conditions, fvOptions,
functionObjects etc. and thus returns only those available to and compatible
with the particular application.

e.g.

pimpleFoam -help

Usage: pimpleFoam [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -listFunctionObjects
                    List functionObjects
  -listFvOptions    List fvOptions
  -listRegisteredSwitches
                    List switches registered for run-time modification
  -listScalarBCs    List scalar field boundary conditions (fvPatchField<scalar>)
  -listSwitches     List switches declared in libraries but not set in
                    etc/controlDict
  -listTurbulenceModels
                    List turbulenceModels
  -listUnsetSwitches
                    List switches declared in libraries but not set in
                    etc/controlDict
  -listVectorBCs    List vector field boundary conditions (fvPatchField<vector>)
  -noFunctionObjects
                    do not execute functionObjects
  -parallel         run in parallel
  -postProcess      Execute functionObjects only
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage

pimpleFoam listTurbulenceModels

pimpleFoam -listTurbulenceModels
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : dev-39c46019e44f
Exec   : pimpleFoam -listTurbulenceModels
Date   : Jun 10 2017
Time   : 21:37:49
Host   : "dm"
PID    : 675
Case   : /home/dm2/henry/OpenFOAM/OpenFOAM-dev
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
SetNaN : Initialising allocated memory to NaN (FOAM_SETNAN).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Turbulence models
3
(
LES
RAS
laminar
)

RAS models
18
(
LRR
LamBremhorstKE
LaunderSharmaKE
LienCubicKE
LienLeschziner
RNGkEpsilon
SSG
ShihQuadraticKE
SpalartAllmaras
kEpsilon
kOmega
kOmegaSST
kOmegaSSTLM
kOmegaSSTSAS
kkLOmega
qZeta
realizableKE
v2f
)

LES models
10
(
DeardorffDiffStress
Smagorinsky
SpalartAllmarasDDES
SpalartAllmarasDES
SpalartAllmarasIDDES
WALE
dynamicKEqn
dynamicLagrangian
kEqn
kOmegaSSTDES
)

Further work will be needed to support the -listTurbulenceModels option in
multiphase solvers.
20170611
2017-06-10 21:34:27 +01:00
39c46019e4 pimpleControl: Corrected handling of finalInnerIter() 2017-06-06 10:18:02 +01:00
faa1ae242d tutorials/basic/potentialFoam: Changed "streamFunction" to "postProcess
-func streamFunction"
2017-06-05 11:47:18 +01:00
fb0d17b9f3 fvOptions: verticalDamping: Fixed parallel crash and clang warning. 2017-06-05 08:20:36 +01:00
b255302fba setWaves: Corrected handling of multiple wave-type patches 2017-06-05 08:20:36 +01:00
0b7ca1614f bin/foamSearch: correction, according to the recent change in argument order 2017-06-04 15:46:37 +01:00
2fc10e20bb compressibleInflowOutflow template case: added missing wallDist in fvSchemes 2017-06-04 12:33:22 +01:00
f1240a853c surfaceFind: output region/zone number of found face 20170603 2017-06-02 21:02:01 +01:00
97585eac40 Bash Completion: re-enabled directory completion for scripts, e.g. wmake 2017-06-02 19:44:16 +01:00
52482e5b8f fvDOM: renamed "convergence" -> "tolerance" for consistency with the rest of OpenFOAM
Maintains optional "convergence" keyword for backward-compatibility.
2017-05-31 23:12:54 +01:00
9213944091 Bash [TAB] completion: enabled for scripts in wmake/ dir 2017-05-31 19:28:28 +01:00
853fa4d5d3 Scripts in wmake: cleaned up options and -help 2017-05-31 16:54:49 +01:00
8d2e5ecae8 CourantNo: Removed check for nInternalFaces which is not correct in general in parallel 2017-05-31 10:37:11 +01:00
59bd947516 pressureControl: Enable max and min limits only if specified
The calculation of the max and min limits are now only performed if required,
i.e. specified in fvSolution.

Also resolves bug-report https://bugs.openfoam.org/view.php?id=2566
2017-05-31 10:35:05 +01:00
07a7513fae tutorials: interDyMFoam: Added DTCHull case with waves. This case has a
reduced mesh size and simulation time in comparison with the other
DTCHull cases, so the results will not be as accurate.
2017-05-31 10:09:14 +01:00
2aa78c6db3 tutorials: interFoam: Added 2D wave propagation case 2017-05-31 10:09:14 +01:00
e7e4683f96 waves: Added waves library and setWaves utility
This addition allows for theoretical wave models to be utilised for
initialisation and as boundary conditions. Multiple models can be used
simultaneously, each with differing phases and orientations. If multiple
models are used the shapes and velocities are superimposed.

The wave models are specified in the velocity boundary condition. The
phase fraction boundary condition and the set utility both look up the
velocity condition in order to access the wave model. A velocity
boundary may be specified as follows:

    inlet
    {
        type            waveVelocity;
        origin          (0 0 0);
        direction       (1 0 0);
        speed           2;
        waves
        (
            Airy
            {
                length      300;
                amplitude   2.5;
                depth       150;
                phase       0;
                angle       0;
            }
        );
        scale           table ((1200 1) (1800 0));
        crossScale      constant 1;
    }

The alpha boundary only requires the type, unless the name of the
velocity field is non-standard, in which case a "U" entry will also be
needed. The setWaves utility does not require a dictionary file; non-
standard field names can be specified as command-line arguments.

Wave models currently available are Airy (1st order) and Stokes2 (second
order). If a depth is specified, and it is not too large, then shallow
terms will be included, otherwise the models assume that the liquid is
deep.

This work was supported by Jan Kaufmann and Jan Oberhagemann at DNV GL.
2017-05-31 10:09:08 +01:00
ab2b257269 functionObjects/field: Added interfaceHeight
This function object reports the height of the interface above a set of
locations. It writes the height above the location, above the boundary,
and the point on the interface. It uses an integral approach, so if
there are multiple interfaces above or below a location, this method
will compute an average.

It can be enabled with the following entry in the system/controlDict:

    functions
    {
        interfaceHeight1
        {
            type           interfaceHeight;
            libs           ("libfieldFunctionObjects.so");
            alpha          alpha.water;
            locations      ((0 0 0) (10 0 0) (20 0 0));
        }
    }

This work was supported by Jan Kaufmann and Jan Oberhagemann at DNV GL.
2017-05-31 10:08:59 +01:00
813a67433a fvOptions: Added vertical damping
This fvOption applies an explicit damping force to components of the
vector field in the direction of gravity. Its intended purpose is to
damp the vertical motions of an interface in the region approaching an
outlet so that no reflections are generated. The level of damping is
specified by a coefficient, lambda, given in units of 1/s.

It can be enabled for a cellZone named "nearOutlet", by adding the
following entry to constant/fvOptions:

    verticalDamping1
    {
        type            verticalDamping;

        selectionMode   cellZone;
        cellZone        nearOutlet;

        lambda          [0 0 -1 0 0 0 0] 1;

        timeStart       0;
        duration        1e6;
    }

This work was supported by Jan Kaufmann and Jan Oberhagemann at DNV GL.
2017-05-31 09:39:44 +01:00
358770b860 levelSet: Fixed typo 2017-05-31 09:37:40 +01:00
d759f685ec Bash [TAB] completion: enabled for scripts in bin/ dir 2017-05-30 19:33:05 +01:00
0d617dd2be foamInstallationTest: deleted redundant, unmaintained and outdated script 2017-05-30 18:17:10 +01:00
bae3b5232c Scripts in bin: reverted to a "readlink -f" equivalent
command for recursive script
2017-05-30 13:30:49 +01:00
ceab23964d Scripts in bin: improved -help message for foamNew 2017-05-29 23:27:13 +01:00
4eaafb3e11 Scripts in bin: improved -help message for mpirunDebug 2017-05-29 23:06:29 +01:00
87eeba42c4 Scripts in bin: improved -help message for foamEtcFile 2017-05-29 23:05:38 +01:00
2d0ccb4f8e Scripts in bin: made -help flag message consistent 2017-05-29 22:02:05 +01:00
d3924a4bbf Scripts in bin: added -help and -0 on xargs 2017-05-29 21:53:02 +01:00
8f41539743 Scripts in bin: added -help to scripts 2017-05-29 21:24:29 +01:00
868a6ddfba Scripts in bin: deleted redundant scripts 2017-05-29 21:07:17 +01:00
400ce63f5f Scripts in bin: foamUpdateCaseFileHeader check on version number 2017-05-29 21:05:21 +01:00
1697274cc4 Scripts in bin: tidied functions 2017-05-29 21:03:54 +01:00
d8291f848d Scripts in bin: added -help to scripts 2017-05-29 21:02:16 +01:00
72d2f4c700 bin/foamPack.*: removed; replaced by git tagging and github packing 2017-05-29 18:15:49 +01:00
3d17169a3c Scripts in bin: improved script quality, option listing and
exit status on -help
2017-05-29 16:18:36 +01:00
33b88991da localEulerDdtScheme: Removed unused variable 20170528 2017-05-25 10:08:28 +01:00
58452c40bd localEulerDdtScheme: Completed and tested support for moving meshes
Now the "localEuler" ddt scheme does not apply any corrections due to
mesh-motion; the old-time volumes are not used and the mesh-motion flux is set
to zero.  A consequence of these changes is that boundedness of transported
scalars is ensured but mesh-motion causes a conservation error which will
reduces to zero as steady-state is approached and the mesh becomes stationary.
2017-05-25 09:38:33 +01:00
ff70ced474 Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-dev 2017-05-23 09:54:56 +01:00
95fbff3e42 levelSetTemplates: Fix for gcc-4.8.5 2017-05-22 22:31:40 +01:00
1fc14370f8 thermalBaffle1DFvPatchScalarField: Changed name of "qr" relaxation factor to "qrRelaxation"
for consistency with externalWallHeatFluxTemperature boundary condition.
2017-05-22 13:07:03 +01:00
944fdd07ab vectorField: vector2DField: Added zip functions for stitching together a
vectorField or vector2DField from scalarField components. To do this
properly and have it work for field-type combinations would require some
new field function macros.
2017-05-22 12:58:25 +01:00
eaf77d61e6 cfdTools: Added a number of functions for performing volume averages of
discontinuous fields, with the discontinuity defined by a level set. The
functions do a proper integration of the discontinuous fields by tet-
and tri-cutting along the plane of the level set.
2017-05-22 12:29:27 +01:00
df1f4be854 primitiveShapes: Generalised tetrahedron and triangle cutting. Cuts are
now possible with level-sets as well as planes. Removed tetPoints class
as this wasn't really used anywhere except for the old tet-cutting
routines. Restored tetPointRef.H to be consistent with other primitive
shapes. Re-wrote tet-overlap mapping in terms of the new cutting.
2017-05-22 12:23:22 +01:00
ac6f881502 foamNewBC: correction to character match in sed
Thanks to Daisuke Hitomi for the change
2017-05-21 21:25:21 -04:00
a356adbfd8 Scripts in bin: improved script quality, option listing and
exit status on -help
2017-05-21 19:58:36 -04:00
8fe9195c5f Scripts in bin: reinstating foamEtcFile which was unintentionally removed 2017-05-21 19:52:45 -04:00
ea28ba014d Scripts in bin: minor cleanup of short scripts 2017-05-21 19:47:39 -04:00
55866c6937 Scripts in bin: removed outdated, unused scripts 2017-05-21 19:29:50 -04:00
1aa5d300a5 Scripts in bin: removed outdated, unused scripts 2017-05-21 19:29:06 -04:00
676bf64018 Scripts in bin: removed redundant job management scripts 2017-05-21 19:26:42 -04:00