Add setFluxRequired to ico-Solvers

This commit is contained in:
Henrik Rusche 2016-04-14 17:35:51 +02:00
parent 02b093974b
commit ef3edbe2ba
6 changed files with 10 additions and 2 deletions

View file

@ -53,6 +53,7 @@
label pRefCell = 0;
scalar pRefValue = 0.0;
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
mesh.schemesDict().setFluxRequired(p.name());
scalar totalVolume = sum(mesh.V()).value();

View file

@ -17,6 +17,7 @@
transportProperties.lookup("nu")
);
Info<< "Reading field p\n" << endl;
volScalarField p
(
@ -31,6 +32,7 @@
mesh
);
Info<< "Reading field U\n" << endl;
volVectorField U
(
@ -47,6 +49,8 @@
# include "createPhi.H"
label pRefCell = 0;
scalar pRefValue = 0.0;
setRefCell(p, mesh.solutionDict().subDict("PIMPLE"), pRefCell, pRefValue);
mesh.schemesDict().setFluxRequired(p.name());

View file

@ -17,6 +17,7 @@
transportProperties.lookup("nu")
);
Info<< "Reading field p\n" << endl;
volScalarField p
(
@ -46,10 +47,10 @@
mesh
);
# include "createPhi.H"
label pRefCell = 0;
scalar pRefValue = 0.0;
setRefCell(p, mesh.solutionDict().subDict("PIMPLE"), pRefCell, pRefValue);
mesh.schemesDict().setFluxRequired(p.name());

View file

@ -53,6 +53,7 @@
label pRefCell = 0;
scalar pRefValue = 0.0;
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
mesh.schemesDict().setFluxRequired(p.name());
Info<< "Reading field rAU if present\n" << endl;

View file

@ -53,6 +53,7 @@
label pRefCell = 0;
scalar pRefValue = 0.0;
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
mesh.schemesDict().setFluxRequired(p.name());
Info<< "Reading field rAU if present\n" << endl;

View file

@ -17,6 +17,7 @@
transportProperties.lookup("nu")
);
Info<< "Reading field p\n" << endl;
volScalarField p
(
@ -46,7 +47,6 @@
mesh
);
# include "createPhi.H"