tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet: Added a potentialFoam initializer step

This commit is contained in:
Henry
2015-02-18 10:01:05 +00:00
parent b44acdb03e
commit 9cd665988d
9 changed files with 88 additions and 24 deletions

View File

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object Phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value $internalField;
}
walls
{
type symmetry;
}
bullet
{
type zeroGradient;
}
}
// ************************************************************************* //

View File

@ -4,9 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions # Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface # Remove surface
\rm -f constant/triSurface/bullet.stl.gz \rm -f constant/triSurface/bullet.stl.gz
# Remove copy of 0.org
rm -rf 0
cleanCase cleanCase
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# copy bullet surface from resources directory # Copy bullet surface from resources directory
cp $FOAM_TUTORIALS/resources/geometry/bullet.stl.gz constant/triSurface/ cp $FOAM_TUTORIALS/resources/geometry/bullet.stl.gz constant/triSurface/
# Generate the base block mesh # Generate the base block mesh
@ -13,6 +13,11 @@ runApplication blockMesh
# Generate the snappy mesh # Generate the snappy mesh
runApplication snappyHexMesh -overwrite runApplication snappyHexMesh -overwrite
cp -r 0.org 0
# Initialise with potentialFoam solution
runApplication potentialFoam -pName p_rgh
# Run the solver # Run the solver
runApplication `getApplication` runApplication `getApplication`

View File

@ -39,6 +39,7 @@ FoamFile
bullet bullet
{ {
type wall; type wall;
inGroups 1(wall);
nFaces 37743; nFaces 37743;
startFace 1133431; startFace 1133431;
} }

View File

@ -53,6 +53,7 @@ snGradSchemes
fluxRequired fluxRequired
{ {
default none; default none;
Phi;
p_rgh; p_rgh;
pcorr; pcorr;
alpha.water; alpha.water;

View File

@ -59,12 +59,6 @@ solvers
maxIter 50; maxIter 50;
}; };
pcorr
{
$p_rgh;
relTol 0;
};
p_rghFinal p_rghFinal
{ {
solver PCG; solver PCG;
@ -91,6 +85,23 @@ solvers
relTol 0; relTol 0;
maxIter 50; maxIter 50;
}; };
pcorr
{
$p_rgh;
relTol 0;
};
Phi
{
$p_rgh;
relTol 0;
};
}
potentialFlow
{
nNonOrthogonalCorrectors 3;
} }
PIMPLE PIMPLE
@ -103,9 +114,6 @@ PIMPLE
relaxationFactors relaxationFactors
{ {
fields
{
}
equations equations
{ {
"U.*" 1; "U.*" 1;