Removed body-fitted overset test
This commit is contained in:
parent
eb657a3e67
commit
28e6b2de20
27 changed files with 0 additions and 1186 deletions
|
@ -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
|
|
@ -1,16 +0,0 @@
|
|||
cellSet backFringe new cellToCell background
|
||||
cellSet backFringe subset sphereToCell (0 0 0) 7.8
|
||||
cellSet backHole new cellToCell background
|
||||
cellSet backHole subset sphereToCell (0 0 0) 7.2
|
||||
cellSet backFringe delete cellToCell backHole
|
||||
cellSet backFringe new cellToCell background
|
||||
cellSet backFringe subset sphereToCell (0 0 0) 7.6
|
||||
cellSet backHole new cellToCell background
|
||||
cellSet backHole subset sphereToCell (0 0 0) 7.0
|
||||
cellSet backFringe delete cellToCell backHole
|
||||
quit
|
||||
cellSet backFringe new cellToCell background
|
||||
cellSet backFringe subset sphereToCell (0 0 0) 7.4
|
||||
cellSet backHole new cellToCell background
|
||||
cellSet backHole subset sphereToCell (0 0 0) 6.8
|
||||
cellSet backFringe delete cellToCell backHole
|
|
@ -1,43 +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 volVectorField;
|
||||
location "0";
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (1 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
farField
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform (1 0 0);
|
||||
value uniform (1 0 0);
|
||||
phi phi;
|
||||
}
|
||||
cylinder
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,41 +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 p;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
farField
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
cylinder
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanTimeDirectories
|
||||
\rm -rf 0
|
||||
\cp -r save 0
|
||||
\rm -rf *.dat probes forces
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name
|
||||
application="icoFoam"
|
||||
|
||||
runApplication potentialFoam -writep
|
||||
runApplication $application
|
|
@ -1,62 +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;
|
||||
}
|
||||
|
||||
regions
|
||||
(
|
||||
// Background
|
||||
{
|
||||
index 0;
|
||||
|
||||
// Donor regions
|
||||
donorRegions ( 1 );
|
||||
|
||||
// Names or patches that determine hole cells
|
||||
holePatches ();
|
||||
|
||||
fringe
|
||||
{
|
||||
type manual;
|
||||
holes "backHole";
|
||||
acceptors "backFringe";
|
||||
}
|
||||
}
|
||||
|
||||
// Cylinder
|
||||
{
|
||||
index 1;
|
||||
|
||||
donorRegions ( 0 );
|
||||
|
||||
holePatches ( cylinder );
|
||||
|
||||
fringe
|
||||
{
|
||||
type faceCells;
|
||||
patches ( outerCylinder );
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,146 +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 10;
|
||||
|
||||
vertices
|
||||
(
|
||||
// Cylinder, back
|
||||
( 0 -0.05 0)
|
||||
( 0.05 0 0)
|
||||
( 0 0.05 0)
|
||||
(-0.05 0 0)
|
||||
|
||||
( 0 -0.8 0)
|
||||
( 0.8 0 0)
|
||||
( 0 0.8 0)
|
||||
(-0.8 0 0)
|
||||
|
||||
( 0 -2 0)
|
||||
( 2 0 0)
|
||||
( 0 2 0)
|
||||
( -2 0 0)
|
||||
|
||||
// Cylinder, front
|
||||
( 0 -0.05 0.05)
|
||||
( 0.05 0 0.05)
|
||||
( 0 0.05 0.05)
|
||||
(-0.05 0 0.05)
|
||||
|
||||
( 0 -0.8 0.05)
|
||||
( 0.8 0 0.05)
|
||||
( 0 0.8 0.05)
|
||||
(-0.8 0 0.05)
|
||||
|
||||
( 0 -2 0.05)
|
||||
( 2 0 0.05)
|
||||
( 0 2 0.05)
|
||||
( -2 0 0.05)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
// Inner, with grading
|
||||
hex (0 4 5 1 12 16 17 13) (78 30 1) simpleGrading (34.8 1 1)
|
||||
hex (1 5 6 2 13 17 18 14) (78 30 1) simpleGrading (34.8 1 1)
|
||||
hex (2 6 7 3 14 18 19 15) (78 30 1) simpleGrading (34.8 1 1)
|
||||
hex (3 7 4 0 15 19 16 12) (78 30 1) simpleGrading (34.8 1 1)
|
||||
|
||||
// Outer, uniform
|
||||
hex (0 4 5 1 12 16 17 13) (78 30 1) simpleGrading (34.8 1 1)
|
||||
hex (1 5 6 2 13 17 18 14) (78 30 1) simpleGrading (34.8 1 1)
|
||||
hex (2 6 7 3 14 18 19 15) (78 30 1) simpleGrading (34.8 1 1)
|
||||
hex (3 7 4 0 15 19 16 12) (78 30 1) simpleGrading (34.8 1 1)
|
||||
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
// Inner arc, back
|
||||
arc 0 1 ( 0.035355 -0.035355 0)
|
||||
arc 1 2 ( 0.035355 0.035355 0)
|
||||
arc 2 3 (-0.035355 0.035355 0)
|
||||
arc 3 0 (-0.035355 -0.035355 0)
|
||||
|
||||
// Inner arc, front
|
||||
arc 12 13 ( 0.035355 -0.035355 0.05)
|
||||
arc 13 14 ( 0.035355 0.035355 0.05)
|
||||
arc 14 15 (-0.035355 0.035355 0.05)
|
||||
arc 15 12 (-0.035355 -0.035355 0.05)
|
||||
|
||||
// Middle arc, back
|
||||
arc 4 5 ( 0.565685 -0.565685 0)
|
||||
arc 5 6 ( 0.565685 0.565685 0)
|
||||
arc 6 7 (-0.565685 0.565685 0)
|
||||
arc 7 4 (-0.565685 -0.565685 0)
|
||||
|
||||
// Middle arc, front
|
||||
arc 16 17 ( 0.565685 -0.565685 0.05)
|
||||
arc 17 18 ( 0.565685 0.565685 0.05)
|
||||
arc 18 19 (-0.565685 0.565685 0.05)
|
||||
arc 19 16 (-0.565685 -0.565685 0.05)
|
||||
|
||||
// Outer arc, back
|
||||
arc 8 9 ( 1.4142125 -1.4.142125 0)
|
||||
arc 9 10 ( 1.4142125 1.4.142125 0)
|
||||
arc 10 11 (-1.4142125 1.4.142125 0)
|
||||
arc 11 8 (-1.4142125 -1.4.142125 0)
|
||||
|
||||
// Outer arc, front
|
||||
arc 20 21 ( 1.4142125 -1.4142125 0.05)
|
||||
arc 21 22 ( 1.4142125 1.4142125 0.05)
|
||||
arc 22 23 (-1.4142125 1.4142125 0.05)
|
||||
arc 23 20 (-1.4142125 -1.4142125 0.05)
|
||||
);
|
||||
|
||||
patches
|
||||
(
|
||||
wall cylinder
|
||||
(
|
||||
( 0 12 13 1)
|
||||
( 1 13 14 2)
|
||||
( 2 14 15 3)
|
||||
( 3 15 12 0)
|
||||
)
|
||||
|
||||
// patch outerCylinder
|
||||
// (
|
||||
// ( 4 5 13 12)
|
||||
// ( 5 6 14 13)
|
||||
// ( 6 7 15 14)
|
||||
// ( 7 4 12 15)
|
||||
// )
|
||||
|
||||
// empty frontAndBack
|
||||
// (
|
||||
// (8 9 13 12)
|
||||
// (9 10 14 13)
|
||||
// (10 11 15 14)
|
||||
// (11 8 12 15)
|
||||
|
||||
// (16 20 21 17)
|
||||
// (17 21 22 18)
|
||||
// (18 22 23 19)
|
||||
// (19 23 20 16)
|
||||
// )
|
||||
);
|
||||
|
||||
|
||||
mergePatchPairs
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,21 +0,0 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | foam-extend: Open Source CFD |
|
||||
| \\ / O peration | Version: 3.2 |
|
||||
| \\ / A nd | Web: http://www.openfoam.org |
|
||||
| \\/ M anipulation | For copyright notice see file Copyright |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object transportProperties;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
nu nu [0 2 -1 0 0 0 0] 5.0e-05;
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,53 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import pylab
|
||||
import re
|
||||
import pickle
|
||||
|
||||
forceRegex=r"([0-9.Ee\-+]+)\s+\(+([0-9.Ee\-+]+)\s([0-9.Ee\-+]+)\s([0-9.Ee\-+]+)\)\s\(([0-9.Ee\-+]+)\s([0-9.Ee\-+]+)\s([0-9 .Ee\-+]+)\)+\s\(+([0-9.Ee\-+]+)\s([0-9.Ee\-+]+)\s([0-9.Ee\-+]+)\)\s\(([0-9.Ee\-+]+)\s([0-9.Ee\-+]+)\s([0-9.Ee\-+]+)\)+"
|
||||
t = []
|
||||
fpx = []; fpy = []; fpz = []
|
||||
fvx = []; fvy = []; fvz = []
|
||||
mpx = []; mpy = []; mpz = []
|
||||
mvx = []; mvy = []; mvz = []
|
||||
pipefile=open('forces/0/forces.dat','r')
|
||||
lines = pipefile.readlines()
|
||||
for line in lines:
|
||||
match=re.search(forceRegex,line)
|
||||
if match:
|
||||
t.append(float(match.group(1)))
|
||||
fpx.append(float(match.group(2)))
|
||||
fpy.append(float(match.group(3)))
|
||||
fpz.append(float(match.group(4)))
|
||||
fvx.append(float(match.group(5)))
|
||||
fvy.append(float(match.group(6)))
|
||||
fvz.append(float(match.group(7)))
|
||||
mpx.append(float(match.group(8)))
|
||||
mpy.append(float(match.group(9)))
|
||||
mpz.append(float(match.group(10)))
|
||||
mvx.append(float(match.group(11)))
|
||||
mvy.append(float(match.group(12)))
|
||||
mvz.append(float(match.group(13)))
|
||||
|
||||
# Calculate total forces
|
||||
fx = [x + y for x, y in zip(fpx, fvx)]
|
||||
fy = [x + y for x, y in zip(fpy, fvy)]
|
||||
fz = [x + y for x, y in zip(fpz, fvz)]
|
||||
|
||||
for i in range(len(t)):
|
||||
fx[i] = fpx[i] + fvx[i]
|
||||
|
||||
for i in range(len(t)):
|
||||
fx[i] = fpx[i] + fvx[i]
|
||||
|
||||
with open('pressureForces.dat', 'w') as f:
|
||||
for f1, f2, f3 in zip(t, fpx, fpy):
|
||||
print >> f, f1, f2, f3
|
||||
|
||||
with open('viscousForces.dat', 'w') as f:
|
||||
for f1, f2, f3 in zip(t, fvx, fvy):
|
||||
print >> f, f1, f2, f3
|
||||
|
||||
with open('totalForces.dat', 'w') as f:
|
||||
for f1, f2, f3 in zip(t, fx, fy):
|
||||
print >> f, f1, f2, f3
|
|
@ -1,43 +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 volVectorField;
|
||||
location "0";
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (1 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
farField
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform (1 0 0);
|
||||
value uniform (1 0 0);
|
||||
phi phi;
|
||||
}
|
||||
cylinder
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,41 +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 p;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
farField
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
cylinder
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,101 +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 icoOversetFoam;
|
||||
|
||||
// startFrom startTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 100;
|
||||
|
||||
deltaT 0.02;
|
||||
|
||||
writeControl runTime;
|
||||
|
||||
writeInterval 2;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression compressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
libs
|
||||
(
|
||||
"libfoam.so"
|
||||
"libmeshTools.so"
|
||||
"libsurfMesh.so"
|
||||
"libsampling.so"
|
||||
"libdynamicMesh.so"
|
||||
"liboversetMesh.so"
|
||||
);
|
||||
|
||||
|
||||
|
||||
functions
|
||||
(
|
||||
forces
|
||||
{
|
||||
type forces;
|
||||
functionObjectLibs ( "libforces.so" );
|
||||
outputControl timeStep;
|
||||
outputInterval 1;
|
||||
patches ( cylinder );
|
||||
pName p;
|
||||
UName U;
|
||||
rhoName rhoInf;
|
||||
log true;
|
||||
rhoInf 1;
|
||||
CofR (0 0 0);
|
||||
}
|
||||
|
||||
probes
|
||||
{
|
||||
type probes;
|
||||
functionObjectLibs ("libsampling.so");
|
||||
enabled true;
|
||||
outputControl timeStep;
|
||||
outputInterval 1;
|
||||
probeLocations
|
||||
(
|
||||
( 1 0 0 )
|
||||
( 3 0 0 )
|
||||
( 5 0 0 )
|
||||
);
|
||||
|
||||
fields
|
||||
(
|
||||
p
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,50 +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 decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method simple;
|
||||
|
||||
simpleCoeffs
|
||||
{
|
||||
n (4 1 1);
|
||||
delta 0.001;
|
||||
}
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n (1 1 1);
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
metisCoeffs
|
||||
{
|
||||
processorWeights 4(1 1 1 1);
|
||||
}
|
||||
|
||||
manualCoeffs
|
||||
{
|
||||
dataFile "cellDecomposition";
|
||||
}
|
||||
|
||||
distributed no;
|
||||
|
||||
roots
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,48 +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 Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(phi,U) Gauss upwind;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,63 +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
|
||||
{
|
||||
p
|
||||
{
|
||||
solver CG;
|
||||
preconditioner DIC;
|
||||
|
||||
minIter 1;
|
||||
maxIter 1000;
|
||||
tolerance 1e-7;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
U
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
nSweeps 1;
|
||||
|
||||
// solver BiCGStab;
|
||||
// preconditioner DILU;
|
||||
|
||||
// minIter 1;
|
||||
maxIter 1000;
|
||||
tolerance 1e-7;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SIMPLE
|
||||
{
|
||||
pRefCell 0;
|
||||
pRefValue 0;
|
||||
}
|
||||
|
||||
|
||||
PISO
|
||||
{
|
||||
pRefCell 0;
|
||||
pRefValue 0;
|
||||
|
||||
nCorrectors 4;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -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
|
|
@ -1,63 +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 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
oversetFaces
|
||||
{
|
||||
type overset;
|
||||
value uniform 0;
|
||||
coupledFringe yes;
|
||||
|
||||
setHoleCellValue yes;
|
||||
holeCellValue 0;
|
||||
}
|
||||
left
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
right
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 2;
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
bottom
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
frontAndBack
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -rf constant/polyMesh/
|
||||
mkdir constant/polyMesh
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name
|
||||
application="laplacianFoam"
|
||||
|
||||
\cp -f blockMeshDict constant/polyMesh/blockMeshDict
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication $application
|
|
@ -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) (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
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
|
@ -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;
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,49 +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 compressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -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;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
|
@ -1,53 +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 amgSolver;
|
||||
cycle W-cycle;
|
||||
policy PAMG;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
groupSize 2;
|
||||
minCoarseEqns 20;
|
||||
nMaxLevels 100;
|
||||
scale on;
|
||||
smoother ILU;
|
||||
|
||||
tolerance 1e-8;
|
||||
relTol 0.01;
|
||||
minIter 1;
|
||||
}
|
||||
// T
|
||||
// {
|
||||
// solver PCG;
|
||||
// preconditioner DIC;
|
||||
// tolerance 1e-8;
|
||||
// relTol 0.01;
|
||||
// minIter 1;
|
||||
// }
|
||||
}
|
||||
|
||||
SIMPLE
|
||||
{
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ************************************************************************* //
|
Reference in a new issue