mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev
This commit is contained in:
@ -29,6 +29,7 @@ License
|
|||||||
#include "specie.H"
|
#include "specie.H"
|
||||||
#include "perfectGas.H"
|
#include "perfectGas.H"
|
||||||
#include "PengRobinsonGas.H"
|
#include "PengRobinsonGas.H"
|
||||||
|
#include "rhoConst.H"
|
||||||
#include "hConstThermo.H"
|
#include "hConstThermo.H"
|
||||||
#include "eConstThermo.H"
|
#include "eConstThermo.H"
|
||||||
#include "janafThermo.H"
|
#include "janafThermo.H"
|
||||||
@ -53,6 +54,18 @@ namespace Foam
|
|||||||
|
|
||||||
/* * * * * * * * * * * * * * * * * Enthalpy-based * * * * * * * * * * * * * */
|
/* * * * * * * * * * * * * * * * * Enthalpy-based * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
makeThermo
|
||||||
|
(
|
||||||
|
psiThermo,
|
||||||
|
hePsiThermo,
|
||||||
|
pureMixture,
|
||||||
|
constTransport,
|
||||||
|
sensibleEnthalpy,
|
||||||
|
hConstThermo,
|
||||||
|
rhoConst,
|
||||||
|
specie
|
||||||
|
);
|
||||||
|
|
||||||
makeThermo
|
makeThermo
|
||||||
(
|
(
|
||||||
psiThermo,
|
psiThermo,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -25,6 +25,13 @@ License
|
|||||||
|
|
||||||
#include "basicMultiComponentMixture.H"
|
#include "basicMultiComponentMixture.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
defineTypeNameAndDebug(basicMultiComponentMixture, 0);
|
||||||
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::basicMultiComponentMixture::basicMultiComponentMixture
|
Foam::basicMultiComponentMixture::basicMultiComponentMixture
|
||||||
@ -39,6 +46,12 @@ Foam::basicMultiComponentMixture::basicMultiComponentMixture
|
|||||||
{
|
{
|
||||||
forAll(species_, i)
|
forAll(species_, i)
|
||||||
{
|
{
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
|
Info<< "basicMultiComponentMixture: looking for " << species_[i]
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
IOobject header
|
IOobject header
|
||||||
(
|
(
|
||||||
species_[i],
|
species_[i],
|
||||||
@ -50,6 +63,12 @@ Foam::basicMultiComponentMixture::basicMultiComponentMixture
|
|||||||
// check if field exists and can be read
|
// check if field exists and can be read
|
||||||
if (header.headerOk())
|
if (header.headerOk())
|
||||||
{
|
{
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
|
Info<< "basicMultiComponentMixture: reading " << species_[i]
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
Y_.set
|
Y_.set
|
||||||
(
|
(
|
||||||
i,
|
i,
|
||||||
@ -69,6 +88,12 @@ Foam::basicMultiComponentMixture::basicMultiComponentMixture
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
|
Info<< "basicMultiComponentMixture: specie " << species_[i]
|
||||||
|
<< " not found - looking for Ydefault" << endl;
|
||||||
|
}
|
||||||
|
|
||||||
volScalarField Ydefault
|
volScalarField Ydefault
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
|
|||||||
Reference in New Issue
Block a user