Skip to content
Snippets Groups Projects
Commit e06736a6 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

TUT: ensure tutorials run in parallel

parent b29b1287
Branches
Tags
1 merge request!2Code style
Showing with 157 additions and 104 deletions
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaVectorField;
location "0";
object Us;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -21,25 +20,12 @@ internalField uniform (0 0 0);
boundaryField
{
minX
{
type fixedValue;
value uniform (0 0 0);
}
maxX
{
type fixedValue;
value uniform (0 0 0);
}
minY
{
type fixedValue;
value uniform (0 0 0);
}
maxY
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type fixedValue;
value uniform (0 0 0);
type fixedValue;
value $internalField;
}
}
......
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaScalarField;
location "0";
object h;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -21,25 +20,12 @@ internalField uniform 0;
boundaryField
{
minX
{
type fixedValue;
value uniform 0;
}
maxX
{
type fixedValue;
value uniform 0;
}
minY
{
type fixedValue;
value uniform 0;
}
maxY
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type fixedValue;
value uniform 0;
type fixedValue;
value $internalField;
}
}
......
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaScalarField;
location "0";
object hentrain;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -21,25 +20,12 @@ internalField uniform 0;
boundaryField
{
minX
{
type fixedValue;
value uniform 0;
}
maxX
{
type fixedValue;
value uniform 0;
}
minY
{
type fixedValue;
value uniform 0;
}
maxY
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type fixedValue;
value uniform 0;
type fixedValue;
value $internalField;
}
}
......
......@@ -2,11 +2,13 @@
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication slopeMesh
runApplication makeFaMesh
# Restore initial fields
restore0Dir
runApplication slopeMesh
runApplication makeFaMesh
runApplication releaseAreaMapping
runApplication $(getApplication)
......
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication slopeMesh
runApplication makeFaMesh
# Restore initial fields (prior to decompose)
restore0Dir
runApplication decomposePar
runParallel releaseAreaMapping
runParallel $(getApplication)
#------------------------------------------------------------------------------
......@@ -37,7 +37,7 @@ writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
writeCompression off;
timeFormat general;
......@@ -49,7 +49,7 @@ adjustTimeStep yes;
initDeltaT yes;
maxCo 1.;
maxCo 1.0;
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method simple;
coeffs
{
n (2 2 1);
}
// ************************************************************************* //
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaVectorField;
location "0";
object Us;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -21,25 +20,12 @@ internalField uniform (0 0 0);
boundaryField
{
minX
{
type fixedValue;
value uniform (0 0 0);
}
maxX
{
type fixedValue;
value uniform (0 0 0);
}
minY
{
type fixedValue;
value uniform (0 0 0);
}
maxY
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type fixedValue;
value uniform (0 0 0);
type fixedValue;
value $internalField;
}
}
......
......@@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class areaScalarField;
location "0";
object h;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -21,25 +20,12 @@ internalField uniform 0;
boundaryField
{
minX
{
type fixedValue;
value uniform 0;
}
maxX
{
type fixedValue;
value uniform 0;
}
minY
{
type fixedValue;
value uniform 0;
}
maxY
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type fixedValue;
value uniform 0;
type fixedValue;
value $internalField;
}
}
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | faSavageHutterFOAM |
| \\ / A nd | Copyright (C) 2017 Matthias Rauter |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class areaScalarField;
object hentrain;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type fixedValue;
value $internalField;
}
}
// ************************************************************************* //
......@@ -2,13 +2,13 @@
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Restore initial fields
restore0Dir
runApplication slopeMesh
runApplication makeFaMesh
# Restore initial fields
restore0Dir
runApplication releaseAreaMapping
runApplication $(getApplication)
......
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication slopeMesh
runApplication makeFaMesh
# Restore initial fields (prior to decompose)
restore0Dir
runApplication decomposePar
runParallel releaseAreaMapping
runParallel $(getApplication)
#------------------------------------------------------------------------------
......@@ -37,7 +37,7 @@ writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
writeCompression off;
timeFormat general;
......@@ -49,7 +49,7 @@ adjustTimeStep yes;
initDeltaT yes;
maxCo 1.;
maxCo 1.0;
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method simple;
coeffs
{
n (2 2 1);
}
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment