diff options
Diffstat (limited to 'convection-diffusion/basecase')
-rw-r--r-- | convection-diffusion/basecase/0.orig/T | 34 | ||||
-rw-r--r-- | convection-diffusion/basecase/0.orig/U | 34 | ||||
-rw-r--r-- | convection-diffusion/basecase/0/T | 34 | ||||
-rw-r--r-- | convection-diffusion/basecase/0/U | 34 | ||||
-rwxr-xr-x | convection-diffusion/basecase/Allclean | 12 | ||||
-rwxr-xr-x | convection-diffusion/basecase/Allrun | 14 | ||||
-rw-r--r-- | convection-diffusion/basecase/constant/blockMeshDict | 68 | ||||
-rw-r--r-- | convection-diffusion/basecase/constant/transportProperties | 21 | ||||
-rw-r--r-- | convection-diffusion/basecase/foam.foam | 0 | ||||
-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 |
14 files changed, 477 insertions, 0 deletions
diff --git a/convection-diffusion/basecase/0.orig/T b/convection-diffusion/basecase/0.orig/T new file mode 100644 index 0000000..980007e --- /dev/null +++ b/convection-diffusion/basecase/0.orig/T @@ -0,0 +1,34 @@ +/*--------------------------------*- 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 volScalarField; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + sides + { + type zeroGradient; + } + + empty + { + type empty; + } +} + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/0.orig/U b/convection-diffusion/basecase/0.orig/U new file mode 100644 index 0000000..4d97262 --- /dev/null +++ b/convection-diffusion/basecase/0.orig/U @@ -0,0 +1,34 @@ +/*--------------------------------*- 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 volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + sides + { + type zeroGradient; + } + + empty + { + type empty; + } +} + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/0/T b/convection-diffusion/basecase/0/T new file mode 100644 index 0000000..980007e --- /dev/null +++ b/convection-diffusion/basecase/0/T @@ -0,0 +1,34 @@ +/*--------------------------------*- 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 volScalarField; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + sides + { + type zeroGradient; + } + + empty + { + type empty; + } +} + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/0/U b/convection-diffusion/basecase/0/U new file mode 100644 index 0000000..4d97262 --- /dev/null +++ b/convection-diffusion/basecase/0/U @@ -0,0 +1,34 @@ +/*--------------------------------*- 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 volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + sides + { + type zeroGradient; + } + + empty + { + type empty; + } +} + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/Allclean b/convection-diffusion/basecase/Allclean new file mode 100755 index 0000000..2c848c8 --- /dev/null +++ b/convection-diffusion/basecase/Allclean @@ -0,0 +1,12 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cleanCase +rm -rf 0 +cp -r 0.orig 0 +cleanSamples + +#------------------------------------------------------------------------------ diff --git a/convection-diffusion/basecase/Allrun b/convection-diffusion/basecase/Allrun new file mode 100755 index 0000000..14dcfb2 --- /dev/null +++ b/convection-diffusion/basecase/Allrun @@ -0,0 +1,14 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +application=`getApplication` + +runApplication blockMesh +runApplication setFields +runApplication $application +runApplication -s sample postProcess -func sample + +#------------------------------------------------------------------------------ diff --git a/convection-diffusion/basecase/constant/blockMeshDict b/convection-diffusion/basecase/constant/blockMeshDict new file mode 100644 index 0000000..3519403 --- /dev/null +++ b/convection-diffusion/basecase/constant/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 +( + (-5 -1 -1) + (5 -1 -1) + (5 1 -1) + (-5 1 -1) + (-5 -1 1) + (5 -1 1) + (5 1 1) + (-5 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/constant/transportProperties b/convection-diffusion/basecase/constant/transportProperties new file mode 100644 index 0000000..90a50e3 --- /dev/null +++ b/convection-diffusion/basecase/constant/transportProperties @@ -0,0 +1,21 @@ +/*--------------------------------*- 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 "constant"; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +DT DT [0 2 -1 0 0 0 0] 1e-10; + + +// ************************************************************************* // diff --git a/convection-diffusion/basecase/foam.foam b/convection-diffusion/basecase/foam.foam new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/convection-diffusion/basecase/foam.foam 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 ) ; } ); + + +// ************************************************************************* // |