Memory optimisation
This commit is contained in:
parent
73c26a86ce
commit
a15ff39085
2 changed files with 8 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
// Momentum equation
|
// Momentum equation
|
||||||
fvVectorMatrix UEqn
|
tmp<fvVectorMatrix> UEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(U)
|
fvm::ddt(U)
|
||||||
+ fvm::div(phi, U)
|
+ fvm::div(phi, U)
|
||||||
|
@ -7,9 +7,9 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add MRF and porous sources
|
// Add MRF and porous sources
|
||||||
mrfZones.addCoriolis(UEqn);
|
mrfZones.addCoriolis(UEqn());
|
||||||
pZones.addResistance(UEqn);
|
pZones.addResistance(UEqn());
|
||||||
|
|
||||||
UEqn.relax();
|
UEqn().relax();
|
||||||
|
|
||||||
UpEqn.insertEquation(0, UEqn);
|
UpEqn.insertEquation(0, UEqn());
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Reference in a new issue