ENH: Film tutorial updates

This commit is contained in:
andy
2011-04-12 17:35:25 +01:00
parent c72ffd6a04
commit e5a319d6d6
9 changed files with 69 additions and 14 deletions

View File

@ -15,6 +15,8 @@ cuttingPlane
surfaceFormat vtk; surfaceFormat vtk;
fields ( p U ); fields ( p U );
interpolationScheme cellPoint;
surfaces surfaces
( (
yNormal yNormal

View File

@ -31,7 +31,12 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
filmWalls sides
{
type zeroGradient;
}
frontAndBack
{ {
type zeroGradient; type zeroGradient;
} }

View File

@ -32,11 +32,16 @@ boundaryField
value uniform (0 0 0); value uniform (0 0 0);
} }
filmWalls sides
{ {
type fixedValue; type fixedValue;
value uniform (0 0 0); value uniform (0 0 0);
} }
frontAndBack
{
type slip;
}
} }

View File

@ -31,7 +31,12 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
filmWalls sides
{
type zeroGradient;
}
frontAndBack
{ {
type zeroGradient; type zeroGradient;
} }

View File

@ -31,7 +31,12 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
filmWalls sides
{
type zeroGradient;
}
frontAndBack
{ {
type zeroGradient; type zeroGradient;
} }

View File

@ -32,11 +32,16 @@ boundaryField
value uniform (0 0 0); value uniform (0 0 0);
} }
filmWalls sides
{ {
type fixedValue; type fixedValue;
value uniform (0 0 0); value uniform (0 0 0);
} }
frontAndBack
{
type slip;
}
} }

View File

@ -31,7 +31,12 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
filmWalls sides
{
type zeroGradient;
}
frontAndBack
{ {
type zeroGradient; type zeroGradient;
} }

View File

@ -17,20 +17,27 @@ FoamFile
solvers solvers
{ {
"(rho|G)" rho
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1;
}
rhoFinal
{
$rho;
tolerance 1e-05;
relTol 0; relTol 0;
} }
"(U|hs|k|epsilon)" "(U|hs)"
{ {
solver PBiCG; solver PBiCG;
preconditioner DILU; preconditioner DILU;
tolerance 1e-05; tolerance 1e-05;
relTol 0; relTol 0.1;
} }
p p
@ -38,15 +45,31 @@ solvers
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
tolerance 1e-06; tolerance 1e-06;
relTol 0.1;
}
pFinal
{
$p;
tolerance 1e-06;
relTol 0; relTol 0;
} }
"(U|hs)Final"
{
$U;
tolerance 1e-05;
relTol 0;
}
"(k|epsilon)"
{
$UFinal;
}
"(Yi|O2|N2|H2O)" "(Yi|O2|N2|H2O)"
{ {
solver PBiCG; $UFinal;
preconditioner DILU;
tolerance 1e-06;
relTol 0;
} }
} }

View File

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory
runApplication blockMesh runApplication blockMesh
runApplication snappyHexMesh -overwrite runApplication snappyHexMesh -overwrite
transformPoints -scale '(2 1 1)' runApplication transformPoints -scale '(2 1 1)'
cp 0/alpha1.org 0/alpha1 cp 0/alpha1.org 0/alpha1
runApplication setFields runApplication setFields
runApplication `getApplication` runApplication `getApplication`