Updated tetFem motion tutorial

This commit is contained in:
Hrvoje Jasak 2010-10-13 14:13:10 +01:00
parent 325350fbe5
commit 0c8297c859
9 changed files with 227 additions and 71 deletions

View file

@ -23,6 +23,7 @@ dynamicFvMesh dynamicMotionSolverFvMesh;
solver laplaceFaceDecomposition; solver laplaceFaceDecomposition;
diffusivity file; diffusivity file;
// diffusivity uniform;
frozenDiffusion off; frozenDiffusion off;

View file

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.4 | | \\ / O peration | Version: 1.4 |
@ -10,12 +10,6 @@ FoamFile
{ {
version 2.0; version 2.0;
format ascii; format ascii;
root "";
case "";
instance "";
local "";
class dictionary; class dictionary;
object blockMeshDict; object blockMeshDict;
} }
@ -50,11 +44,11 @@ vertices
blocks blocks
( (
hex (0 1 5 4 0 1 13 12) (15 15 1) simpleGrading (1 1 1) hex (0 1 5 4 0 1 13 12) (5 5 1) simpleGrading (1 1 1)
hex (2 3 7 6 2 3 15 14) (20 20 1) simpleGrading (2 0.25 1) hex (2 3 7 6 2 3 15 14) (7 7 1) simpleGrading (2 0.25 1)
hex (4 5 9 8 12 13 17 16) (15 15 1) simpleGrading (1 1 1) hex (4 5 9 8 12 13 17 16) (5 5 1) simpleGrading (1 1 1)
hex (5 6 10 9 13 14 18 17) (50 15 1) simpleGrading (1 1 1) hex (5 6 10 9 13 14 18 17) (15 5 1) simpleGrading (1 1 1)
hex (6 7 11 10 14 15 19 18) (20 15 1) simpleGrading (2 1 1) hex (6 7 11 10 14 15 19 18) (7 5 1) simpleGrading (2 1 1)
); );
edges edges

View file

@ -0,0 +1,112 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.001;
vertices
(
(-7.5 0 0)
(-7 0 0)
(-3.5 0 0)
(0 0 0)
(-7.5 0.75 -0.0327457)
(-7 0.75 -0.0327457)
(-3.5 2 -0.0873219)
(0 2 -0.0873219)
(-7.5 2.5 -0.109152)
(-7 2.5 -0.109152)
(-3.5 2.5 -0.109152)
(0 2.5 -0.109152)
(-7.5 0.75 0.0327457)
(-7 0.75 0.0327457)
(-3.5 2 0.0873219)
(0 2 0.0873219)
(-7.5 2.5 0.109152)
(-7 2.5 0.109152)
(-3.5 2.5 0.109152)
(0 2.5 0.109152)
);
blocks
(
hex (0 1 5 4 0 1 13 12) (15 15 1) simpleGrading (1 1 1)
hex (2 3 7 6 2 3 15 14) (20 20 1) simpleGrading (2 0.25 1)
hex (4 5 9 8 12 13 17 16) (15 15 1) simpleGrading (1 1 1)
hex (5 6 10 9 13 14 18 17) (50 15 1) simpleGrading (1 1 1)
hex (6 7 11 10 14 15 19 18) (20 15 1) simpleGrading (2 1 1)
);
edges
(
);
patches
(
wall movingWall
(
(1 5 13 1)
(5 6 14 13)
(2 2 14 6)
)
patch farFieldMoving
(
(9 17 18 10)
)
wall fixedWall
(
(3 7 15 3)
(7 11 19 15)
)
empty axis
(
(0 1 1 0)
(2 3 3 2)
)
patch left
(
(0 0 12 4)
(4 12 16 8)
)
patch farField
(
(8 16 17 9)
(10 18 19 11)
)
wedge back
(
(0 4 5 1)
(2 6 7 3)
(4 8 9 5)
(5 9 10 6)
(6 10 11 7)
)
wedge front
(
(0 1 13 12)
(2 3 15 14)
(12 13 17 16)
(13 14 18 17)
(14 15 19 18)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -20,50 +20,50 @@ FoamFile
movingWall movingWall
{ {
type wall; type wall;
nFaces 85; nFaces 27;
startFace 3665; startFace 374;
} }
farFieldMoving farFieldMoving
{ {
type patch; type patch;
nFaces 50; nFaces 15;
startFace 3750; startFace 401;
} }
fixedWall fixedWall
{ {
type wall; type wall;
nFaces 35; nFaces 12;
startFace 3800; startFace 416;
} }
axis axis
{ {
type empty; type empty;
nFaces 0; nFaces 0;
startFace 3835; startFace 428;
} }
left left
{ {
type patch; type patch;
nFaces 30; nFaces 10;
startFace 3835; startFace 428;
} }
farField farField
{ {
type patch; type patch;
nFaces 35; nFaces 12;
startFace 3865; startFace 438;
} }
back back
{ {
type wedge; type wedge;
nFaces 1900; nFaces 209;
startFace 3900; startFace 450;
} }
front front
{ {
type wedge; type wedge;
nFaces 1900; nFaces 209;
startFace 5800; startFace 659;
} }
) )

View file

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.4 | | \\ / O peration | Version: 1.4 |
@ -10,12 +10,6 @@ FoamFile
{ {
version 2.0; version 2.0;
format ascii; format ascii;
root "";
case "";
instance "";
local "";
class dictionary; class dictionary;
object transportProperties; object transportProperties;
} }

View file

@ -26,11 +26,11 @@ stopAt endTime;
endTime 0.003; endTime 0.003;
deltaT 5e-06; deltaT 2e-05;
writeControl timeStep; writeControl timeStep;
writeInterval 40; writeInterval 1;
purgeWrite 0; purgeWrite 0;
@ -38,7 +38,7 @@ writeFormat ascii;
writePrecision 6; writePrecision 6;
writeCompression uncompressed; writeCompression compressed;
timeFormat general; timeFormat general;
@ -50,4 +50,5 @@ adjustTimeStep no;
maxCo 0.2; maxCo 0.2;
// ************************************************************************* // // ************************************************************************* //

View file

@ -0,0 +1,50 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method simple;
simpleCoeffs
{
n (2 2 1);
delta 0.001;
}
hierarchicalCoeffs
{
n (1 1 1);
delta 0.001;
order xyz;
}
metisCoeffs
{
processorWeights 4{1};
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots
(
);
// ************************************************************************* //

View file

@ -10,12 +10,6 @@ FoamFile
{ {
version 2.0; version 2.0;
format ascii; format ascii;
root "";
case "";
instance "";
local "";
class dictionary; class dictionary;
object fvSchemes; object fvSchemes;
} }

View file

@ -20,22 +20,32 @@ solvers
{ {
motionU motionU
{ {
solver amgSolver; solver PCG;
cycle W-cycle; preconditioner DIC;
policy AAMG;
nPreSweeps 0;
nPostSweeps 2;
groupSize 4;
minCoarseEqns 30;
nMaxLevels 100;
scale on;
smoother GaussSeidel;
minIter 0; minIter 0;
maxIter 500; maxIter 1000;
tolerance 1e-8; tolerance 1e-6;
relTol 0.0; relTol 0.01;
}; };
// motionU
// {
// solver amgSolver;
// cycle W-cycle;
// policy AAMG;
// nPreSweeps 0;
// nPostSweeps 2;
// groupSize 4;
// minCoarseEqns 30;
// nMaxLevels 100;
// scale on;
// smoother GaussSeidel;
// minIter 0;
// maxIter 500;
// tolerance 1e-8;
// relTol 0.0;
// };
} }