Skip to content
Snippets Groups Projects
Commit 172c026e authored by Henry's avatar Henry
Browse files

porousSimpleFoam: Completed relocation

parent c8078e73
Branches
Tags
No related merge requests found
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
set -x
wmake
wmake porousSimpleFoam
# ----------------------------------------------------------------- end-of-file
porousZones pZones(mesh);
Switch pressureImplicitPorosity(false);
// nUCorrectors used for pressureImplicitPorosity
int nUCorr = 0;
if (pZones.size())
{
// nUCorrectors for pressureImplicitPorosity
if (mesh.solutionDict().subDict("SIMPLE").found("nUCorrectors"))
{
nUCorr = readInt
(
mesh.solutionDict().subDict("SIMPLE").lookup("nUCorrectors")
);
}
if (nUCorr > 0)
{
pressureImplicitPorosity = true;
Info<< "Using pressure implicit porosity" << endl;
}
else
{
Info<< "Using pressure explicit porosity" << endl;
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment