From 47f64c6ed7856f43657bf1d680b9cf73cc809659 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Mon, 26 Jun 2017 17:05:35 +0100 Subject: [PATCH] reactingEulerFoam: Bug fix to reactionsource terms Fixed reaction source terms in the energy and species fraction equations by multiplying by the phase fraction. Resolves bug report https://bugs.openfoam.org/view.php?id=2591 --- .../AnisothermalPhaseModel/AnisothermalPhaseModel.C | 2 +- .../MultiComponentPhaseModel/MultiComponentPhaseModel.C | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C index 3e7e62ea3..e7c8f0f8f 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C @@ -142,7 +142,7 @@ Foam::AnisothermalPhaseModel::heEqn() he ) == - this->Qdot() + alpha*this->Qdot() ); // Add the appropriate pressure-work term diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MultiComponentPhaseModel/MultiComponentPhaseModel.C b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MultiComponentPhaseModel/MultiComponentPhaseModel.C index ba7af6a52..279b3bb64 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MultiComponentPhaseModel/MultiComponentPhaseModel.C +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MultiComponentPhaseModel/MultiComponentPhaseModel.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -172,7 +172,7 @@ Foam::MultiComponentPhaseModel::YiEqn Yi ) == - this->R(Yi) + alpha*this->R(Yi) + fvc::ddt(residualAlpha_*rho, Yi) - fvm::ddt(residualAlpha_*rho, Yi)