diff options
Diffstat (limited to 'convection-diffusion/basecase/system')
-rw-r--r-- | convection-diffusion/basecase/system/blockMeshDict | 68 | ||||
-rw-r--r-- | convection-diffusion/basecase/system/controlDict | 49 | ||||
-rw-r--r-- | convection-diffusion/basecase/system/fvSchemes | 51 | ||||
-rw-r--r-- | convection-diffusion/basecase/system/fvSolution | 35 | ||||
-rw-r--r-- | convection-diffusion/basecase/system/setFieldsDict | 23 |
5 files changed, 226 insertions, 0 deletions
diff --git a/convection-diffusion/basecase/system/blockMeshDict b/convection-diffusion/basecase/system/blockMeshDict new file mode 100644 index 0000000..56b18ce --- /dev/null +++ b/convection-diffusion/basecase/system/blockMeshDict @@ -0,0 +1,68 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +vertices +( + (-1 -.1 -1) + (1 -.1 -1) + (1 .1 -1) + (-1 .1 -1) + (-1 -.1 1) + (1 -.1 1) + (1 .1 1) + (-1 .1 1) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (1000 1 1) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + sides + { + type patch; + faces + ( + (1 2 6 5) + (0 4 7 3) + ); + } + empty + { + type empty; + faces + ( + (0 1 5 4) + (5 6 7 4) + (3 7 6 2) + (0 3 2 1) + ); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/system/controlDict b/convection-diffusion/basecase/system/controlDict new file mode 100644 index 0000000..b97ed50 --- /dev/null +++ b/convection-diffusion/basecase/system/controlDict @@ -0,0 +1,49 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application scalarTransportFoam; + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 1; + +deltaT 0.00001; + +writeControl runTime; + +writeInterval 0.1; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 6; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable true; + + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/system/fvSchemes b/convection-diffusion/basecase/system/fvSchemes new file mode 100644 index 0000000..ad0177c --- /dev/null +++ b/convection-diffusion/basecase/system/fvSchemes @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / 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; +} + +divSchemes +{ + default none; + div(phi,T) Gauss linearUpwind grad(T); +} + +laplacianSchemes +{ + default none; + laplacian(DT,T) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/system/fvSolution b/convection-diffusion/basecase/system/fvSolution new file mode 100644 index 0000000..32e10ed --- /dev/null +++ b/convection-diffusion/basecase/system/fvSolution @@ -0,0 +1,35 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + T + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-06; + relTol 0; + } +} + +SIMPLE +{ + nNonOrthogonalCorrectors 0; +} + + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/system/setFieldsDict b/convection-diffusion/basecase/system/setFieldsDict new file mode 100644 index 0000000..ce95016 --- /dev/null +++ b/convection-diffusion/basecase/system/setFieldsDict @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object setFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +defaultFieldValues ( volVectorFieldValue U (1 0 0) volScalarFieldValue T 0 ); + +regions ( boxToCell { box (-0.01 -.1 -1) (0.01 .1 1) ; fieldValues ( volScalarFieldValue T 1 ) ; } ); + + +// ************************************************************************* // |