ENH: Smaller, shorter, faster wingMotion tut.

This commit is contained in:
graham
2011-04-21 16:09:44 +01:00
parent 5bb2ac5ec7
commit cd083dc832
9 changed files with 57 additions and 62 deletions

View File

@ -23,7 +23,7 @@ cp -r 0.org 0
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
mv 0/pointDisplacement.unmapped 0/pointDisplacement mv 0/pointDisplacement.unmapped 0/pointDisplacement
runApplication decomposePar runApplication decomposePar
runParallel `getApplication` 3 runParallel `getApplication` 4
runApplication reconstructPar runApplication reconstructPar
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -35,7 +35,7 @@ boundaryField
); );
velocity (0 0 0); velocity (0 0 0);
acceleration (0 0 0); acceleration (0 0 0);
angularMomentum (0 0 -0.5); angularMomentum (0 0 -2.0);
torque (0 0 0); torque (0 0 0);
rhoName rhoInf; rhoName rhoInf;
rhoInf 1; rhoInf 1;

View File

@ -20,38 +20,38 @@ FoamFile
topAndBottom topAndBottom
{ {
type patch; type patch;
nFaces 150; nFaces 72;
startFace 76473; startFace 25168;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 48; nFaces 40;
startFace 76623; startFace 25240;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 48; nFaces 62;
startFace 76671; startFace 25280;
} }
front front
{ {
type empty; type empty;
nFaces 38129; nFaces 12559;
startFace 76719; startFace 25342;
} }
back back
{ {
type empty; type empty;
nFaces 38129; nFaces 12559;
startFace 114848; startFace 37901;
} }
wing wing
{ {
type wall; type wall;
nFaces 778; nFaces 378;
startFace 152977; startFace 50460;
} }
) )

View File

@ -23,7 +23,7 @@ startTime 0;
stopAt endTime; stopAt endTime;
endTime 1; endTime 0.6;
deltaT 1e-5; deltaT 1e-5;

View File

@ -15,27 +15,22 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 3; numberOfSubdomains 4;
method simple; method simple;
simpleCoeffs simpleCoeffs
{ {
n ( 1 3 1 ); n ( 2 2 1 );
delta 0.001; delta 0.001;
} }
hierarchicalCoeffs hierarchicalCoeffs
{ {
n ( 3 2 1 ); n ( 2 2 1 );
delta 0.001; delta 0.001;
order xyz; order xyz;
} }
manualCoeffs
{
dataFile "cellDecomposition";
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -20,38 +20,38 @@ FoamFile
topAndBottom topAndBottom
{ {
type patch; type patch;
nFaces 150; nFaces 72;
startFace 76473; startFace 25168;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 48; nFaces 40;
startFace 76623; startFace 25240;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 48; nFaces 62;
startFace 76671; startFace 25280;
} }
front front
{ {
type empty; type empty;
nFaces 38129; nFaces 12559;
startFace 76719; startFace 25342;
} }
back back
{ {
type empty; type empty;
nFaces 38129; nFaces 12559;
startFace 114848; startFace 37901;
} }
wing wing
{ {
type wall; type wall;
nFaces 778; nFaces 378;
startFace 152977; startFace 50460;
} }
) )

View File

@ -19,19 +19,19 @@ convertToMeters 1;
vertices vertices
( (
(-2.5 -4.8 -0.1) (-1.2 -2.2 -0.1)
( 10 -4.8 -0.1) ( 5 -2.2 -0.1)
( 10 4.8 -0.1) ( 5 2.2 -0.1)
(-2.5 4.8 -0.1) (-1.2 2.2 -0.1)
(-2.5 -4.8 0.1) (-1.2 -2.2 0.1)
( 10 -4.8 0.1) ( 5 -2.2 0.1)
( 10 4.8 0.1) ( 5 2.2 0.1)
(-2.5 4.8 0.1) (-1.2 2.2 0.1)
); );
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) (75 48 1) simpleGrading (1 1 1) hex (0 1 2 3 4 5 6 7) (36 24 1) simpleGrading (1 1 1)
); );
edges edges

View File

@ -20,38 +20,38 @@ FoamFile
topAndBottom topAndBottom
{ {
type patch; type patch;
nFaces 150; nFaces 72;
startFace 2098769; startFace 495985;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 48; nFaces 72;
startFace 2098919; startFace 496057;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 48; nFaces 204;
startFace 2098967; startFace 496129;
} }
front front
{ {
type empty; type empty;
nFaces 38129; nFaces 12559;
startFace 2099015; startFace 496333;
} }
back back
{ {
type empty; type empty;
nFaces 38120; nFaces 12559;
startFace 2137144; startFace 508892;
} }
wing_5degrees.obj_WALL10 wing_5degrees.obj_WALL10
{ {
type wall; type wall;
nFaces 49792; nFaces 12096;
startFace 2175264; startFace 521451;
} }
) )

View File

@ -62,10 +62,10 @@ castellatedMeshControls
// actually be a lot less. // actually be a lot less.
maxGlobalCells 2000000; maxGlobalCells 2000000;
// The surface refinement loop might spend lots of iterations refining just a // The surface refinement loop might spend lots of iterations refining just
// few cells. This setting will cause refinement to stop if <= minimumRefine // a few cells. This setting will cause refinement to stop if <=
// are selected for refinement. Note: it will at least do one iteration // minimumRefine are selected for refinement. Note: it will at least do one
// (unless the number of cells to refine is 0) // iteration (unless the number of cells to refine is 0)
minRefinementCells 100; minRefinementCells 100;
// Number of buffer layers between different levels. // Number of buffer layers between different levels.
@ -98,7 +98,7 @@ castellatedMeshControls
wing_5degrees.obj wing_5degrees.obj
{ {
// Surface-wise min and max refinement level // Surface-wise min and max refinement level
level (6 6); level (5 5);
} }
} }
@ -124,7 +124,7 @@ castellatedMeshControls
refinementBox refinementBox
{ {
mode inside; mode inside;
levels ((1e15 3)); levels ((1e15 2));
} }
} }