mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
22 lines
516 B
C
22 lines
516 B
C
Info<< "Creating porous zones" << nl << endl;
|
|
|
|
porousZones pZones(mesh);
|
|
Switch pressureImplicitPorosity(false);
|
|
|
|
label nUCorr = 0;
|
|
if (pZones.size())
|
|
{
|
|
// nUCorrectors for pressureImplicitPorosity
|
|
if (mesh.solutionDict().subDict("PISO").found("nUCorrectors"))
|
|
{
|
|
mesh.solutionDict().subDict("PISO").lookup("nUCorrectors")
|
|
>> nUCorr;
|
|
}
|
|
|
|
if (nUCorr > 0)
|
|
{
|
|
pressureImplicitPorosity = true;
|
|
}
|
|
}
|
|
|