Commit Graph

171 Commits

Author SHA1 Message Date
a661bf281e BUG: Function objects - added missing Make entry for residuals function object - fixes #94 2016-04-21 15:07:41 +01:00
f0c3e8d599 STYLE: Updated version to 'plus' 2015-12-22 23:14:17 +00:00
0e01c44129 GIT: Resolved conflict 2015-12-09 16:19:28 +00:00
8837a89237 STYLE: Updated links from openfoam.org to openfoam.com 2015-12-09 15:03:05 +00:00
8f1d043364 GIT: Resolved conflict 2015-12-09 09:32:38 +00:00
53053fed78 STYLE: Consistency update in OpenCFD copyright text 2015-12-08 22:29:28 +00:00
eafd5a3850 ENH: Updated Info, Warning and Error messages 2015-12-08 11:15:39 +00:00
3f55f752fc GIT: Resolve conflict with upstream merge from Foundation 2015-12-07 17:07:20 +00:00
34ecb74654 Merge branch 'feature-FO_execute_on_end' into 'develop'
ENH: functionObjects: call execute on last time step

- old convention was that on last time step it would only call end()
and not execute()
- however this meant that e.g. the functionObjectProperties file
did not get written
- and almost all functionObjects were doing an execute() inside of end()
- new convention: call execute() on last time step, just before doing end()

See merge request !24
2015-12-07 15:26:51 +00:00
3e5da0bcf2 ENH: functionObjects: call execute on last time step
- old convention was that on last time step it would only call end()
and not execute()
- however this meant that e.g. the functionObjectProperties file
did not get written
- and almost all functionObjects were doing an execute() inside of end()
- new convention: call execute() on last time step, just before doing end()
2015-12-03 17:39:34 +00:00
736621b945 fvOptions: Reorganized and updated to simplify use in sub-models and maintenance
fvOptions are transferred to the database on construction using
fv::options::New which returns a reference.  The same function can be
use for construction and lookup so that fvOptions are now entirely
demand-driven.

The abstract base-classes for fvOptions now reside in the finiteVolume
library simplifying compilation and linkage.  The concrete
implementations of fvOptions are still in the single monolithic
fvOptions library but in the future this will be separated into smaller
libraries based on application area which may be linked at run-time in
the same manner as functionObjects.
2015-12-02 11:49:52 +00:00
f0c5d3380d Merge branch 'develop' of develop.openfoam.com:Development/OpenFOAM-dev-OpenCFD into develop 2015-12-01 15:44:15 +00:00
c02a29411e ENH: fluxSummary: move region count to debug scope 2015-12-01 15:43:29 +00:00
bd737621a0 ENH: fluxSummary function object - added faceZone area output on construction 2015-12-01 15:34:25 +00:00
aef2fd5ef4 BUG: scalarTransport: force early creation of transported field
Some bcs (e.g. humidity) use an external transported field so this needs
to be registered asap.
2015-11-30 12:16:05 +00:00
ecdfe31f2d ENH: Added new DESModelRegions function object from internal dev line
Object generates an indicator field for DES turbulence models to show
in which regions LES or RAS modelling is active.
2015-11-27 15:30:26 +00:00
3e7375e061 STYLE: Updated header doc to keep Doxygen happy 2015-11-26 10:20:35 +00:00
6cd823494e GIT: Resolve comflict on pull from remote 2015-11-26 09:26:02 +00:00
c383d05686 STYLE: Updated header doc to keep Doxygen happy 2015-11-26 09:24:15 +00:00
6838df9cd2 ENH: Multiple updates to function objects
Updated objects
- corrected Peclet number for compressible cases
- propagated log flag and resultName across objects

New function objects
- new fluxSummary:
  - calculates positive, negative, absolute and net flux across face
    zones
- new runTimeControl
  - abort the calculation when a user-defined metric is achieved.
    Available options include:
    - average value remains unchanged wrt a given threshold
    - equation initial residual exceeds a threshold - useful to abort
      diverging cases
    - equation max iterations exceeds a threshold - useful to abort
      diverging cases
    - min/max of a function object value
    - min time step exceeds a threshold - useful to abort diverging
      cases
- new valueAverage:
  - average singular values from other function objects, e.g. Cd, Cl and
    Cm from the forceCoeffs function object
2015-11-25 17:19:06 +00:00
f900abd83b functionObjects: Format time according to the specification in controlDict
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1921
2015-11-20 13:22:51 +00:00
c4d5f65a10 Completed update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the
function signature string.
2015-11-11 09:03:39 +00:00
78d7482e5b SolverPerformance: Complete the integration of the templated SolverPerformance<Type>
Now solvers return solver performance information for all components
with backward compatibility provided by the "max" function which created
the scalar solverPerformance from the maximum component residuals from
the SolverPerformance<Type>.

