mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
8
applications/solvers/incompressible/simpleFoam/Allwmake
Executable file
8
applications/solvers/incompressible/simpleFoam/Allwmake
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
set -x
|
||||||
|
|
||||||
|
wmake
|
||||||
|
wmake porousSimpleFoam
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -9,7 +9,8 @@
|
|||||||
(
|
(
|
||||||
engineMesh::defaultRegion,
|
engineMesh::defaultRegion,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
runTime
|
runTime,
|
||||||
|
Foam::IOobject::MUST_READ
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -60,7 +60,7 @@ laplacianSchemes
|
|||||||
laplacian(DepsilonEff,epsilon) Gauss linear limited 0.5;
|
laplacian(DepsilonEff,epsilon) Gauss linear limited 0.5;
|
||||||
laplacian(DREff,R) Gauss linear limited 0.5;
|
laplacian(DREff,R) Gauss linear limited 0.5;
|
||||||
laplacian((rho*(1|A(U))),p) Gauss linear limited 0.5;
|
laplacian((rho*(1|A(U))),p) Gauss linear limited 0.5;
|
||||||
laplacian(muEff,b) Gauss linear limited 0.5;
|
laplacian(alphaEff,b) Gauss linear limited 0.5;
|
||||||
laplacian(muEff,ft) Gauss linear limited 0.5;
|
laplacian(muEff,ft) Gauss linear limited 0.5;
|
||||||
laplacian(alphaEff,h) Gauss linear limited 0.5;
|
laplacian(alphaEff,h) Gauss linear limited 0.5;
|
||||||
laplacian(alphaEff,hu) Gauss linear limited 0.5;
|
laplacian(alphaEff,hu) Gauss linear limited 0.5;
|
||||||
|
|||||||
@ -53,6 +53,7 @@ snGradSchemes
|
|||||||
fluxRequired
|
fluxRequired
|
||||||
{
|
{
|
||||||
default no;
|
default no;
|
||||||
|
pcorr ;
|
||||||
p;
|
p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,11 +16,11 @@ FoamFile
|
|||||||
|
|
||||||
solvers
|
solvers
|
||||||
{
|
{
|
||||||
p
|
pcorr
|
||||||
{
|
{
|
||||||
solver GAMG;
|
solver GAMG;
|
||||||
tolerance 1e-7;
|
tolerance 0.02;
|
||||||
relTol 0.01;
|
relTol 0;
|
||||||
smoother GaussSeidel;
|
smoother GaussSeidel;
|
||||||
nPreSweeps 0;
|
nPreSweeps 0;
|
||||||
nPostSweeps 2;
|
nPostSweeps 2;
|
||||||
@ -30,6 +30,13 @@ solvers
|
|||||||
mergeLevels 1;
|
mergeLevels 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p
|
||||||
|
{
|
||||||
|
$pcorr
|
||||||
|
tolerance 1e-7;
|
||||||
|
relTol 0.01;
|
||||||
|
}
|
||||||
|
|
||||||
pFinal
|
pFinal
|
||||||
{
|
{
|
||||||
$p;
|
$p;
|
||||||
|
|||||||
Reference in New Issue
Block a user