copied from preCICE tutorials
This commit is contained in:
parent
46a7e98752
commit
3f1b1a6d0f
68 changed files with 156449 additions and 0 deletions
101
fluid-openfoam/system/blockMeshDict
Normal file
101
fluid-openfoam/system/blockMeshDict
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
|
||||
vertices
|
||||
(
|
||||
(0 0 0)
|
||||
(1 0 0)
|
||||
(1 .5 0)
|
||||
(0 .5 0)
|
||||
|
||||
(0 0 .4)
|
||||
(1 0 .4)
|
||||
(1 .5 .4)
|
||||
(0 .5 .4)
|
||||
|
||||
(3 0 0)
|
||||
(3 .5 0)
|
||||
|
||||
(3 0 .4)
|
||||
(3 .5 .4)
|
||||
|
||||
(-.5 0 0)
|
||||
(-.5 .5 0)
|
||||
|
||||
(-.5 .5 .4)
|
||||
(-.5 0 .4)
|
||||
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (12 0 3 13 15 4 7 14) (81 41 1) simpleGrading (.2 15 1)
|
||||
hex (0 1 2 3 4 5 6 7) (161 41 1) simpleGrading (5 15 1)
|
||||
hex (1 8 9 2 5 10 11 6) (51 41 1) simpleGrading (1 15 1)
|
||||
);
|
||||
|
||||
boundary
|
||||
(
|
||||
|
||||
inlet
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(13 12 15 14)
|
||||
);
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(8 9 11 10)
|
||||
);
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(7 6 2 3)
|
||||
(9 2 6 11)
|
||||
(13 3 7 14)
|
||||
);
|
||||
}
|
||||
|
||||
slip-bottom
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(15 12 0 4)
|
||||
);
|
||||
}
|
||||
|
||||
bottom
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(1 8 10 5)
|
||||
);
|
||||
}
|
||||
|
||||
interface
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(4 0 1 5)
|
||||
);
|
||||
}
|
||||
|
||||
);
|
||||
46
fluid-openfoam/system/controlDict
Normal file
46
fluid-openfoam/system/controlDict
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object controlDict;
|
||||
}
|
||||
|
||||
application buoyantPimpleFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 1;
|
||||
|
||||
deltaT 0.01;
|
||||
|
||||
writeControl runTime;
|
||||
|
||||
writeInterval 0.2;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable false;
|
||||
|
||||
functions
|
||||
{
|
||||
preCICE_Adapter
|
||||
{
|
||||
type preciceAdapterFunctionObject;
|
||||
libs ("libpreciceAdapterFunctionObject.so");
|
||||
}
|
||||
}
|
||||
16
fluid-openfoam/system/decomposeParDict
Normal file
16
fluid-openfoam/system/decomposeParDict
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FoamFile {
|
||||
version 2.0;
|
||||
class dictionary;
|
||||
object decomposeParDict;
|
||||
format ascii;
|
||||
}
|
||||
|
||||
numberOfSubdomains 2;
|
||||
|
||||
method simple;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n (2 1 1);
|
||||
delta 0.001;
|
||||
}
|
||||
48
fluid-openfoam/system/fvSchemes
Normal file
48
fluid-openfoam/system/fvSchemes
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss upwind;
|
||||
div(phi,h) Gauss upwind;
|
||||
div(phi,e) Gauss upwind;
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div(phi,R) Gauss upwind;
|
||||
div(phi,K) Gauss linear;
|
||||
div(phi,Ekp) Gauss linear;
|
||||
div(R) Gauss linear;
|
||||
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
55
fluid-openfoam/system/fvSolution
Normal file
55
fluid-openfoam/system/fvSolution
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
|
||||
solvers
|
||||
{
|
||||
"rho.*"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 0;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
p_rgh
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-8;
|
||||
relTol 0.01;
|
||||
}
|
||||
|
||||
p_rghFinal
|
||||
{
|
||||
$p_rgh;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
"(U|h|e|k|epsilon|R)"
|
||||
{
|
||||
solver PBiCGStab;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-6;
|
||||
relTol 0.1;
|
||||
}
|
||||
|
||||
"(U|h|e|k|epsilon|R)Final"
|
||||
{
|
||||
$U;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
momentumPredictor yes;
|
||||
nOuterCorrectors 1;
|
||||
nCorrectors 2;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
33
fluid-openfoam/system/preciceDict
Normal file
33
fluid-openfoam/system/preciceDict
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object preciceDict;
|
||||
}
|
||||
|
||||
preciceConfig "../precice-config.xml";
|
||||
|
||||
participant Fluid;
|
||||
|
||||
modules (CHT);
|
||||
|
||||
interfaces
|
||||
{
|
||||
Interface1
|
||||
{
|
||||
mesh Fluid-Mesh;
|
||||
patches (interface);
|
||||
|
||||
readData
|
||||
(
|
||||
Heat-Flux
|
||||
);
|
||||
|
||||
writeData
|
||||
(
|
||||
Temperature
|
||||
);
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue