diff --git a/src/thermophysicalModels/basic/psiThermo/psiThermos.C b/src/thermophysicalModels/basic/psiThermo/psiThermos.C index f73f2e4ca0..b8001e314c 100644 --- a/src/thermophysicalModels/basic/psiThermo/psiThermos.C +++ b/src/thermophysicalModels/basic/psiThermo/psiThermos.C @@ -29,6 +29,7 @@ License #include "specie.H" #include "perfectGas.H" #include "PengRobinsonGas.H" +#include "rhoConst.H" #include "hConstThermo.H" #include "eConstThermo.H" #include "janafThermo.H" @@ -53,6 +54,18 @@ namespace Foam /* * * * * * * * * * * * * * * * * Enthalpy-based * * * * * * * * * * * * * */ +makeThermo +( + psiThermo, + hePsiThermo, + pureMixture, + constTransport, + sensibleEnthalpy, + hConstThermo, + rhoConst, + specie +); + makeThermo ( psiThermo, diff --git a/src/thermophysicalModels/reactionThermo/mixtures/basicMultiComponentMixture/basicMultiComponentMixture.C b/src/thermophysicalModels/reactionThermo/mixtures/basicMultiComponentMixture/basicMultiComponentMixture.C index 2ad347e150..f0974f19dc 100644 --- a/src/thermophysicalModels/reactionThermo/mixtures/basicMultiComponentMixture/basicMultiComponentMixture.C +++ b/src/thermophysicalModels/reactionThermo/mixtures/basicMultiComponentMixture/basicMultiComponentMixture.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -25,6 +25,13 @@ License #include "basicMultiComponentMixture.H" +// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * // + +namespace Foam +{ + defineTypeNameAndDebug(basicMultiComponentMixture, 0); +} + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::basicMultiComponentMixture::basicMultiComponentMixture @@ -39,6 +46,12 @@ Foam::basicMultiComponentMixture::basicMultiComponentMixture { forAll(species_, i) { + if (debug) + { + Info<< "basicMultiComponentMixture: looking for " << species_[i] + << endl; + } + IOobject header ( species_[i], @@ -50,6 +63,12 @@ Foam::basicMultiComponentMixture::basicMultiComponentMixture // check if field exists and can be read if (header.headerOk()) { + if (debug) + { + Info<< "basicMultiComponentMixture: reading " << species_[i] + << endl; + } + Y_.set ( i, @@ -69,6 +88,12 @@ Foam::basicMultiComponentMixture::basicMultiComponentMixture } else { + if (debug) + { + Info<< "basicMultiComponentMixture: specie " << species_[i] + << " not found - looking for Ydefault" << endl; + } + volScalarField Ydefault ( IOobject