potentialFoam: Added new method to estimate the static pressure field from the velocity

Uses a form of the Euler equation in which only variation along the streamlines is considered
This commit is contained in:
Henry
2015-02-19 19:05:17 +00:00
parent 95e840f5de
commit 32a31972aa
7 changed files with 87 additions and 11 deletions

View File

@ -8,7 +8,7 @@ application=`getApplication`
cp -r 0.org 0 > /dev/null 2>&1
runApplication blockMesh
runApplication $application
runApplication $application -writePhi -writep
runApplication streamFunction
# ----------------------------------------------------------------- end-of-file

View File

@ -28,6 +28,8 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) bounded Gauss linear;
div(div(phi,U)) Gauss linear;
}
laplacianSchemes

View File

@ -19,10 +19,20 @@ solvers
{
Phi
{
solver PCG;
preconditioner DIC;
solver GAMG;
smoother DIC;
cacheAgglomeration on;
agglomerator faceAreaPair;
nCellsInCoarsestLevel 10;
mergeLevels 1;
tolerance 1e-06;
relTol 0;
relTol 0.01;
}
p
{
$Phi;
}
}

View File

@ -8,7 +8,7 @@ application=`getApplication`
cp -r 0.org 0 > /dev/null 2>&1
runApplication blockMesh
runApplication $application
runApplication $application -writePhi -writep
runApplication streamFunction
# ----------------------------------------------------------------- end-of-file

View File

@ -28,6 +28,8 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) bounded Gauss linear;
div(div(phi,U)) Gauss linear;
}
laplacianSchemes

View File

@ -19,17 +19,26 @@ solvers
{
Phi
{
solver PCG;
preconditioner DIC;
solver GAMG;
smoother DIC;
cacheAgglomeration on;
agglomerator faceAreaPair;
nCellsInCoarsestLevel 10;
mergeLevels 1;
tolerance 1e-06;
relTol 0;
relTol 0.01;
}
p
{
$Phi;
}
}
potentialFlow
{
nNonOrthogonalCorrectors 0;
nNonOrthogonalCorrectors 2;
}
// ************************************************************************* //