Commit Graph

2325 Commits

Author SHA1 Message Date
c481b625ef kLowReWallFunction: Limit k to avoid failure of the turbulence model due to division by k 2015-02-04 22:11:15 +00:00
287e970b18 Update headers 2015-02-04 22:11:06 +00:00
2c25b8db52 Add support for reading and updating the debug switches of templated
classes in the DebugSwitches sub-dictionary of system/controlDict
2015-02-04 22:08:27 +00:00
0296a4ed9e Updated headers 2015-02-04 16:33:26 +00:00
a716ef7d82 UILList: Updated 2015-02-04 16:33:12 +00:00
076fde91b9 Update headers 2015-02-03 12:12:07 +00:00
86d7f7208a blockMesh: Add support for multi/sectional grading in a block
Consider a block describing a channel with two opposite walls.
Currently in order to grade the mesh towards the walls and have a
uniform region in the centre the channel would need to be spit into 3
blocks.  With the new multi/sectional grading this can be achieved in a
single block e.g.

blocks
(
    hex (0 1 2 3 4 5 6 7) (20 60 20)
    simpleGrading
    (
        1
        ((0.2 0.3 4) (0.6 0.4 1) (0.2 0.3 0.25))
        1
    )
);

In this example the block is divided uniformly in the x and z -directions
and split into three grading sections in the y-direction described by
three triples:  ((0.2 0.3 4) (0.6 0.4 1) (0.2 0.3 0.25)).  Each of the
grading sections is described by a triple consisting of the fraction of
the block, the fraction of the divisions and the grading ratio (size of
first division/size of last division).  Both the fraction of the block
and the fraction of the divisions are normalized automatically so they
can be specified scaled in anyway, e.g. as percentages:

blocks
(
    hex (0 1 2 3 4 5 6 7) (20 60 20)
    simpleGrading
    (
        1
        ((2 3 4) (6 4 1) (2 3 0.25))
        1
    )
);

and they need not sum to 1 or 100.

This is very new functionality and not well tested but backward
compatibility has been well tested so all existing blockMeshDicts should
parse correctly.
2015-02-03 12:01:55 +00:00
3b60a97831 POSIX.C findEtcFiles: Revert change to read system/controlDict
Causes problems if the controlDict contains # entries
2015-02-03 11:59:43 +00:00
5eafa16bc6 porousBafflePressure: Corrected and added support for compressible flow 2015-02-02 12:23:31 +00:00
a79b912a31 fixedShearStressFvPatchVectorField: Remove rhoName and phiName which are no longer needed 2015-02-02 12:22:52 +00:00
11aed73678 Remove duplicate include
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1507
2015-02-02 09:45:25 +00:00
baf914f390 transform: Handle codirectional and contradirectional transformation vectors
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=416
2015-02-02 09:44:59 +00:00
1471d3df87 eddyViscosity: Allow external classes to modify nut 2015-02-01 12:38:50 +00:00
3d8f0aa575 Update header 2015-02-01 12:38:39 +00:00
9eff3f968d Relocate LESeddyViscosity 2015-02-01 12:38:23 +00:00
d9b1ea4dea Updated header 2015-02-01 12:38:12 +00:00
d77218b427 POSIX/debug: Add ./system on the list of etc directories
in particular to pick-up the DebugSwitches from system/controlDict at
global construction time.

