Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
8bcb8132
Commit
8bcb8132
authored
Jan 25, 2013
by
Henry
Browse files
Update tutorials
parent
2eb05ebb
Changes
18
Hide whitespace changes
Inline
Side-by-side
tutorials/compressible/rhoPimplecFoam/angledDuct/constant/polyMesh/blockMeshDict.m4
View file @
8bcb8132
...
...
@@ -107,55 +107,79 @@ edges
(
);
patches
boundary
(
// is there no way of defining all my 'defaultFaces' to be 'wall'?
wall front
(
// inlet block
frontQuad(in1, join1, join2, in2)
// outlet block
frontQuad(poro1, out1, out2, poro2)
)
wall back
(
// inlet block
backQuad(in1, join1, join2, in2)
// outlet block
backQuad(poro1, out1, out2, poro2)
)
wall wall
(
// inlet block
quad2D(in1, join1)
quad2D(join2, in2)
// outlet block
quad2D(poro1, out1)
quad2D(out2, poro2)
)
wall porosityWall
(
// porosity block
frontQuad(join1, poro1, poro2, join2)
// porosity block
backQuad(join1, poro1, poro2, join2)
// porosity block
quad2D(join1, poro1)
quad2D(poro2, join2)
)
patch inlet
(
quad2D(in2, in1)
)
patch outlet
(
quad2D(out2, out1)
)
front
{
type wall;
faces
(
// inlet block
frontQuad(in1, join1, join2, in2)
// outlet block
frontQuad(poro1, out1, out2, poro2)
);
}
back
{
type wall;
faces
(
// inlet block
backQuad(in1, join1, join2, in2)
// outlet block
backQuad(poro1, out1, out2, poro2)
);
}
wall
{
type wall;
faces
(
// inlet block
quad2D(in1, join1)
quad2D(join2, in2)
// outlet block
quad2D(poro1, out1)
quad2D(out2, poro2)
);
}
porosityWall
{
type wall;
faces
(
// porosity block
frontQuad(join1, poro1, poro2, join2)
// porosity block
backQuad(join1, poro1, poro2, join2)
// porosity block
quad2D(join1, poro1)
quad2D(poro2, join2)
);
}
inlet
{
type patch;
faces
(
quad2D(in2, in1)
);
}
outlet
{
type patch;
faces
(
quad2D(out2, out1)
);
}
);
mergePatchPairs
...
...
tutorials/compressible/rhoPimplecFoam/angledDuct/system/fvOptions
View file @
8bcb8132
...
...
@@ -28,23 +28,17 @@ porosity1
DarcyForchheimerCoeffs
{
d d [0 -2 0 0 0 0 0] (
5e7
-1000 -1000);
d d [0 -2 0 0 0 0 0] (
7e5
-1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
e1 (0.70710678 0.70710678 0);
e3 (0 0 1);
}
}
}
}
//
*
************************************************************************ //
//************************************************************************ //
tutorials/compressible/rhoPimplecFoam/angledDuct/system/fvSolution
View file @
8bcb8132
...
...
@@ -21,14 +21,14 @@ solvers
{
solver PCG;
preconditioner DIC;
tolerance 1e-0
6
;
tolerance 1e-0
7
;
relTol 0.01;
}
pFinal
{
$p;
tolerance 1e-0
6
;
tolerance 1e-0
7
;
relTol 0;
}
...
...
@@ -36,14 +36,14 @@ solvers
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-0
5
;
tolerance 1e-0
6
;
relTol 0.1;
}
"(rho|U|h|k|epsilon|omega)Final"
{
$U;
tolerance 1e-0
5
;
tolerance 1e-0
6
;
relTol 0;
}
...
...
@@ -56,8 +56,8 @@ PIMPLE
nOuterCorrectors 50;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.
1
;
rhoMax rhoMax [ 1 -3 0 0 0 ]
3
.0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.
5
;
rhoMax rhoMax [ 1 -3 0 0 0 ]
2
.0;
residualControl
{
...
...
@@ -75,13 +75,12 @@ relaxationFactors
{
fields
{
"p.*"
1
;
"p.*"
0.3
;
"rho.*" 1;
}
equations
{
"(U|h|k|epsilon|omega).*" 0.85;
"p.*" 1;
"(U|h|k|epsilon|omega).*" 0.7;
}
}
...
...
tutorials/compressible/rhoPorousSimpleFoam/angledDuctExplicit/system/fvSolution
View file @
8bcb8132
...
...
@@ -64,7 +64,7 @@ SIMPLE
{
p 1e-2;
U 1e-4;
T
1e-3;
e
1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
...
...
@@ -76,7 +76,7 @@ relaxationFactors
fields
{
p 0.3;
rho 0.0
5
;
rho 0.0
3
;
}
equations
{
...
...
tutorials/compressible/rhoPorousSimpleFoam/angledDuctImplicit/system/fvSolution
View file @
8bcb8132
...
...
@@ -58,7 +58,7 @@ SIMPLE
{
p 1e-3;
U 1e-4;
T
1e-3;
e
1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
...
...
tutorials/compressible/rhoSimpleFoam/angledDuctExplicitFixedCoeff/system/fvSolution
View file @
8bcb8132
...
...
@@ -64,7 +64,7 @@ SIMPLE
{
p 1e-2;
U 1e-4;
T
1e-3;
e
1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
...
...
@@ -76,7 +76,7 @@ relaxationFactors
fields
{
p 0.3;
rho 0.0
2
;
rho 0.0
5
;
}
equations
{
...
...
tutorials/compressible/rhoSimplecFoam/squareBend/system/fvSolution
View file @
8bcb8132
...
...
@@ -54,6 +54,16 @@ SIMPLE
rhoMin rhoMin [1 -3 0 0 0] 0.1;
rhoMax rhoMax [1 -3 0 0 0] 1.0;
transonic yes;
residualControl
{
p 1e-3;
U 1e-4;
e 1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
}
}
relaxationFactors
...
...
tutorials/electromagnetics/electrostaticFoam/chargedWire/system/fvSchemes
View file @
8bcb8132
...
...
@@ -28,7 +28,7 @@ gradSchemes
divSchemes
{
default none;
div(rhoFlux,rho) Gauss
limitedLinear 1
;
div(rhoFlux,rho) Gauss
upwind
;
}
laplacianSchemes
...
...
tutorials/multiphase/cavitatingFoam/les/throttle/0/k
View file @
8bcb8132
...
...
@@ -10,36 +10,37 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0];
dimensions [0 2 -2 0
0 0
0];
internalField uniform 10
.0
;
internalField uniform 10;
boundaryField
{
inlet
{
type fixedValue;
value uniform 0.5;
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 0.05;
}
outlet
{
type zeroGradient;
}
walls
{
type zeroGradient;
type kqRWallFunction;
value uniform 10;
}
frontBack
{
type empty;
}
}
// ************************************************************************* //
tutorials/multiphase/cavitatingFoam/les/throttle/0/nuSgs
View file @
8bcb8132
...
...
@@ -10,27 +10,30 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform
1e-11
;
internalField uniform
0
;
boundaryField
{
inlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
outlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
walls
{
type
fixedValue
;
type
nutUSpaldingWallFunction
;
value uniform 0;
}
frontBack
...
...
@@ -39,4 +42,5 @@ boundaryField
}
}
// ************************************************************************* //
tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSchemes
View file @
8bcb8132
...
...
@@ -28,9 +28,9 @@ interpolationSchemes
divSchemes
{
default none;
div(phiv,rho) Gauss
limitedLinear 0.2
;
div(phi,U) Gauss
filteredLinear2V 0.2 0
;
div(phiv,k) Gauss
filteredLinear2 0.2 0
;
div(phiv,rho) Gauss
vanLeer
;
div(phi,U) Gauss
LUST grad(U)
;
div(phiv,k) Gauss
LUST grad(k)
;
div((muEff*dev(T(grad(U))))) Gauss linear;
}
...
...
tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/k
View file @
8bcb8132
...
...
@@ -16,14 +16,15 @@ FoamFile
dimensions [0 2 -2 0 0];
internalField uniform 10
.0
;
internalField uniform 10;
boundaryField
{
inlet
{
type fixedValue;
value uniform 0.5;
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 0.05;
}
outlet
...
...
@@ -33,7 +34,8 @@ boundaryField
walls
{
type zeroGradient;
type kqRWallFunction;
value uniform 10;
}
frontBack
...
...
tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/nuSgs
View file @
8bcb8132
...
...
@@ -10,34 +10,38 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform
1e-11
;
internalField uniform
0
;
boundaryField
{
inlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
outlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
walls
{
type
fixedValue
;
type
nutUSpaldingWallFunction
;
value uniform 0;
}
frontBack
{
type
fixedValue
;
type
nutUSpaldingWallFunction
;
value uniform 0;
}
}
// ************************************************************************* //
tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k
View file @
8bcb8132
...
...
@@ -16,14 +16,15 @@ FoamFile
dimensions [0 2 -2 0 0];
internalField uniform 10
.0
;
internalField uniform 10;
boundaryField
{
inlet
{
type fixedValue;
value uniform 0.5;
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 0.05;
}
outlet
...
...
@@ -33,7 +34,8 @@ boundaryField
walls
{
type zeroGradient;
type kqRWallFunction;
value uniform 10;
}
frontBack
...
...
tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs
View file @
8bcb8132
...
...
@@ -10,34 +10,38 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform
1e-11
;
internalField uniform
0
;
boundaryField
{
inlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
outlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
walls
{
type
fixedValue
;
type
nutUSpaldingWallFunction
;
value uniform 0;
}
frontBack
{
type
fixedValue
;
type
nutUSpaldingWallFunction
;
value uniform 0;
}
}
// ************************************************************************* //
tutorials/multiphase/cavitatingFoam/les/throttle3D/Allrun
View file @
8bcb8132
...
...
@@ -29,8 +29,8 @@ cp -r 0.org 0
runApplication blockMesh
refineMeshByCellSet 1 2 3
echo
"mapping fields from 2D throttle case"
runApplication mapFields ../throttle
-sourceTime
latestTime
#
echo "mapping fields from 2D throttle case"
#
runApplication mapFields ../throttle -sourceTime latestTime
runApplication decomposePar
runParallel
$application
4
...
...
tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSchemes
View file @
8bcb8132
...
...
@@ -28,9 +28,9 @@ interpolationSchemes
divSchemes
{
default none;
div(phiv,rho) Gauss
limitedLinear 0.2
;
div(phi,U) Gauss
filteredLinear2V 0.2 0
;
div(phiv,k) Gauss
filteredLinear2 0.2 0
;
div(phiv,rho) Gauss
vanLeer
;
div(phi,U) Gauss
LUST grad(U)
;
div(phiv,k) Gauss
LUST grad(k)
;
div((muEff*dev(T(grad(U))))) Gauss linear;
}
...
...
tutorials/multiphase/interFoam/ras/damBreakPorousBaffle/0/alpha1
View file @
8bcb8132
...
...
@@ -11,2285 +11,13 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object alpha1;
object alpha1
.org
;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField nonuniform List<scalar>
2268
(
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0