Tutorial clean-up

Conflicts:
	tutorials/mesh/cfMesh/Allclean
This commit is contained in:
Hrvoje Jasak 2014-09-26 15:02:23 +01:00 committed by Dominik Christ
parent 6c18df843a
commit 0c1ad0a78e
11 changed files with 311 additions and 53 deletions

View file

@ -25,7 +25,7 @@ solvers
maxIter 1000; maxIter 1000;
tolerance 1e-8; tolerance 1e-8;
relTol 0.001; relTol 0.001;
}; }
U U
{ {
solver BiCGStab; solver BiCGStab;
@ -78,14 +78,13 @@ PIMPLE
relaxationFactors relaxationFactors
{ {
// Note: under-relaxation factors used in wave-transmissive schemes // Note: under-relaxation factors used in wave-transmissive schemes
U 0.5; U 0.7;
p 0.2; p 1;
i 0.1; i 0.1;
h 0.5;
rho 0.25; rho 0.25;
k 0.2; k 0.5;
epsilon 0.2; epsilon 0.5;
} }
fieldBounds fieldBounds

View file

@ -50,4 +50,28 @@ maxCo 0.8;
maxDeltaT 0.01; maxDeltaT 0.01;
functions
(
minMaxU
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs (/*"libsampling.so"*/ "libfieldFunctionObjects.so");
name U;
}
minMaxP
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");
name p;
}
);
// ************************************************************************* // // ************************************************************************* //

View file

@ -14,12 +14,6 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones ( interface1_faces interface2_faces );
//- Keep owner and neighbour on same processor for faces in patches:
// preservePatches ( interface1 interface2 );
globalFaceZones globalFaceZones
( (
interface1_faces interface1_faces
@ -28,10 +22,9 @@ globalFaceZones
rotor_cyclic_lower_faces rotor_cyclic_lower_faces
); // Those are the names of the face zones created previously ); // Those are the names of the face zones created previously
numberOfSubdomains 4; // The problem will be decomposed in 4 different processors numberOfSubdomains 4;
method scotch; method scotch;
// method metis;
simpleCoeffs simpleCoeffs
{ {
@ -39,32 +32,6 @@ simpleCoeffs
delta 0.001; delta 0.001;
} }
metisCoeffs
{
/*
processorWeights
(
1
1
1
1
);
*/
}
scotchCoeffs
{
//processorWeights
//(
// 1
// 1
// 1
// 1
//);
//writeGraph true;
//strategy "b";
}
distributed no; distributed no;
roots roots

View file

@ -33,12 +33,7 @@ divSchemes
laplacianSchemes laplacianSchemes
{ {
default none; default Gauss linear corrected;
laplacian(nu,U) Gauss linear corrected;
laplacian(rAU,pcorr) Gauss linear corrected;
laplacian(rAU,p) Gauss linear corrected;
laplacian((1|A(U)),p) Gauss linear corrected;
} }
interpolationSchemes interpolationSchemes

View file

@ -0,0 +1,71 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.1 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
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
{
upstreamMixingPlanePatch
{
type mixingPlane;
}
downstreamMixingPlanePatch
{
type mixingPlane;
}
upstreamPerio1
{
type cyclicGgi;
}
upstreamPerio2
{
type cyclicGgi;
}
downstreamPerio1
{
type cyclicGgi;
}
downstreamPerio2
{
type cyclicGgi;
}
downstreamWall
{
type symmetryPlane;
}
upstreamWall
{
type symmetryPlane;
}
inflow
{
type surfaceNormalFixedValue;
refValue uniform -10;
value uniform (0 0 0);
}
outflow
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
}
// ************************************************************************* //

View file

@ -0,0 +1,68 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.1 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -3 0 0 0 0 ];
internalField uniform 0.1;
boundaryField
{
downstreamMixingPlanePatch
{
type mixingPlane;
}
upstreamMixingPlanePatch
{
type mixingPlane;
}
downstreamWall
{
type symmetryPlane;
}
upstreamWall
{
type symmetryPlane;
}
downstreamPerio1
{
type cyclicGgi;
}
downstreamPerio2
{
type cyclicGgi;
}
upstreamPerio1
{
type cyclicGgi;
}
upstreamPerio2
{
type cyclicGgi;
}
inflow
{
type fixedValue;
value uniform 0.1;
}
outflow
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,69 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.1 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0.01;
boundaryField
{
downstreamPerio1
{
type cyclicGgi;
}
downstreamPerio2
{
type cyclicGgi;
}
upstreamPerio1
{
type cyclicGgi;
}
upstreamPerio2
{
type cyclicGgi;
}
downstreamWall
{
type symmetryPlane;
}
upstreamWall
{
type symmetryPlane;
}
downstreamMixingPlanePatch
{
type mixingPlane;
}
upstreamMixingPlanePatch
{
type mixingPlane;
}
inflow
{
type fixedValue;
value uniform 0.01;
}
outflow
{
type zeroGradient;
}
}
// ************************************************************************* //

View file

@ -0,0 +1,68 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.1 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0;
boundaryField
{
downstreamMixingPlanePatch
{
type mixingPlane;
}
upstreamMixingPlanePatch
{
type mixingPlane;
}
downstreamWall
{
type symmetryPlane;
}
upstreamWall
{
type symmetryPlane;
}
upstreamPerio1
{
type cyclicGgi;
}
upstreamPerio2
{
type cyclicGgi;
}
downstreamPerio1
{
type cyclicGgi;
}
downstreamPerio2
{
type cyclicGgi;
}
inflow
{
type zeroGradient;
}
outflow
{
type fixedValue;
value uniform 0;
}
}
// ************************************************************************* //

View file

@ -5,4 +5,4 @@
cleanCase cleanCase
\rm constant/polyMesh/blockMeshDict constant/polyMesh/boundary \rm constant/polyMesh/blockMeshDict constant/polyMesh/boundary
\rm -r 0 \rm -rf 0 ; cp -r save 0

View file

@ -9,11 +9,7 @@ runApplication blockMesh
runApplication setSet -batch setBatch.batch runApplication setSet -batch setBatch.batch
runApplication setsToZones -noFlipMap runApplication setsToZones -noFlipMap
cp -r save 0
runApplication potentialFoam runApplication potentialFoam
runApplication simpleFoam runApplication simpleFoam

View file

@ -14,9 +14,10 @@ FoamFile
} }
numberOfSubdomains 4; numberOfSubdomains 4;
method manual; //metis; //simple; method metis; //metis; //simple;
globalFaceZones ( globalFaceZones
(
ggi1DomBZone ggi1DomBZone
ggi1DomAZone ggi1DomAZone
ggi2DomBZone ggi2DomBZone