Commit de9657dd authored by Kutalmış Berçin's avatar Kutalmış Berçin Committed by Andrew Heather
Browse files

TUT: finiteArea: clean up tutorials

parent 88f7dd73
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaVectorField;
location "0";
object Us;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -23,28 +22,29 @@ boundaryField
{
inlet
{
type zeroGradient;
type zeroGradient;
}
outlet
{
type zeroGradient;
type zeroGradient;
}
side
{
type slip;
type slip;
}
symmetry
{
type symmetry;
type symmetry;
}
cylinder
{
type slip;
type slip;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaScalarField;
location "0";
object h;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -29,23 +28,24 @@ boundaryField
outlet
{
type zeroGradient;
type zeroGradient;
}
side
{
type zeroGradient;
type zeroGradient;
}
symmetry
{
type symmetry;
type symmetry;
}
cylinder
{
type zeroGradient;
type zeroGradient;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaScalarField;
location "0";
object manningField;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -23,28 +22,29 @@ boundaryField
{
inlet
{
type zeroGradient;
type zeroGradient;
}
outlet
{
type zeroGradient;
type zeroGradient;
}
side
{
type zeroGradient;
type zeroGradient;
}
symmetry
{
type symmetry;
type symmetry;
}
cylinder
{
type zeroGradient;
type zeroGradient;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //
......@@ -3,7 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
cleanFaMesh
#------------------------------------------------------------------------------
......@@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
runApplication blockMesh
runApplication makeFaMesh
......
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -15,15 +15,15 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
mug mug [0 2 -1 0 0 0 0] 0;
mul mul [0 2 -1 0 0 0 0] 1e-3;
mug 0; // m2/s
mul 1e-3; // m2/s
rhog rhog [ 1 -3 0 0 0 0 0 ] 1;
rhol rhol [ 1 -3 0 0 0 0 0 ] 100;
rhog 1; // kg/m3
rhol 100; // kg/m3
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.1;
sigma 0.1; // kg/s2
h0 h0 [ 0 1 0 0 0 0 0] 1e-10;
h0 1e-10; // m
// ************************************************************************* //
......@@ -186,9 +186,5 @@ patches
)
);
mergePatchPairs
(
);
// ************************************************************************* //
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -10,20 +10,19 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object faSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
ddt(h,Us) Euler;
ddt(h) Euler;
ddt(h,Us) Euler;
ddt(h) Euler;
}
gradSchemes
{
default Gauss linear;
default Gauss linear;
}
divSchemes
......@@ -35,18 +34,18 @@ divSchemes
laplacianSchemes
{
default none;
laplacian(h) Gauss linear corrected;
default none;
laplacian(h) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
default linear;
}
snGradSchemes
{
default corrected;
default corrected;
}
......
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object faSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -38,12 +37,12 @@ solution
{
iterations 15;
}
//nOuterCorrectors 15;
relaxationFactors
{
h 0.5;
Us 0.5;
h 0.5;
Us 0.5;
}
// ************************************************************************* //
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaScalarField;
location "0";
object Cs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -25,4 +24,5 @@ boundaryField
{
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //
......@@ -10,14 +10,12 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object Cvf;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 -1 0 0 0 0 0];
internalField uniform 0;
boundaryField
......
......@@ -10,14 +10,12 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
......
......@@ -10,5 +10,6 @@ cleanPostProcessing
cleanFaMesh
rm -rf processor*
rm -rf 0
#------------------------------------------------------------------------------
......@@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
runApplication makeFaMesh
runApplication $(getApplication)
......
......@@ -3,6 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
runApplication makeFaMesh
runApplication decomposePar
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
1
(
outer
{
type patch;
nFaces 600;
startFace 4500;
}
)
// ************************************************************************* //
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment