Commit afee2838 authored by Andrew Heather's avatar Andrew Heather
Browse files

small updates to tuts

parent b2d7f8b5
......@@ -18,39 +18,39 @@ convertToMeters 1.0e-3;
vertices
(
( 0.00 -2.50 -0.50)
( 5.00 -2.50 -0.50)
( 5.00 -0.15 -0.50)
( 7.00 -0.15 -0.50)
( 7.00 -2.50 -0.50)
(17.00 -2.50 -0.50)
(17.00 -0.15 -0.50)
(17.00 0.15 -0.50)
(17.00 2.50 -0.50)
( 7.00 2.50 -0.50)
( 7.00 0.15 -0.50)
( 5.00 0.15 -0.50)
( 5.00 2.50 -0.50)
( 0.00 2.50 -0.50)
( 0.00 0.15 -0.50)
( 0.00 -0.15 -0.50)
( 0.00 -2.50 -0.15)
( 5.00 -2.50 -0.15)
( 5.00 -0.15 -0.15)
( 7.00 -0.15 -0.15)
( 7.00 -2.50 -0.15)
(17.00 -2.50 -0.15)
(17.00 -0.15 -0.15)
(17.00 0.15 -0.15)
(17.00 2.50 -0.15)
( 7.00 2.50 -0.15)
( 7.00 0.15 -0.15)
( 5.00 0.15 -0.15)
( 5.00 2.50 -0.15)
( 0.00 2.50 -0.15)
( 0.00 0.15 -0.15)
( 0.00 -0.15 -0.15)
( 0.00 -2.50 0.50)
( 5.00 -2.50 0.50)
( 5.00 -0.15 0.50)
( 7.00 -0.15 0.50)
( 7.00 -2.50 0.50)
(17.00 -2.50 0.50)
(17.00 -0.15 0.50)
(17.00 0.15 0.50)
(17.00 2.50 0.50)
( 7.00 2.50 0.50)
( 7.00 0.15 0.50)
( 5.00 0.15 0.50)
( 5.00 2.50 0.50)
( 0.00 2.50 0.50)
( 0.00 0.15 0.50)
( 0.00 -0.15 0.50)
( 0.00 -2.50 0.15)
( 5.00 -2.50 0.15)
( 5.00 -0.15 0.15)
( 7.00 -0.15 0.15)
( 7.00 -2.50 0.15)
(17.00 -2.50 0.15)
(17.00 -0.15 0.15)
(17.00 0.15 0.15)
(17.00 2.50 0.15)
( 7.00 2.50 0.15)
( 7.00 0.15 0.15)
( 5.00 0.15 0.15)
( 5.00 2.50 0.15)
( 0.00 2.50 0.15)
( 0.00 0.15 0.15)
( 0.00 -0.15 0.15)
);
blocks
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
......@@ -10,6 +10,7 @@ FoamFile
version 2.0;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -20,13 +20,13 @@ startTime 0;
stopAt endTime;
endTime 2e-3;
endTime 2e-4;
deltaT 1e-8;
writeControl adjustableRunTime;
writeInterval 1e-4;
writeInterval 2e-5;
purgeWrite 0;
......
......@@ -63,7 +63,7 @@ solvers
PISO
{
nCorrectors 2;
nCorrectors 3;
nNonOrthogonalCorrectors 0;
// removeSwirl 2;
......
......@@ -18,39 +18,39 @@ convertToMeters 1.0e-3;
vertices
(
( 0.00 -2.50 -0.50)
( 5.00 -2.50 -0.50)
( 5.00 -0.15 -0.50)
( 7.00 -0.15 -0.50)
( 7.00 -2.50 -0.50)
(17.00 -2.50 -0.50)
(17.00 -0.15 -0.50)
(17.00 0.15 -0.50)
(17.00 2.50 -0.50)
( 7.00 2.50 -0.50)
( 7.00 0.15 -0.50)
( 5.00 0.15 -0.50)
( 5.00 2.50 -0.50)
( 0.00 2.50 -0.50)
( 0.00 0.15 -0.50)
( 0.00 -0.15 -0.50)
( 0.00 -2.50 -0.15)
( 5.00 -2.50 -0.15)
( 5.00 -0.15 -0.15)
( 7.00 -0.15 -0.15)
( 7.00 -2.50 -0.15)
(17.00 -2.50 -0.15)
(17.00 -0.15 -0.15)
(17.00 0.15 -0.15)
(17.00 2.50 -0.15)
( 7.00 2.50 -0.15)
( 7.00 0.15 -0.15)
( 5.00 0.15 -0.15)
( 5.00 2.50 -0.15)
( 0.00 2.50 -0.15)
( 0.00 0.15 -0.15)
( 0.00 -0.15 -0.15)
( 0.00 -2.50 0.50)
( 5.00 -2.50 0.50)
( 5.00 -0.15 0.50)
( 7.00 -0.15 0.50)
( 7.00 -2.50 0.50)
(17.00 -2.50 0.50)
(17.00 -0.15 0.50)
(17.00 0.15 0.50)
(17.00 2.50 0.50)
( 7.00 2.50 0.50)
( 7.00 0.15 0.50)
( 5.00 0.15 0.50)
( 5.00 2.50 0.50)
( 0.00 2.50 0.50)
( 0.00 0.15 0.50)
( 0.00 -0.15 0.50)
( 0.00 -2.50 0.15)
( 5.00 -2.50 0.15)
( 5.00 -0.15 0.15)
( 7.00 -0.15 0.15)
( 7.00 -2.50 0.15)
(17.00 -2.50 0.15)
(17.00 -0.15 0.15)
(17.00 0.15 0.15)
(17.00 2.50 0.15)
( 7.00 2.50 0.15)
( 7.00 0.15 0.15)
( 5.00 0.15 0.15)
( 5.00 2.50 0.15)
( 0.00 2.50 0.15)
( 0.00 0.15 0.15)
( 0.00 -0.15 0.15)
);
blocks
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
......@@ -10,6 +10,7 @@ FoamFile
version 2.0;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -63,7 +63,7 @@ solvers
PISO
{
nCorrectors 2;
nCorrectors 3;
nNonOrthogonalCorrectors 0;
// removeSwirl 2;
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// interpolationScheme : choice of
// cell : use cell-centre value only; constant over cells
// cellPoint : use cell-centre and vertex values
// cellPointFace : use cell-centre, vertex and face values.
// 1] vertex values determined from neighbouring cell-centre values
// 2] face values determined using the current face interpolation scheme
// for the field (linear, gamma, etc.)
interpolationScheme cellPointFace;
// setFormat : choice of
// xmgr
// jplot
// gnuplot
// raw
setFormat raw;
// Surface output format. Choice of
// null : suppress output
// foamFile : separate points, faces and values file
// dx : DX scalar or vector format
// vtk : VTK ascii format
// raw : x y z value format for use with e.g. gnuplot 'splot'.
// stl : ascii stl. Does not contain values!
surfaceFormat vtk;
// sampling definition:
//
// Dictionary with fields
// type : type of sampling method
// name : name of samples. Used e.g. as filename
// axis : how to write point coordinate
// ... : depending on method
//
//
// sample: choice of
// uniform evenly distributed points on line
// face one point per face intersection
// midPoint one point per cell, inbetween two face intersections
// midPointAndFace combination of face and midPoint
//
// curve specified points, not nessecary on line, uses
// tracking
// cloud specified points, uses findCell
//
//
// axis: how to write point coordinate. Choice of
// - x/y/z: x/y/z coordinate only
// - xyz: three columns
// (probably does not make sense for anything but raw)
// - distance: distance from start of sampling line (if uses line) or
// distance from first specified sampling point
//
// type specific:
// uniform, face, midPoint, midPointAndFace : start and end coordinate
// uniform: extra number of sampling points
// curve, cloud: list of coordinates
sets
(
IN1
{
type uniform;
axis y;
start (11.8224e-3 -1.0e-3 1.0e-8);
end (11.8224e-3 1.0e-3 1.0e-8);
nPoints 100;
}
IN
{
type uniform;
axis y;
start (12.0864e-3 -1.0e-3 1.0e-8);
end (12.0864e-3 1.0e-3 1.0e-8);
nPoints 50;
}
M1
{
type uniform;
axis y;
start (12.3424e-3 -0.147539e-3 1.0e-8);
end (12.3424e-3 0.147539e-3 1.0e-8);
nPoints 50;
}
M2
{
type uniform;
axis y;
start (12.6032e-3 -0.147539e-3 1.0e-8);
end (12.6032e-3 0.147539e-3 1.0e-8);
nPoints 50;
}
OUT
{
type uniform;
axis y;
start (12.8928e-3 -0.147539e-3 1.0e-8);
end (12.8928e-3 0.147539e-3 1.0e-8);
nPoints 50;
}
IN1_GR1
{
type uniform;
axis y;
start (11.778e-3 -1.0e-3 1.0e-8);
end (11.778e-3 1.0e-3 1.0e-8);
nPoints 100;
}
OUT_GR1
{
type uniform;
axis y;
start (13.14e-3 -2.0e-3 1.0e-8);
end (13.14e-3 2.0e-3 1.0e-8);
nPoints 200;
}
);
surfaces
();
// Fields to sample.
fields
(
// magUMean
UMeanx
);
// ************************************************************************* //
......@@ -12,10 +12,7 @@ refineMeshByCellSet()
cellSet >& log.cellSet.$1
echo "refining primary zone - $1"
refineMesh -dict >& log.refineMesh.$1
rm -rf 0/polyMesh
mv 1e-08/polyMesh 0/
rm -rf 1e-08
refineMesh -dict -overwrite >& log.refineMesh.$1
}
runApplication blockMesh
......
......@@ -18,39 +18,39 @@ convertToMeters 1.0e-3;
vertices
(
( 0.00 -2.50 -0.50)
( 5.00 -2.50 -0.50)
( 5.00 -0.15 -0.50)
( 7.00 -0.15 -0.50)
( 7.00 -2.50 -0.50)
(17.00 -2.50 -0.50)
(17.00 -0.15 -0.50)
(17.00 0.15 -0.50)
(17.00 2.50 -0.50)
( 7.00 2.50 -0.50)
( 7.00 0.15 -0.50)
( 5.00 0.15 -0.50)
( 5.00 2.50 -0.50)
( 0.00 2.50 -0.50)
( 0.00 0.15 -0.50)
( 0.00 -0.15 -0.50)
( 0.00 -2.50 -0.15)
( 5.00 -2.50 -0.15)
( 5.00 -0.15 -0.15)
( 7.00 -0.15 -0.15)
( 7.00 -2.50 -0.15)
(17.00 -2.50 -0.15)
(17.00 -0.15 -0.15)
(17.00 0.15 -0.15)
(17.00 2.50 -0.15)
( 7.00 2.50 -0.15)
( 7.00 0.15 -0.15)
( 5.00 0.15 -0.15)
( 5.00 2.50 -0.15)
( 0.00 2.50 -0.15)
( 0.00 0.15 -0.15)
( 0.00 -0.15 -0.15)
( 0.00 -2.50 0.50)
( 5.00 -2.50 0.50)
( 5.00 -0.15 0.50)
( 7.00 -0.15 0.50)
( 7.00 -2.50 0.50)
(17.00 -2.50 0.50)
(17.00 -0.15 0.50)
(17.00 0.15 0.50)
(17.00 2.50 0.50)
( 7.00 2.50 0.50)
( 7.00 0.15 0.50)
( 5.00 0.15 0.50)
( 5.00 2.50 0.50)
( 0.00 2.50 0.50)
( 0.00 0.15 0.50)
( 0.00 -0.15 0.50)
( 0.00 -2.50 0.15)
( 5.00 -2.50 0.15)
( 5.00 -0.15 0.15)
( 7.00 -0.15 0.15)
( 7.00 -2.50 0.15)
(17.00 -2.50 0.15)
(17.00 -0.15 0.15)
(17.00 0.15 0.15)
(17.00 2.50 0.15)
( 7.00 2.50 0.15)
( 7.00 0.15 0.15)
( 5.00 0.15 0.15)
( 5.00 2.50 0.15)
( 0.00 2.50 0.15)
( 0.00 0.15 0.15)
( 0.00 -0.15 0.15)
);
blocks
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
......@@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
Markdown is supported
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