From 5ebba3f8e19d572d5b749ccad16cc494bcd11315 Mon Sep 17 00:00:00 2001
From: Henry <Henry>
Date: Wed, 11 Feb 2015 14:49:23 +0000
Subject: [PATCH] driftFluxFoam: Name ghf correctly Avoids problem of duplicate
 registration

---
 .../multiphase/driftFluxFoam/createFields.H    | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/applications/solvers/multiphase/driftFluxFoam/createFields.H b/applications/solvers/multiphase/driftFluxFoam/createFields.H
index b67b7029e44..bfd899dd986 100644
--- a/applications/solvers/multiphase/driftFluxFoam/createFields.H
+++ b/applications/solvers/multiphase/driftFluxFoam/createFields.H
@@ -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
     (
-- 
GitLab