From 46f16ecb80d14666b90b93f932e52ff1be8af120 Mon Sep 17 00:00:00 2001 From: Henry <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 438c67ea29f..02093c39386 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 ea10104b916..ef08e58c7d1 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); -- GitLab