Updates to overset tutorials

This commit is contained in:
Vuko Vukcevic 2018-02-28 22:50:15 +01:00
parent 2025feef38
commit caedc066ce
110 changed files with 34 additions and 715 deletions

View file

@ -1,6 +0,0 @@
#!/bin/sh
( cd simpleTests ; ./Allclean )
( cd flowTests ; ./Allclean )
( cd movingMeshTests ; ./Allclean )
( cd freeSurfaceTests ; ./Allclean )

View file

@ -1,6 +0,0 @@
#!/bin/sh
( cd simpleTests ; ./Allrun )
( cd flowTests ; ./Allrun )
( cd movingMeshTests ; ./Allrun )
( cd freeSurfaceTests ; ./Allrun )

View file

@ -1,7 +0,0 @@
#!/bin/sh
( cd channelSimpleOverlapicoOversetFoam ; ./Allclean )
( cd cylinderInChannelicoOversetFoam ; ./Allclean )
( cd staticCylinderSheddingTest ; ./Allclean )
( cd navyCylinderSheddingTest ; ./Allclean )

View file

@ -1,7 +0,0 @@
#!/bin/sh
( cd channelSimpleOverlapicoOversetFoam ; ./Allrun )
( cd cylinderInChannelicoOversetFoam ; ./Allrun )
( cd staticCylinderSheddingTest ; ./Allrun )
( cd navyCylinderSheddingTest ; ./Allrun )

View file

@ -1,5 +0,0 @@
#!/bin/sh
( cd bodyFittedCylinderCircular ; ./Allclean )
( cd oversetCylinderTwoLevels ; ./Allclean )
( cd oversetCylinderThreeLevels ; ./Allclean )

View file

@ -1,5 +0,0 @@
#!/bin/sh
( cd bodyFittedCylinderCircular ; ./Allrun )
( cd oversetCylinderTwoLevels ; ./Allrun )
( cd oversetCylinderThreeLevels ; ./Allrun )

View file

@ -10,7 +10,7 @@ runApplication blockMesh
\cp -f boundary constant/polyMesh/boundary \cp -f boundary constant/polyMesh/boundary
runApplication setSet -batch setBatch.batch runApplication setSet -batch setBatch.batch
\rm -f constant/polyMesh/sets/*_old constant/polyMesh/sets/*_old.gz \rm -f constant/polyMesh/sets/*_old constant/polyMesh/sets/*_old.gz
runApplication setsToZones -batch runApplication setsToZones
runApplication potentialOversetFoam -writep runApplication potentialOversetFoam -writep
runApplication $application runApplication $application

View file

@ -1,4 +0,0 @@
#!/bin/sh
( cd bodyFittedCylinder ; ./Allclean )
( cd oversetCylinder ; ./Allclean )

View file

@ -1,4 +0,0 @@
#!/bin/sh
( cd bodyFittedCylinder ; ./Allrun )
( cd oversetCylinder ; ./Allrun )

View file

@ -1,3 +0,0 @@
#!/bin/sh
( cd cylBumpinterOversetFoam ; ./Allclean )

View file

@ -1,3 +0,0 @@
#!/bin/sh
( cd cylBumpinterOversetFoam ; ./Allrun )

View file

@ -1,4 +0,0 @@
#!/bin/sh
( cd movingCylinderInChannelicoDyMOversetFoam ; ./Allclean )
( cd movingCylinderInChannelpimpleDyMOversetFoam ; ./Allclean )

View file

@ -1,4 +0,0 @@
#!/bin/sh
( cd movingCylinderInChannelicoDyMOversetFoam ; ./Allrun )
( cd movingCylinderInChannelpimpleDyMOversetFoam ; ./Allrun )

View file

@ -20,8 +20,9 @@ runParallel $application 6
# Run serial # Run serial
runApplication icoOversetFoam runApplication icoOversetFoam
# Commented out for test loop
# Compare parallel and serial results: serial run will be in time directory 3 # Compare parallel and serial results: serial run will be in time directory 3
# and the parallel run will be in time directory 2 # and the parallel run will be in time directory 2
\mv 2 3 #\mv 2 3
runApplication reconstructPar -latestTime #runApplication reconstructPar -latestTime
meld 2 3 #meld 2 3

View file

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 | | \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -1,18 +0,0 @@
#!/bin/sh
( cd channelLaplaceNoOverset ; ./Allclean )
( cd channelSimpleOverlapLaplace ; ./Allclean )
( cd channelSimpleOverlapLaplaceNonInterfering ; ./Allclean )
( cd channelSimpleOverlapLaplaceCutAlong ; ./Allclean )
( cd channelSimpleOverlapLaplaceCutAcross ; ./Allclean )
( cd channelSimpleOverlapLaplaceCutFringe ; ./Allclean )
( cd cylinderInSquareLaplaceAutoFringe ; ./Allclean )
( cd channelSimpleOverlapPotentialScalarTransport ; ./Allclean )
( cd cylinderInSquareLaplace ; ./Allclean )
( cd cylinderInChannelPotentialScalarTransport ; ./Allclean )
( cd channelBodyFittedLaplace ; ./Allclean )

View file

@ -1,17 +0,0 @@
#!/bin/sh
( cd channelLaplaceNoOverset ; ./Allrun )
( cd channelBodyFittedLaplace ; ./Allrun )
( cd channelSimpleOverlapLaplace ; ./Allrun )
( cd channelSimpleOverlapLaplaceNonInterfering ; ./Allrun )
( cd channelSimpleOverlapLaplaceCutAlong ; ./Allrun )
( cd channelSimpleOverlapLaplaceCutAcross ; ./Allrun )
( cd channelSimpleOverlapLaplaceCutFringe ; ./Allrun )
( cd cylinderInSquareLaplaceAutoFringe ; ./Allrun )
( cd channelSimpleOverlapPotentialScalarTransport ; ./Allrun )
( cd cylinderInSquareLaplace ; ./Allrun )
( cd cylinderInChannelPotentialScalarTransport ; ./Allrun )

View file

@ -1,56 +0,0 @@
# git-ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# editor and misc backup files - anywhere
*~
.*~
*.bak
*.bak[0-9][0-9]
*.orig
*.orig[0-9][0-9]
\#*\#
# file-browser settings - anywhere
.directory
# data files
*.dat
# CVS recovered versions - anywhere
.#*
# SVN directories - anywhere
.svn/
# OpenFOAM results
[0-9]*/
!/0/
processor*
*/polyMesh/*
!*/polyMesh/blockMeshDict
cellToRegion*
log*
VTK
# packages - anywhere
*.tar.bz2
*.tar.gz
*.tar
*.tgz
*.gtgz
# Pictures and movies
*.png
*.jpg
*.jpeg
*.bmp
*.png
*.avi
*.mp4
*.mpg
#end-of-file

