From c79d2566b0b29d05def1f50772eb6aa8066ab6f0 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 2 Feb 2015 09:44:18 +0000 Subject: [PATCH] twoPhaseEulerFoam: Corrected EoH2 Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1505 --- .../twoPhaseSystem/phasePair/phasePair/phasePair.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/phasePair/phasePair.C b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/phasePair/phasePair.C index 14822a26c8..0f77a41ad0 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/phasePair/phasePair.C +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/phasePair/phasePair/phasePair.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -32,7 +32,7 @@ Foam::tmp Foam::phasePair::EoH const volScalarField& d ) const { - return + return mag(dispersed().rho() - continuous().rho()) *mag(g()) *sqr(d) @@ -163,7 +163,7 @@ Foam::tmp Foam::phasePair::EoH2() const EoH ( dispersed().d() - /cbrt(Eo()) + /cbrt(E()) ); }