openfoam/tutorials
Will Bainbridge 22aae2816d ENH: combustionModels: Changed the construction order
The combustion and chemistry models no longer select and own the
thermodynamic model; they hold a reference instead. The construction of
the combustion and chemistry models has been changed to require a
reference to the thermodyanmics, rather than the mesh and a phase name.

At the solver-level the thermo, turbulence and combustion models are now
selected in sequence. The cyclic dependency between the three models has
been resolved, and the raw-pointer based post-construction step for the
combustion model has been removed.

The old solver-level construction sequence (typically in createFields.H)
was as follows:

    autoPtr<combustionModels::psiCombustionModel> combustion
    (
        combustionModels::psiCombustionModel::New(mesh)
    );

    psiReactionThermo& thermo = combustion->thermo();

    // Create rho, U, phi, etc...

    autoPtr<compressible::turbulenceModel> turbulence
    (
        compressible::turbulenceModel::New(rho, U, phi, thermo)
    );

    combustion->setTurbulence(*turbulence);

The new sequence is:

    autoPtr<psiReactionThermo> thermo(psiReactionThermo::New(mesh));

    // Create rho, U, phi, etc...

    autoPtr<compressible::turbulenceModel> turbulence
    (
        compressible::turbulenceModel::New(rho, U, phi, *thermo)
    );

    autoPtr<combustionModels::psiCombustionModel> combustion
    (
        combustionModels::psiCombustionModel::New(*thermo, *turbulence)
    );

ENH: combustionModel, chemistryModel: Simplified model selection

The combustion and chemistry model selection has been simplified so
that the user does not have to specify the form of the thermodynamics.

Examples of new combustion and chemistry entries are as follows:

    In constant/combustionProperties:

        combustionModel PaSR;

        combustionModel FSD;

    In constant/chemistryProperties:

        chemistryType
        {
            solver          ode;
            method          TDAC;
        }

All the angle bracket parts of the model names (e.g.,
<psiThermoCombustion,gasHThermoPhysics>) have been removed as well as
the chemistryThermo entry.

The changes are mostly backward compatible. Only support for the
angle bracket form of chemistry solver names has been removed. Warnings
will print if some of the old entries are used, as the parts relating to
thermodynamics are now ignored.

ENH: combustionModel, chemistryModel: Simplified model selection

Updated all tutorials to the new format

STYLE: combustionModel: Namespace changes

Wrapped combustion model make macros in the Foam namespace and removed
combustion model namespace from the base classes. This fixes a namespace
specialisation bug in gcc 4.8. It is also somewhat less verbose in the
solvers.

This resolves bug report https://bugs.openfoam.org/view.php?id=2787

ENH: combustionModels: Default to the "none" model

When the constant/combustionProperties dictionary is missing, the solver
will now default to the "none" model. This is consistent with how
radiation models are selected.
2017-11-23 16:57:12 +00:00
..
basic ENH: additional text expansion shortcuts (issue #792) 2018-04-10 13:41:41 +02:00
combustion ENH: combustionModels: Changed the construction order 2017-11-23 16:57:12 +00:00
compressible ENH: rhePimpleFoam: Merged dynamic mesh functionality of rhoPimpleDyMFoam into rhoPimpleFoam 2017-11-23 12:13:37 +00:00
discreteMethods STYLE: Correcting typos 2018-03-28 17:14:16 +01:00
DNS/dnsFoam/boxTurb16 TUT: script cleanup, provide cleanCase0 for commonly used operation 2017-10-12 19:20:56 +02:00
electromagnetics TUT: script cleanup, provide cleanCase0 for commonly used operation 2017-10-12 19:20:56 +02:00
financial/financialFoam/europeanCall ENH: Tutorial updates 2017-05-18 14:47:00 +01:00
finiteArea TUT: test parallel for sphereTransport tutorial 2018-04-03 16:43:05 +02:00
heatTransfer ENH: snappyHexMeshDict: changed 17x to 1.7.x 2018-04-18 11:32:59 +01:00
incompressible ENH: pimpleDyMFoam: Improved efficiency and consistency when running on a static mesh 2017-11-18 01:13:48 +00:00
IO ENH: optionally limit systemCall function-object to master only (closes #729) 2018-02-09 19:24:31 +01:00
lagrangian ENH: combustionModels: Changed the construction order 2017-11-23 16:57:12 +00:00
mesh ENH: interFoam: Merged dynamic mesh functionality of interDyMFoam into interFoam 2017-11-30 23:56:42 +00:00
multiphase ENH: combustionModels: Changed the construction order 2017-11-23 16:57:12 +00:00
preProcessing/createZeroDirectory ENH: snappyHexMeshDict: changed 17x to 1.7.x 2018-04-18 11:32:59 +01:00
resources/geometry ENH: semiPermeableBaffle: Added two new boundary conditions and a tutorial 2017-10-19 10:00:36 +01:00
stressAnalysis TUT: script cleanup, provide cleanCase0 for commonly used operation 2017-10-12 19:20:56 +02:00
verificationAndValidation/schemes/divergenceExample TUT: test mode not respected (closes #710) 2018-02-20 12:54:44 +01:00
Allclean TUT: clean out old tutorial build directories 2018-03-26 15:54:31 +02:00
Allrun TUT: relocate tutorial log analysis as functions for reuse in modules 2017-12-21 14:17:20 +01:00
Alltest TUT: clean out old tutorial build directories 2018-03-26 15:54:31 +02:00