View file

@ -1,51 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 1 0 0];
internalField uniform 2;
boundaryField
{
left
{
type fixedValue;
value uniform 1;
}
right
{
type fixedValue;
value uniform 2;
}
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -1,51 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 1 0 0];
internalField uniform 2;
boundaryField
{
left
{
type fixedValue;
value uniform 1;
}
right
{
type fixedValue;
value uniform 2;
}
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //

View file

@ -1,10 +0,0 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
\rm -rf 0/cellDist 0/cellDist.gz constant/cellDecomposition
\rm -rf *.vtk
\rm -rf constant/polyMesh/
mkdir constant/polyMesh

View file

@ -1,12 +0,0 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application="laplacianOversetFoam"
\cp -f blockMeshDict constant/polyMesh/blockMeshDict
runApplication blockMesh
runApplication decomposePar -cellDist
runParallel $application 2

View file

@ -1,70 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.1;
vertices
(
(0 0 0)
(10 0 0)
(10 5 0)
(0 5 0)
(0 0 1)
(10 0 1)
(10 5 1)
(0 5 1)
);
blocks
(
hex (0 1 2 3 4 5 6 7) left (10 5 1) simpleGrading (1 1 1)
);
edges
(
);
patches
(
patch left
(
(0 4 7 3)
)
patch right
(
(2 6 5 1)
)
wall top
(
(3 7 6 2)
)
wall bottom
(
(1 5 4 0)
)
empty frontAndBack
(
(0 3 2 1)
(4 5 6 7)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View file

@ -1,70 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
8
(
oversetFaces
{
type overset;
nFaces 0;
startFace 98;
}
left
{
type patch;
nFaces 5;
startFace 98;
}
leftEnd
{
type patch;
nFaces 5;
startFace 103;
}
rightStart
{
type patch;
nFaces 5;
startFace 108;
}
right
{
type patch;
nFaces 5;
startFace 113;
}
top
{
type wall;
nFaces 12;
startFace 118;
}
bottom
{
type wall;
nFaces 12;
startFace 130;
}
frontAndBack
{
type empty;
nFaces 120;
startFace 142;
}
)
// ************************************************************************* //

View file

@ -1,55 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 1.4 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object oversetMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolation
{
type injection;
}
holePatches ();
regions
(
// Left
left
{
// Donor regions
donorRegions ( right );
fringe
{
type faceCells;
patches ( leftEnd );
}
}
// Right
right
{
donorRegions ( left );
fringe
{
type faceCells;
patches ( rightStart );
}
}
);
// ************************************************************************* //

View file

@ -1,19 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
DT DT [0 2 -1 0 0 0 0] 1;
// ************************************************************************* //

View file

@ -1,59 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application laplacianFoam;
startFrom startTime;
// startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 1;
deltaT 1;
writeControl timeStep;
writeInterval 1;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
libs
(
"libfoam.so"
"libmeshTools.so"
"libsurfMesh.so"
"libsampling.so"
"libdynamicMesh.so"
"liboversetMesh.so"
);
// ************************************************************************* //

View file

@ -1,32 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 2;
method simple;
simpleCoeffs
{
n (2 1 1);
delta 0.001;
}
distributed no;
roots ( );
// ************************************************************************* //

View file

@ -1,55 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default steadyState;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
laplacian(DT,T) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
pStar;
p;
}
// ************************************************************************* //

View file

@ -1,65 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
// T
// {
// solver smoothSolver;
// smoother GaussSeidel;
// nSweeps 5;
// minIter 1;
// maxIter 1000;
// tolerance 1e-6;
// relTol 0;
// }
T
{
solver BiCGStab;
preconditioner DILU;
tolerance 1e-8;
relTol 0.0;
minIter 1;
}
// T
// {
// solver amgSolver;
// cycle W-cycle;
// policy AAMG;
// nPreSweeps 0;
// nPostSweeps 2;
// groupSize 2;
// minCoarseEqns 20;
// nMaxLevels 100;
// scale on;
// smoother ILU;
// tolerance 1e-8;
// relTol 0.01;
// minIter 1;
// }
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
// ************************************************************************* //

Some files were not shown because too many files have changed in this diff Show more