diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/dynamicMeshDict b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/dynamicMeshDict index 02c818b71..8dc88ed85 100644 --- a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/dynamicMeshDict +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/dynamicMeshDict @@ -18,15 +18,16 @@ FoamFile twoDMotion yes; -dynamicFvMesh dynamicMotionSolverFvMesh; +dynamicFvMesh dynamicMotionSolverFvMesh; solver laplaceFaceDecomposition; diffusivity file; +// diffusivity uniform; frozenDiffusion off; -distancePatches +distancePatches ( movingWall farFieldMoving diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/blockMeshDict b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/blockMeshDict index 9f090b0e6..5b687ed10 100644 --- a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/blockMeshDict +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/blockMeshDict @@ -1,4 +1,4 @@ -/*---------------------------------------------------------------------------*\ +/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.4 | @@ -10,12 +10,6 @@ FoamFile { version 2.0; format ascii; - - root ""; - case ""; - instance ""; - local ""; - class dictionary; object blockMeshDict; } @@ -24,7 +18,7 @@ FoamFile convertToMeters 0.001; -vertices +vertices ( (-7.5 0 0) (-7 0 0) @@ -48,52 +42,52 @@ vertices (0 2.5 0.109152) ); -blocks +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) + 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) (7 7 1) simpleGrading (2 0.25 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) (15 5 1) simpleGrading (1 1 1) + hex (6 7 11 10 14 15 19 18) (7 5 1) simpleGrading (2 1 1) ); -edges +edges ( ); -patches +patches ( - wall movingWall + wall movingWall ( (1 5 13 1) (5 6 14 13) (2 2 14 6) ) - patch farFieldMoving + patch farFieldMoving ( (9 17 18 10) ) - wall fixedWall + wall fixedWall ( (3 7 15 3) (7 11 19 15) ) - empty axis + empty axis ( (0 1 1 0) (2 3 3 2) ) - patch left + patch left ( (0 0 12 4) (4 12 16 8) ) - patch farField + patch farField ( (8 16 17 9) (10 18 19 11) ) - wedge back + wedge back ( (0 4 5 1) (2 6 7 3) @@ -101,7 +95,7 @@ patches (5 9 10 6) (6 10 11 7) ) - wedge front + wedge front ( (0 1 13 12) (2 3 15 14) diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/blockMeshDict-fine b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/blockMeshDict-fine new file mode 100644 index 000000000..7c71575b3 --- /dev/null +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/blockMeshDict-fine @@ -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 +( +); + +// ************************************************************************* // diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/boundary b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/boundary index 635f47626..f2c8bf08c 100644 --- a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/boundary +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/polyMesh/boundary @@ -20,50 +20,50 @@ FoamFile movingWall { type wall; - nFaces 85; - startFace 3665; + nFaces 27; + startFace 374; } farFieldMoving { type patch; - nFaces 50; - startFace 3750; + nFaces 15; + startFace 401; } fixedWall { type wall; - nFaces 35; - startFace 3800; + nFaces 12; + startFace 416; } axis { type empty; nFaces 0; - startFace 3835; + startFace 428; } left { type patch; - nFaces 30; - startFace 3835; + nFaces 10; + startFace 428; } farField { type patch; - nFaces 35; - startFace 3865; + nFaces 12; + startFace 438; } back { type wedge; - nFaces 1900; - startFace 3900; + nFaces 209; + startFace 450; } front { type wedge; - nFaces 1900; - startFace 5800; + nFaces 209; + startFace 659; } ) diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/transportProperties b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/transportProperties index eab1b6e24..71bacf7d1 100644 --- a/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/transportProperties +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/constant/transportProperties @@ -1,4 +1,4 @@ -/*---------------------------------------------------------------------------*\ +/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.4 | @@ -10,12 +10,6 @@ FoamFile { version 2.0; format ascii; - - root ""; - case ""; - instance ""; - local ""; - class dictionary; object transportProperties; } diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/controlDict b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/controlDict index 7d4f58d31..eeb9f17c4 100644 --- a/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/controlDict +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/controlDict @@ -26,11 +26,11 @@ stopAt endTime; endTime 0.003; -deltaT 5e-06; +deltaT 2e-05; writeControl timeStep; -writeInterval 40; +writeInterval 1; purgeWrite 0; @@ -38,7 +38,7 @@ writeFormat ascii; writePrecision 6; -writeCompression uncompressed; +writeCompression compressed; timeFormat general; @@ -50,4 +50,5 @@ adjustTimeStep no; maxCo 0.2; + // ************************************************************************* // diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/decomposeParDict b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/decomposeParDict new file mode 100644 index 000000000..3ac58130e --- /dev/null +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/decomposeParDict @@ -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 +( +); + +// ************************************************************************* // diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/fvSchemes b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/fvSchemes index f0b66def7..7bf4fd57f 100644 --- a/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/fvSchemes +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/fvSchemes @@ -10,12 +10,6 @@ FoamFile { version 2.0; format ascii; - - root ""; - case ""; - instance ""; - local ""; - class dictionary; object fvSchemes; } diff --git a/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/tetFemSolution b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/tetFemSolution index 0c354c04e..7929d7489 100644 --- a/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/tetFemSolution +++ b/tutorials/incompressible/icoDyMFoam/movingConeMotion/system/tetFemSolution @@ -20,22 +20,32 @@ solvers { motionU { - solver amgSolver; - cycle W-cycle; - policy AAMG; - nPreSweeps 0; - nPostSweeps 2; - groupSize 4; - minCoarseEqns 30; - nMaxLevels 100; - scale on; - smoother GaussSeidel; + solver PCG; + preconditioner DIC; - minIter 0; - maxIter 500; - tolerance 1e-8; - relTol 0.0; + minIter 0; + maxIter 1000; + tolerance 1e-6; + 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; +// }; }