The residuals functionObject has been upgraded to support
SolverPerformance<Type> so that now the initial residuals for all
(valid) components are tabulated, e.g. for the cavity tutorial case the
residuals for p, Ux and Uy are listed vs time.

Currently the residualControl option of pimpleControl and simpleControl
is supported in backward compatibility mode (only the maximum component
residual is considered) but in the future this will be upgraded to
support convergence control for the components individually.

This development started from patches provided by Bruno Santos, See
http://www.openfoam.org/mantisbt/view.php?id=1824
2015-11-10 08:50:11 +00:00
ebd9f94a4d functionObjects/utilities/turbulenceFields/turbulenceFields: Added k and epsilon
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1870
2015-10-17 15:20:10 +01:00
564598452f ENH: pressureTools FO - updated header documentation 2015-10-12 17:06:41 +01:00
d4a2ac2159 STYLE: Updated copyright notices 2015-10-06 14:32:46 +01:00
4f4fc3fab5 ENH: yPlus FO updated follwing changes to functionObjectFile
Also
- added documentation to header
- added 'resultName' to enable user to specify alternative name for
  output field
2015-10-06 12:19:20 +01:00
b3cea1beab ENH: fieldMinMax FO updated follwing changes to functionObjectFile
Also added 'resultName' to enable user to specify alternative name for
output field
2015-10-06 12:16:22 +01:00
9b49b7bfa8 ENH: residuals FO updated follwing changes to functionObjectFile and minor code formatting 2015-10-06 12:14:28 +01:00
4f9e48bfc5 BUG: scalarTransport: have regIOobject member data
functionObjects only get detroyed when the runTime gets destroyed. So the
mesh is already destroyed and we cannot hold e.g. a volScalarField since
that will try to 'checkOut' from the objectRegistry(=mesh) upon destruction.
Note that we only see this in chtMultiRegionFoam.
2015-11-09 15:42:16 +00:00
00e61b9bbb STYLE: turbulenceFields FO - updated header documentation 2015-10-21 11:42:13 +01:00
dd04dd9c2c messageStream: Remove confusing argument-based conditional output
This had been used in functionObjects:

    Info(log)<< "messages" << data << ....

in which it is not at all clear what the "log" argument does whereas

    if (log) Info<< "messages" << data << ....

is totally clear and more efficient.
2015-05-18 11:54:56 +01:00
46a4446587 Function object that writes out the initial residual for specified fields
For vector/tensor fields, e.g. U, the largest residual of all components is written out
2015-05-17 16:48:55 +01:00
b5d3f85bd4 functionObjects: Upgrade to use new turbulence modeling library 2015-05-17 14:56:40 +01:00
db524d94df codedFunctionObject: Add meshTools library to include and link line 2015-04-25 21:57:40 +01:00
1845e2014d DSMC: Rationalization and addition of mapping support 2015-02-20 17:24:14 +00:00
8628ef2fea Corrected capitalization of Doxygen documentation comments 2015-02-14 13:10:15 +00:00
2aec249647 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
9fb26d59d3 GIT: Repo update 2014-12-11 08:35:10 +00:00
06f1b49d25 BUG: turbulenceFields function object - removed execute from read
ENH: turbulenceFields function object - Updated usage documentation
2014-08-06 10:47:59 +01:00
04effdf52d ENH: Added new vorticity function object 2014-04-22 12:40:24 +01:00
02e20513d9 BUG: function objects - updated writeFileHeader for some objects - mantis #1193 2014-02-26 13:47:33 +00:00
fbb3ddf2c4 Updated for release 2.3.0 2014-02-17 10:21:46 +00:00
6656daf4a2 yPlusLES: Corrected conversion of dynamic to kinematic viscosity 2014-02-01 22:05:44 +00:00
1084cf8363 Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev 2014-01-30 15:10:46 +00:00
1c0996478d ENH: pressureTools - added check if reference pressure level is zero for coeff calculation 2014-01-30 14:50:06 +00:00
d648760ead Update headers 2014-01-30 13:02:02 +00:00
ee4e19ef85 Renamed folder -> directory for consistency with POSIX and the rest of OpenFOAM 2014-01-30 13:01:04 +00:00
b07bf72e29 ENH: function objects - move turbulenceFields into utilities 2014-01-03 10:56:14 +00:00
659249064f ENH: Function object updates 2014-01-03 10:37:08 +00:00