Reduce storage

This commit is contained in:
Hrvoje Jasak 2015-10-29 09:43:53 +00:00
parent 52ce49c659
commit 32df6f133e
2 changed files with 6 additions and 4 deletions

View file

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

View file

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