Reduce storage

This commit is contained in:
Hrvoje Jasak 2015-10-29 09:43:53 +00:00
parent 54f97e4ed3
commit 571e2a1624
2 changed files with 6 additions and 4 deletions

View file

@ -1,11 +1,11 @@
// Momentum equation // Momentum equation
fvVectorMatrix UEqn tmp<fvVectorMatrix> UEqn
( (
fvm::ddt(U) fvm::ddt(U)
+ fvm::div(phi, U) + fvm::div(phi, U)
+ turbulence->divDevReff(U) + turbulence->divDevReff(U)
); );
UEqn.relax(); UEqn().relax();
UpEqn.insertEquation(0, UEqn); UpEqn.insertEquation(0, UEqn());

View file

@ -2,9 +2,11 @@
surfaceScalarField rUAf surfaceScalarField rUAf
( (
"rUAf", "rUAf",
fvc::interpolate(1.0/UEqn.A()) fvc::interpolate(1.0/UEqn().A())
); );
UEqn.clear();
surfaceScalarField presSource surfaceScalarField presSource
( (
"presSource", "presSource",