Commit 271f6f6c authored by sergio's avatar sergio

BUG: Correcting issue 1441. Reading cAlphas entry for multiphase

parent 144f1496
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -59,7 +59,7 @@ Foam::multiphaseSystem::multiphaseSystem
)
:
phaseSystem(mesh),
cAlphas_(mesh.solverDict("alpha").lookup("cAlphas")),
cAlphas_(),
ddtAlphaMax_(0.0),
limitedPhiAlphas_(phaseModels_.size()),
Su_(phaseModels_.size()),
......@@ -73,6 +73,8 @@ Foam::multiphaseSystem::multiphaseSystem
phases_.set(phasei++, &pm);
}
mesh.solverDict("alpha").readEntry("cAlphas", cAlphas_);
// Initiate Su and Sp
forAllConstIters(phaseModels_, iter)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment