This commit is contained in:
crivelphilip committed 2023-01-20 10:29:35 +01:00
1 parent 6fc22b0da5
commit 766efce688
475 files changed
+72727 -1

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application snowBedFoam; //snow transport solver
startFrom latestTime;
startTime 0; //initial timestep (s)
stopAt endTime;
endTime 1000; //end of simulation time (s)
deltaT 1.e-3; //if fixed timestep (s)
writeControl adjustableRunTime; //timestep adjusted to maxCo
writeInterval 1;
purgeWrite 100;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 2; //maximum CFL number
maxDeltaT 0.01; //maximum timestep (s)
// ************************************************************************* //
+106
View File
@@ -0,0 +1,106 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// This application/dictionary controls:
// - optional: create new patches from boundary faces (either given as
// a set of patches or as a faceSet)
// - always: order faces on coupled patches such that they are opposite. This
// is done for all coupled faces, not just for any patches created.
// - optional: synchronise points on coupled patches.
// - always: remove zero-sized (non-coupled) patches (that were not added)
// 1. Create cyclic:
// - specify where the faces should come from
// - specify the type of cyclic. If a rotational specify the rotationAxis
// and centre to make matching easier
// - always create both halves in one invocation with correct 'neighbourPatch'
// setting.
// - optionally pointSync true to guarantee points to line up.
pointSync false;
// Patches to create.
patches
(
{
// Name of new patch
name xMin;
// Dictionary to construct new patch from
patchInfo
{
type cyclic;
neighbourPatch xMax;
transform unknown;
matchTolerance 0.01;
}
// How to construct: either from 'patches' or 'set'
constructFrom patches;
// If constructFrom = patches : names of patches. Wildcards allowed.
patches (xMi);
}
{
// Name of new patch
name xMax;
// Dictionary to construct new patch from
patchInfo
{
type cyclic;
neighbourPatch xMin;
transform unknown;//rotational;
matchTolerance 0.01;
}
// How to construct: either from 'patches' or 'set'
constructFrom patches;
// If constructFrom = patches : names of patches. Wildcards allowed.
patches (xMi_shadow);
}
{
// Name of new patch
name yMin;
// Dictionary to construct new patch from
patchInfo
{
type cyclic;
neighbourPatch yMax;
transform unknown;
matchTolerance 0.01;
}
// How to construct: either from 'patches' or 'set'
constructFrom patches;
// If constructFrom = patches : names of patches. Wildcards allowed.
patches (yMi);
}
{
// Name of new patch
name yMax;
// Dictionary to construct new patch from
patchInfo
{
type cyclic;
neighbourPatch yMin;
transform unknown; //rotational;
matchTolerance 0.01;
}
// How to construct: either from 'patches' or 'set'
constructFrom patches;
// If constructFrom = patches : names of patches. Wildcards allowed.
patches (yMi_shadow);
}
);
// ************************************************************************* //
+28
View File
@@ -0,0 +1,28 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.2 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 20; //number of processors
method simple; //decomposition method
preservePatches (xMin xMax yMin yMax); //for cyclic BCs
simpleCoeffs
{
n (5 4 1); //number of processors in x,y,z direction
delta 0.001;
}
// ************************************************************************* //
+67
View File
@@ -0,0 +1,67 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
grad(U) Gauss linear;
}
divSchemes
{
default none;
div(alphaPhic,U) bounded Gauss linearUpwind grad(U);
div(((alpha*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phiGByA,kinematicCloud:alpha) Gauss linear;
div(((alpha*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(alphaPhic,k) bounded Gauss upwind;
div(alphaPhic,epsilon) bounded Gauss upwind;
div(alphaPhic,omega) bounded Gauss upwind;
}
laplacianSchemes
{
default Gauss linear limited 0.333;
}
interpolationSchemes
{
default linear;
interpolate(U) linear;
}
snGradSchemes
{
default limited 0.333;
}
fluxRequired
{
default no;
p ;
kinematicCloud:alpha;
}
// ************************************************************************* //
+89
View File
@@ -0,0 +1,89 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p
{
solver GAMG;
tolerance 1e-06;
relTol 0.01;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
pFinal
{
solver GAMG;
tolerance 1e-06;
relTol 0;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
"(U|k|omega|epsilon|nuTilda)"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-05;
relTol 0.1;
}
"(U|k|omega|epsilon|nuTilda)Final"
{
$U;
tolerance 1e-05;
relTol 0;
}
/*kinematicCloud:alpha
{
solver GAMG;
tolerance 1e-06;
relTol 0.1;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}*/
}
PIMPLE
{
nOuterCorrectors 2;
nCorrectors 2;
momentumPredictor yes;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
relaxationFactors
{
}
// ************************************************************************* //