From 571e2a162479f96cbfecce7a9f4390c15b482658 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 29 Oct 2015 09:43:53 +0000 Subject: [PATCH] Reduce storage --- applications/solvers/coupled/pUCoupledFoam/UEqn.H | 6 +++--- applications/solvers/coupled/pUCoupledFoam/pEqn.H | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/applications/solvers/coupled/pUCoupledFoam/UEqn.H b/applications/solvers/coupled/pUCoupledFoam/UEqn.H index 4423aa565..00876a5b0 100644 --- a/applications/solvers/coupled/pUCoupledFoam/UEqn.H +++ b/applications/solvers/coupled/pUCoupledFoam/UEqn.H @@ -1,11 +1,11 @@ // Momentum equation -fvVectorMatrix UEqn +tmp UEqn ( fvm::ddt(U) + fvm::div(phi, U) + turbulence->divDevReff(U) ); -UEqn.relax(); +UEqn().relax(); -UpEqn.insertEquation(0, UEqn); +UpEqn.insertEquation(0, UEqn()); diff --git a/applications/solvers/coupled/pUCoupledFoam/pEqn.H b/applications/solvers/coupled/pUCoupledFoam/pEqn.H index 9029b873f..134b264d4 100644 --- a/applications/solvers/coupled/pUCoupledFoam/pEqn.H +++ b/applications/solvers/coupled/pUCoupledFoam/pEqn.H @@ -2,9 +2,11 @@ surfaceScalarField rUAf ( "rUAf", - fvc::interpolate(1.0/UEqn.A()) + fvc::interpolate(1.0/UEqn().A()) ); +UEqn.clear(); + surfaceScalarField presSource ( "presSource",