Removing duplicate - see pimpleDyMFoam

This commit is contained in:
Hrvoje Jasak 2011-02-25 12:49:03 +00:00
parent bd36508943
commit 5417d355ab
20 changed files with 90 additions and 765 deletions

View file

@ -1,69 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
movingWall
{
type fixedValue;
value uniform (1 0 0);
}
farFieldMoving
{
type fixedValue;
value uniform (0 0 0);
}
fixedWall
{
type fixedValue;
value uniform (0 0 0);
}
axis
{
type symmetryPlane;
}
left
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
farField
{
type fixedValue;
value uniform (0 0 0);
}
back
{
type wedge;
}
front
{
type wedge;
}
}
// ************************************************************************* //

View file

@ -1,60 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object motionU;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
movingWall
{
type fixedValue;
value uniform 1;
}
farFieldMoving
{
type slip;
}
fixedWall
{
type fixedValue;
value uniform 0;
}
axis
{
type symmetryPlane;
}
left
{
type fixedValue;
value uniform 0;
}
farField
{
type slip;
}
back
{
type wedge;
}
front
{
type wedge;
}
}
// ************************************************************************* //

View file

@ -1,71 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
movingWall
{
type zeroGradient;
}
farFieldMoving
{
type zeroGradient;
}
fixedWall
{
type zeroGradient;
}
axis
{
type symmetryPlane;
}
left
{
type totalPressure;
p0 uniform 0;
U U;
phi phi;
rho none;
psi none;
gamma 1;
value uniform 0;
}
farField
{
type zeroGradient;
}
back
{
type wedge;
}
front
{
type wedge;
}
}
// ************************************************************************* //

View file

@ -1,60 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class pointScalarField;
object pointMotionU;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
movingWall
{
type fixedValue;
value uniform 1;
}
farFieldMoving
{
type slip;
}
fixedWall
{
type fixedValue;
value uniform 0;
}
axis
{
type symmetryPlane;
}
left
{
type fixedValue;
value uniform 0;
}
farField
{
type slip;
}
back
{
type wedge;
}
front
{
type wedge;
}
}
// ************************************************************************* //

View file

@ -1,32 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object motionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libfvMotionSolver.so");
//solver laplacian;
solver velocityComponentLaplacian x;
// diffusivity uniform;
diffusivity directional (1 200 0);
// diffusivity motionDirectional (1 1000 0);
// diffusivity inverseDistance 1(movingWall);
// diffusivity file motionDiffusivity;
// diffusivity quadratic inverseDistance 1(movingWall);
// diffusivity exponential 2000 inverseDistance 1(movingWall);
// ************************************************************************* //

View file

@ -1,110 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ 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)
)
symmetryPlane 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

@ -1,70 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
8
(
movingWall
{
type wall;
nFaces 85;
startFace 3665;
}
farFieldMoving
{
type patch;
nFaces 50;
startFace 3750;
}
fixedWall
{
type wall;
nFaces 35;
startFace 3800;
}
axis
{
type symmetryPlane;
nFaces 0;
startFace 3835;
}
left
{
type patch;
nFaces 30;
startFace 3835;
}
farField
{
type patch;
nFaces 35;
startFace 3865;
}
back
{
type wedge;
nFaces 1900;
startFace 3900;
}
front
{
type wedge;
nFaces 1900;
startFace 5800;
}
)
// ************************************************************************* //

View file

@ -1,19 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
nu nu [0 2 -1 0 0 0 0] 1e-05;
// ************************************************************************* //

View file

@ -1,51 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application icoDyMFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 0.003;
deltaT 5e-06;
writeControl timeStep;
writeInterval 40;
purgeWrite 0;
writeFormat binary;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep no;
maxCo 0.2;
// ************************************************************************* //

View file

@ -1,62 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linear;
}
laplacianSchemes
{
default none;
laplacian(nu,U) Gauss linear corrected;
laplacian(rAU,pcorr) Gauss linear corrected;
laplacian(rAU,p) Gauss linear corrected;
laplacian(diffusivity,cellMotionU) Gauss linear uncorrected;
}
interpolationSchemes
{
default linear;
interpolate(HbyA) linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
pcorr;
p;
}
// ************************************************************************* //

View file

@ -1,65 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
pcorr
{
solver PCG;
preconditioner DIC;
tolerance 1e-02;
relTol 0;
};
p
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0.05;
};
pFinal
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
};
cellMotionUx PCG
{
preconditioner DIC;
tolerance 1e-08;
relTol 0;
};
}
PISO
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}
// ************************************************************************* //

View file

@ -0,0 +1,9 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf VTK
rm -f constant/polyMesh/boundary
rm -rf constant/polyMesh/sets

View file

