Commit Graph

81 Commits

Author SHA1 Message Date
5bf565c112 Updated headers 2015-01-22 10:08:38 +00:00
9b411dd60e Reorganized BCs and added Doc.H files 2015-01-22 10:07:45 +00:00
25a0a19ee3 Added realizableKE to new turbulence library 2015-01-22 08:53:10 +00:00
93732c8af4 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
04d4f75f70 thermophysicalModels: Resolve issue with the construction of RR from physicoChemicalConstants which may or may not be already constructed
Solution: Move RR, Pstd and Tstd used by specie into thermodynamicConstants constructed in global.C
in the OpenFOAM library
2015-01-21 09:35:38 +00:00
7b5d0dad20 Update headers 2015-01-12 12:34:38 +00:00
b5277967c0 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
5a4a4e5e4a wallDist: Ensure appropriate method correct function is called 2015-01-12 11:53:19 +00:00
086131d4a1 Updated options files for new location of radiation lnInclude directory 2015-01-11 22:27:36 +00:00
8e5b23ece7 Updated headers 2015-01-11 22:17:00 +00:00
1f3679fe0e thermophysicalModels/radiationModels -> thermophysicalModels/radiation 2015-01-11 22:16:14 +00:00
f46ec6553d Updated headers 2015-01-10 22:12:00 +00:00
8257b61446 Corrected documentation for Doxygen 2015-01-10 22:11:29 +00:00
b0c120b7b5 wmake/scripts/AllwmakeParseArguments: Handle stop-on-error
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1485
2015-01-10 21:58:19 +00:00
49b27c838f Added missing file
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1484
2015-01-10 21:10:24 +00:00
1a084b8954 wallDist: Add support for distance to any patch set 2015-01-10 12:26:39 +00:00
0123afd3e3 advectionDiffusionPatchDistMethod: Added more description including specification of relaxation 2015-01-10 11:27:14 +00:00
c29c13b742 wallDist: Added nRequired option to the wallDist dict 2015-01-09 23:17:24 +00:00
4b4fce2c02 advectionDiffusionPatchDistMethod: Only run the predictor method on first call
Improves efficiency for moving-mesh cases
2015-01-09 22:05:32 +00:00
28ec2c2a06 wallDist: moved patchTypes into patchDistMethod 2015-01-09 21:41:21 +00:00
014c602f4a advectionDiffusionPatchDistMethod: Added comment concerning predictor step 2015-01-09 16:18:49 +00:00
cb3cd0afb0 advectionDiffusionPatchDistMethod: Calculation of approximate distance to nearest patch for all cells
and boundary by solving the Eikonal equation in advection form with diffusion smoothing.
2015-01-09 16:12:58 +00:00
113f7a9d7b Fixed a typo 2015-01-08 23:10:41 +00:00
4a411a62c6 wallDist/patchDistMethods/Poisson: New method for fast calculation of an approximate wall-distance field
by solving Poisson's equation
2015-01-08 22:43:42 +00:00
e61ac9d842 wallDist: Set BCs for y and n appropriately for solving PDEs 2015-01-08 17:21:07 +00:00
501edb4bca Update headers 2015-01-08 16:11:28 +00:00
6f0b2c1727 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
7900e9ea9e Updated headers 2015-01-08 10:45:47 +00:00
bb2c2efd49 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
2028973e19 MeshObject: Improved diagnostics 2015-01-08 10:38:25 +00:00
ba0393358f Updated headers 2015-01-06 17:32:02 +00:00
5085a9807b wallDist: separate the meshWaveWallDist from the wallDist interface
In preparation for run-time selectable methods
2015-01-06 17:31:02 +00:00
5d058dacdb Updated headers 2015-01-04 20:15:16 +00:00
097f23e11a Added support for glibc < 2.18
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1474
2015-01-04 20:13:37 +00:00
51b1089d09 Removed spurious file 2015-01-03 18:32:40 +00:00
cedd21599b Added InfoSwitches::writeOptionalEntries which enables the writing of optional keywords and values which are not present in the dictionary
Warning: generates a VERY large number of messages from OpenFOAM applications
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1473
2015-01-03 16:54:07 +00:00
ee6f3909bd LduMatrixOperations: Added support for scaling symmetric matrices
Note: non-uniform scaling of a symmetric matrix generates an asymmetric matrix
2015-01-02 19:20:19 +00:00
cd01692afd Updated header 2015-01-02 16:44:07 +00:00
79e8c34ef2 fvcSurfaceIntegrate: add support for sub-cycling with mesh-motion
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1471

Note:
    In order to avoid unexpectedly poor results I think it would be
    better if sub-cycling in time were limited to static meshes and
    solid-body motion only and the Vsc() function removed and I will
    consider this for the next release with the addition of a check for
    solid-body motion in the case that sub-cycling is applied.  Now that
    MULES support semi-implicit operation there is less need for
    sub-cycling and I would recommend that you use this approach in
    interDyMFoam for your complex mesh motion cases.
2015-01-02 16:43:32 +00:00
237e6f4fa5 lduMatrixOperations: Added support for scaling symmetric matrices
Note: non-uniform scaling of a symmetric matrix generates an asymmetric matrix
2015-01-02 15:38:52 +00:00
35af64bf39 fvMatrix: Corrected scaling by tmp<volScalarField> 2015-01-02 14:38:08 +00:00
a8e99f862a Corrected and improved documentation
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=790
2015-01-01 18:12:28 +00:00
34f4b64bf8 Updated header 2015-01-01 16:27:47 +00:00
b70ebf82af explicitPorositySource: corrected doc 2015-01-01 16:27:26 +00:00
3058a8df7e Updated headers 2015-01-01 13:43:17 +00:00
83421f2aeb particle::initCellFacePt(): Added suggestions to resolve failure to find particle
Resolves bug report: http://www.openfoam.org/mantisbt/view.php?id=1461
2015-01-01 13:42:57 +00:00
fef662401a primitiveMesh::pointInCellBB: Inflate the cell isotropically to handle anisotropic cells more robustly 2015-01-01 13:42:13 +00:00
10ee5c477b atmBoundaryLayer: rationalized U and epsilon BCs and added the corresponding k BC 2014-12-31 23:03:26 +00:00
3745eac109 Updated headers 2014-12-31 19:08:15 +00:00
2a614865ff Added and verified support for 64bit labels
To compile with 64bit labels set

WM_LABEL_SIZE=64

in ~/OpenFOAM/dev/prefs.sh

source ~/.bashrc

then Allwmake in OpenFOAM-dev.

This will build into for example OpenFOAM-dev/platforms/linux64ClangDPInt64Opt

If WM_LABEL_SIZE is unset or set to 32:

WM_LABEL_SIZE=32

the build would be placed into OpenFOAM-dev/platforms/linux64ClangDPInt32Opt

Thus both 32bit and 64bit label builds can coexist without problem.
2014-12-31 19:02:52 +00:00