Reduce storage
This commit is contained in:
parent
52ce49c659
commit
32df6f133e
2 changed files with 6 additions and 4 deletions
|
@ -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());
|
||||||
|
|
|
@ -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