Improvements in conjugate heat solver: non-matching interface, parallelisation

This commit is contained in:
Hrvoje Jasak 2011-09-29 02:13:00 +01:00
parent 617fcb0d32
commit 30fdce1de4
9 changed files with 152 additions and 45 deletions

View file

@ -6,10 +6,14 @@ application="conjugateHeatFoam"
runApplication blockMesh
cp boundary constant/polyMesh
runApplication setSet -batch setBatch
runApplication setsToZones -noFlipMap
cd ../heatedBlock
runApplication blockMesh
cp boundary constant/polyMesh
runApplication setSet -batch setBatch
runApplication setsToZones -noFlipMap
cd ../conjugateCavity
runApplication $application

View file

@ -1,6 +1,6 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,41 +20,41 @@ FoamFile
movingWall
{
type wall;
nFaces 10;
startFace 180;
nFaces 15;
startFace 420;
}
left
{
type wall;
nFaces 10;
startFace 190;
nFaces 15;
startFace 435;
}
right
{
type regionCouple;
nFaces 10;
startFace 200;
nFaces 15;
startFace 450;
zone rightZone;
shadowRegion solid;
shadowPatch left;
master yes;
attached on;
isWall yes;
bridgeOverlap no;
}
bottom
{
type wall;
nFaces 10;
startFace 210;
nFaces 15;
startFace 465;
}
frontAndBack
{
type empty;
nFaces 200;
startFace 220;
nFaces 450;
startFace 480;
}
)

View file

@ -30,7 +30,7 @@ vertices
blocks
(
hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)
hex (0 1 2 3 4 5 6 7) (15 15 1) simpleGrading (1 1 1)
);
edges

View file

@ -0,0 +1,2 @@
faceSet rightZone new patchToFace right
quit

View file

@ -29,10 +29,14 @@ left
nFaces 10;
startFace 200;
zone leftZone;
shadowRegion region0;
shadowPatch right;
master no;
attached on;
isWall yes; // Not relevant
bridgeOverlap no;
}
right

View file

@ -0,0 +1,2 @@
faceSet leftZone new patchToFace left
quit

View file

@ -0,0 +1,42 @@
ln -s ../conjugateCavity/0.1/solid/ 0.1
ln -s ../conjugateCavity/0.2/solid/ 0.2
ln -s ../conjugateCavity/0.3/solid/ 0.3
ln -s ../conjugateCavity/0.4/solid/ 0.4
ln -s ../conjugateCavity/0.5/solid/ 0.5
ln -s ../conjugateCavity/0.6/solid/ 0.6
ln -s ../conjugateCavity/0.7/solid/ 0.7
ln -s ../conjugateCavity/0.8/solid/ 0.8
ln -s ../conjugateCavity/0.9/solid/ 0.9
ln -s ../conjugateCavity/0.15/solid/ 0.15
ln -s ../conjugateCavity/0.25/solid/ 0.25
ln -s ../conjugateCavity/0.35/solid/ 0.35
ln -s ../conjugateCavity/0.45/solid/ 0.45
ln -s ../conjugateCavity/0.55/solid/ 0.55
ln -s ../conjugateCavity/0.65/solid/ 0.65
ln -s ../conjugateCavity/0.75/solid/ 0.75
ln -s ../conjugateCavity/0.85/solid/ 0.85
ln -s ../conjugateCavity/0.95/solid/ 0.95
ln -s ../conjugateCavity/1.1/solid/ 1.1
ln -s ../conjugateCavity/1.2/solid/ 1.2
ln -s ../conjugateCavity/1.3/solid/ 1.3
ln -s ../conjugateCavity/1.4/solid/ 1.4
ln -s ../conjugateCavity/1.5/solid/ 1.5
ln -s ../conjugateCavity/1.6/solid/ 1.6
ln -s ../conjugateCavity/1.7/solid/ 1.7
ln -s ../conjugateCavity/1.8/solid/ 1.8
ln -s ../conjugateCavity/1.9/solid/ 1.9
ln -s ../conjugateCavity/1.15/solid/ 1.15
ln -s ../conjugateCavity/1.25/solid/ 1.25
ln -s ../conjugateCavity/1.35/solid/ 1.35
ln -s ../conjugateCavity/1.45/solid/ 1.45
ln -s ../conjugateCavity/1.55/solid/ 1.55
ln -s ../conjugateCavity/1.65/solid/ 1.65
ln -s ../conjugateCavity/1.75/solid/ 1.75
ln -s ../conjugateCavity/1.85/solid/ 1.85
ln -s ../conjugateCavity/1.95/solid/ 1.95

View file

@ -0,0 +1,52 @@
/*--------------------------------*- 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;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
lowerWall
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
upperWall
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
flow
{
type cyclic;
value uniform 0;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View file

@ -22,42 +22,42 @@ solvers
preconditioner DIC;
tolerance 1e-06;
relTol 0.01;
};
}
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
}
k
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
}
epsilon
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
}
R
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
}
nuTilda
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
};
}
}
SIMPLE