Disadvantage is that system/controlDict is only picked-up if the
OpenFOAM application is executed IN the case directory.  The directory
provided by the -case option is not yet known as the arguments have not
yet been parsed.
2015-02-01 12:34:19 +00:00
ad03953433 thermoSingleLayer: revert change to q function made shortly before the release of OpenFOAM-2.3.1
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1502
2015-01-28 18:02:56 +00:00
a788fa2764 regExp: Add support for case-insensitive patterns
From https://github.com/OpenFOAM/OpenFOAM-2.2.x/pull/1
2015-01-28 16:35:36 +00:00
cb1e8f08ba Add missing header 2015-01-28 16:35:15 +00:00
870d71db1f buoyantKEpsilon: filter sources depending on mag(g) so that it operates as kEpsilon if mag(g) = 0 2015-01-28 16:34:18 +00:00
96ab642efc TurbulenceModels: Templated kOmega and instantiated both incompressible and compressible forms 2015-01-28 09:18:06 +00:00
62261c9822 kkLOmega.C: Corrected formatting error 2015-01-27 15:11:50 +00:00
901d7cd579 src/TurbulenceModels/incompressible/turbulentTransportModels/RAS/kkLOmega: Corrected errors in implementation and from original paper according to
Furst, J. (2013).
    Numerical simulation of transitional flows with laminar kinetic energy.
    Engineering MECHANICS, 20(5), 379-388.

Thanks to Jan-Niklas Klatt for analysing problems with and correcting
the implementation and testing corrections to the model proposed by
Furst.
2015-01-27 15:06:03 +00:00
94d113faf3 TurbulenceModels/incompressible: RNGkEpsilon now tepmlated 2015-01-27 15:04:56 +00:00
ee213908ad TurbulenceModels: Add compressible v2f 2015-01-27 15:04:32 +00:00
4f4b2e9112 TurbulenceModels: separated v2fBase.H from v2f.H 2015-01-26 10:30:58 +00:00
cda60031b9 TurbulenceModels: ensure alphat is corrected after nut by arranging the call from correctNut
This is as temporary fix pending the completion of the selectable thermal transport layer
2015-01-25 22:52:33 +00:00
3e4a059e7d v2f: separate instantiation of v2fBase from fWallFunction 2015-01-25 22:31:14 +00:00
d9e4918cda Updated headers 2015-01-25 22:27:03 +00:00
924ddccad5 TurbulenceModels: Added templated v2f for incompressible and compressible flow 2015-01-25 22:26:16 +00:00
f1dddcfa40 TurbulenceModels: Updated documentation 2015-01-25 12:40:25 +00:00
f50d23f859 buoyantKEpsilon: Changed the additional buoyancy generation/dissipation
term to the more commonly used form of Henkes, R.A.W.M., Van Der Vlugt, F.F. & Hoogendoorn, C.J. (1991).
2015-01-25 12:37:37 +00:00
2fb88d3e4e TurbulenceModels: Added RNGkEpsilon 2015-01-24 22:49:04 +00:00
f8efe93ffd TurbulenceModels: Added LRR model with Daly-Harlow generalized gradient diffusion 2015-01-24 22:10:17 +00:00
19b92a4931 DeardorffDiffStress: updated to correspond more closely to the original paper
Added references to the generalized gradient diffusion model
2015-01-24 18:44:44 +00:00
980b554166 Updated header 2015-01-23 23:34:05 +00:00
b62acf9cb6 TurbulenceModels: Added DeardorffDiffStress LES model
Now using the Daly-Harlow generalized gradient diffusion model
2015-01-23 23:32:38 +00:00
070fe069ac atmBoundaryLayer: updated for SP compilation 2015-01-23 14:06:02 +00:00
9714a61e9e Updated header 2015-01-23 09:21:26 +00:00
26e9586324 turbulenceModels: minor function reorganization 2015-01-23 09:21:01 +00:00
1f7b744212 LESModel: correct delta 2015-01-23 09:18:36 +00:00
a6b9d2a490 turbulenceModels/LES: Added WALE model
Changed the tutorials/incompressible/pimpleFoam/channel395 to demonstrate the WALE model
2015-01-23 09:17:33 +00:00
2de9246e24 DataEntry/Table: provide dictionary to base-class to allow the specification of outOfBounds
Resolves bug-reports:
    http://www.openfoam.org/mantisbt/view.php?id=888
    http://www.openfoam.org/mantisbt/view.php?id=788
2015-01-22 13:32:30 +00:00
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