TUT: discreteMethods: cleanup tutorials

This commit is contained in:
Kutalmis Bercin
2021-03-19 18:41:09 +00:00
committed by Andrew Heather
parent c4a7563a73
commit 2fa8e5fdf3
122 changed files with 474 additions and 756 deletions

View File

@ -9,19 +9,22 @@ FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 2;
dimensions [0 1 -1 0 0 0 0];
method simple;
internalField uniform (0 0 0);
coeffs
boundaryField
{
n (2 1 1);
".*"
{
type cyclic;
}
}
// ************************************************************************* //

View File

@ -1,51 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
periodicX_half0
{
type cyclic;
}
periodicY_half0
{
type cyclic;
}
periodicZ_half0
{
type cyclic;
}
periodicY_half1
{
type cyclic;
}
periodicZ_half1
{
type cyclic;
}
periodicX_half1
{
type cyclic;
}
}
// ************************************************************************* //

View File

@ -3,9 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
rm -rf 0/lagrangian 0/uniform
rm -f Ar-Ar
rm -f electrostatic
rm -f constant/idList

View File

@ -3,8 +3,12 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
runApplication blockMesh
runApplication mdInitialise
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object moleculeProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -33,4 +32,5 @@ Ar
);
}
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 2.462491658e-9;

View File

@ -46,4 +46,5 @@ runTimeModifiable true;
adjustTimeStep no;
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -45,4 +44,5 @@ snGradSchemes
default none;
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,4 +18,5 @@ solvers
{
}
// ************************************************************************* //

View File

@ -16,4 +16,5 @@ FoamFile
targetTemperature 300.0;
// ************************************************************************* //

View File

@ -33,4 +33,5 @@ liquid
latticeCellShape (1 1 1);
}
// ************************************************************************* //

View File

@ -9,19 +9,21 @@ FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
dimensions [0 1 -1 0 0 0 0];
method simple;
internalField uniform (0 0 0);
coeffs
boundaryField
{
n (2 2 1);
".*"
{
type cyclic;
}
}

View File

@ -1,51 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
periodicX_half0
{
type cyclic;
}
periodicY_half0
{
type cyclic;
}
periodicZ_half0
{
type cyclic;
}
periodicY_half1
{
type cyclic;
}
periodicZ_half1
{
type cyclic;
}
periodicX_half1
{
type cyclic;
}
}
// ************************************************************************* //

View File

@ -3,9 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
rm -rf 0/lagrangian 0/uniform
rm -f O-O
rm -f electrostatic
rm -f constant/idList

View File

@ -3,8 +3,12 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
runApplication blockMesh
runApplication mdInitialise
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object moleculeProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -69,4 +68,5 @@ water2
);
}
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 2.10840e-9;

View File

@ -46,4 +46,5 @@ runTimeModifiable true;
adjustTimeStep no;
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -45,4 +44,5 @@ snGradSchemes
default none;
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,4 +18,5 @@ solvers
{
}
// ************************************************************************* //

View File

@ -16,4 +16,5 @@ FoamFile
targetTemperature 298;
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object mdInitialiseDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Euler angles, expressed in degrees as phi, theta, psi, see
@ -43,4 +42,5 @@ liquid
latticeCellShape (1 1 1);
}
// ************************************************************************* //

View File

@ -24,26 +24,32 @@ boundaryField
{
type noSlip;
}
sectionCEnd
{
type noSlip;
}
front
{
type noSlip;
}
back
{
type noSlip;
}
top
{
type noSlip;
}
bottom
{
type noSlip;
}
}
// ************************************************************************* //

View File

@ -3,7 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
rm -rf processor[0-9]
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,10 +3,14 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
restore0Dir
runApplication blockMesh
runApplication decomposePar
runParallel mdInitialise
runParallel $(getApplication)
runApplication reconstructPar

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object moleculeProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -42,4 +41,5 @@ water
);
}
// ************************************************************************* //

View File

@ -133,4 +133,5 @@ mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -46,4 +46,5 @@ runTimeModifiable true;
adjustTimeStep no;
// ************************************************************************* //

View File

@ -12,16 +12,11 @@ FoamFile
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method scotch;
method scotch;
coeffs
{
n (2 2 1);
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -45,4 +44,5 @@ snGradSchemes
default none;
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,4 +18,5 @@ solvers
{
}
// ************************************************************************* //

View File

@ -16,4 +16,5 @@ FoamFile
targetTemperature 298;
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object mdInitialiseDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Euler angles, expressed in degrees as phi, theta, psi, see
@ -75,4 +74,5 @@ sectionC
latticeCellShape (1 1 1);
}
// ************************************************************************* //