@ -0,0 +1,20 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application="icoDyMSimpleFoam"
runApplication blockMesh
runApplication setSet -batch setBatch
cd constant/polyMesh/sets/
\rm leftCentre leftCentre_old leftWallSet leftWallSet_old leftZone_old rightCentre rightCentre_old rightWallSet rightWallSet_old rightZone_old wallSet
cd ../../..
runApplication setsToZones
runApplication decomposePar
#runApplication $application
runParallel $application 4
runApplication reconstructParMesh -cellDist

View file

@ -14,30 +14,34 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMeshLibs 1("libtopoChangerFvMesh.so");
dynamicFvMesh movingBodyTopoFvMesh;
dynamicFvMesh movingConeTopoFvMesh;
movingConeTopoFvMeshCoeffs
movingBodyTopoFvMeshCoeffs
{
motionVelAmplitude (0.00051 0 0);
motionVelPeriod 10;
movingCells moving;
frontFaces rightZone;
backFaces leftZone;
leftEdge -0.0075;
leftObstacleEdge -0.007;
rightObstacleEdge -0.0035;
solidBodyMotionFunction linearOscillation;
left
linearOscillationCoeffs
{
minThickness 2e-4;
maxThickness 5e-4;
amplitude (0.0032 0 0);
period 40;
}
right
front
{
minThickness 2e-4;
maxThickness 5e-4;
minThickness 5e-5;
maxThickness 2e-4;
}
back
{
minThickness 5e-5;
maxThickness 2e-4;
}
}
// ************************************************************************* //

View file

@ -46,11 +46,11 @@ vertices
blocks
(
hex (0 1 5 4 12 13 17 16) (3 3 1) simpleGrading (1 1 1)
hex (2 3 7 6 14 15 19 18) (4 4 1) simpleGrading (2 0.25 1)
hex (4 5 9 8 16 17 21 20) (3 3 1) simpleGrading (1 1 1)
hex (5 6 10 9 17 18 22 21) (10 3 1) simpleGrading (1 1 1)
hex (6 7 11 10 18 19 23 22) (4 3 1) simpleGrading (2 1 1)
hex (0 1 5 4 12 13 17 16) left (9 9 1) simpleGrading (1 1 1)
hex (2 3 7 6 14 15 19 18) right (12 12 1) simpleGrading (2 0.25 1)
hex (4 5 9 8 16 17 21 20) left (9 9 1) simpleGrading (1 1 1)
hex (5 6 10 9 17 18 22 21) moving (30 9 1) simpleGrading (1 1 1)
hex (6 7 11 10 18 19 23 22) right (12 9 1) simpleGrading (2 1 1)
);
edges

View file

@ -1,70 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
8
(
movingWall
{
type wall;
nFaces 17;
startFace 125;
}
farFieldMoving
{
type patch;
nFaces 10;
startFace 142;
}
fixedWall
{
type wall;
nFaces 7;
startFace 152;
}
axis
{
type symmetryPlane;
nFaces 7;
startFace 159;
}
left
{
type patch;
nFaces 6;
startFace 166;
}
farField
{
type patch;
nFaces 7;
startFace 172;
}
back
{
type wedge;
nFaces 76;
startFace 179;
}
front
{
type wedge;
nFaces 76;
startFace 255;
}
)
// ************************************************************************* //

View file

@ -0,0 +1,27 @@
faceSet wallSet new patchToFace movingWall
faceSet leftWallSet new setToFace wallSet
faceSet leftWallSet delete cellToFace moving all
faceSet leftWallSet delete cellToFace right all
cellSet leftCentre new zoneToCell left
cellSet leftCentre add zoneToCell moving
faceSet leftZone new cellToFace leftCentre both
faceSet leftZone delete cellToFace left both
faceSet leftZone delete cellToFace moving both
faceSet leftZone add setToFace leftWallSet
cellSet leftZoneMasterCells new zoneToCell left
faceSet rightWallSet new setToFace wallSet
faceSet rightWallSet delete cellToFace moving all
faceSet rightWallSet delete cellToFace left all
cellSet rightCentre new zoneToCell right
cellSet rightCentre add zoneToCell moving
faceSet rightZone new cellToFace rightCentre both
faceSet rightZone delete cellToFace right both
faceSet rightZone delete cellToFace moving both
faceSet rightZone add setToFace rightWallSet
cellSet rightZoneMasterCells new zoneToCell right
quit

View file

@ -24,11 +24,10 @@ stopAt endTime;
endTime 20;
deltaT 0.1;
deltaT 0.05;
writeControl adjustableRunTime;
writeInterval 1;
writeInterval 0.5;
cycleWrite 0;
@ -38,8 +37,6 @@ writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep on;

View file

@ -28,7 +28,7 @@ gradSchemes
divSchemes
{
default none;
div(phi,U) Gauss linear;
div(phi,U) Gauss upwind;
}
laplacianSchemes

View file

@ -63,8 +63,15 @@ solvers
PISO
{
nOuterCorrectors 4;
nCorrectors 4;
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
U 0.7;
p 0.3;
}
// ************************************************************************* //