From 6a1803d4aa7ba4b98a53fe8ab6374b2be44828a0 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 10 Feb 2015 17:31:38 +0000 Subject: [PATCH] Use old PISO control structure for teaching solvers icoFoam and nonNewtonianIcoFoam --- applications/solvers/incompressible/icoFoam/createFields.H | 2 +- .../solvers/incompressible/nonNewtonianIcoFoam/createFields.H | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/solvers/incompressible/icoFoam/createFields.H b/applications/solvers/incompressible/icoFoam/createFields.H index 438c67ea29..02093c3938 100644 --- a/applications/solvers/incompressible/icoFoam/createFields.H +++ b/applications/solvers/incompressible/icoFoam/createFields.H @@ -52,4 +52,4 @@ label pRefCell = 0; scalar pRefValue = 0.0; - setRefCell(p, piso.dict(), pRefCell, pRefValue); + setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue); diff --git a/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H b/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H index ea10104b91..ef08e58c7d 100644 --- a/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H +++ b/applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H @@ -36,4 +36,4 @@ label pRefCell = 0; scalar pRefValue = 0.0; - setRefCell(p, piso.dict(), pRefCell, pRefValue); + setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);