driftFluxFoam: Name ghf correctly

Avoids problem of duplicate registration
This commit is contained in:
Henry
2015-02-11 14:49:23 +00:00
parent bdd5c4b8d3
commit 5a896b95df

View File

@ -29,7 +29,7 @@
#include "createPhi.H"
Info<< "Reading transportProperties\n" << endl;
Info<< "Reading incompressibleTwoPhaseInteractingMixture\n" << endl;
incompressibleTwoPhaseInteractingMixture mixture(U, phi);
volScalarField& alpha1(mixture.alpha1());
@ -38,18 +38,6 @@
const dimensionedScalar& rho1 = mixture.rhod();
const dimensionedScalar& rho2 = mixture.rhoc();
IOdictionary transportProperties
(
IOobject
(
"transportProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
// Mixture density
volScalarField rho
(
@ -84,7 +72,7 @@
(
relativeVelocityModel::New
(
transportProperties,
mixture,
mixture
)
);
@ -104,7 +92,7 @@
Info<< "Calculating field (g.h)f\n" << endl;
volScalarField gh("gh", g & mesh.C());
surfaceScalarField ghf("gh", g & mesh.Cf());
surfaceScalarField ghf("ghf", g & mesh.Cf());
volScalarField p
(