Tutorial update

This commit is contained in:
Hrvoje Jasak 2016-01-14 13:43:24 +00:00
parent 3ba865dadd
commit 20e7bdd794
5 changed files with 73 additions and 33 deletions

View file

@ -0,0 +1,34 @@
/*--------------------------------*- 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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
2
(
sides
{
type patch;
nFaces 2;
startFace 999;
}
empty
{
type empty;
nFaces 4000;
startFace 1001;
}
)
// ************************************************************************* //

View file

@ -19,8 +19,8 @@ runApplication simpleFoam
# Copy the mesh from the steady state case and map the results to a # Copy the mesh from the steady state case and map the results to a
# mesh motion case, then solve transient. # mesh motion case, then solve transient.
cd ../wingMotion2D_pimpleDyMFoam cd ../wingMotion2D_pimpleDyMFoam
cp -r ../wingMotion2D_simpleFoam/constant/polyMesh/* constant/polyMesh/ \cp -r ../wingMotion2D_simpleFoam/constant/polyMesh constant/polyMesh
cp -r 0.org 0 \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

View file

@ -3,7 +3,7 @@
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 | | \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
@ -21,37 +21,37 @@ FoamFile
{ {
type patch; type patch;
nFaces 150; nFaces 150;
startFace 76473; startFace 71816;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 48; nFaces 48;
startFace 76623; startFace 71966;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 48; nFaces 48;
startFace 76671; startFace 72014;
} }
wing wing
{ {
type wall; type wall;
nFaces 778; nFaces 778;
startFace 76719; startFace 72062;
} }
back symBack
{ {
type empty; type empty;
nFaces 38129; nFaces 35801;
startFace 77497; startFace 72840;
} }
front symFront
{ {
type empty; type empty;
nFaces 38129; nFaces 35801;
startFace 115626; startFace 108641;
} }
) )

View file

@ -3,7 +3,7 @@
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 | | \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
@ -21,37 +21,37 @@ FoamFile
{ {
type patch; type patch;
nFaces 150; nFaces 150;
startFace 76473; startFace 71816;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 48; nFaces 48;
startFace 76623; startFace 71966;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 48; nFaces 48;
startFace 76671; startFace 72014;
} }
wing wing
{ {
type wall; type wall;
nFaces 778; nFaces 778;
startFace 76719; startFace 72062;
} }
back symBack
{ {
type empty; type empty;
nFaces 38129; nFaces 35801;
startFace 77497; startFace 72840;
} }
front symFront
{ {
type empty; type empty;
nFaces 38129; nFaces 35801;
startFace 115626; startFace 108641;
} }
) )

View file

@ -3,7 +3,7 @@
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 | | \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
@ -15,37 +15,43 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5 6
( (
topAndBottom topAndBottom
{ {
type patch; type patch;
nFaces 150; nFaces 150;
startFace 7077; startFace 2087919;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 48; nFaces 48;
startFace 7227; startFace 2088069;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 48; nFaces 48;
startFace 7275; startFace 2088117;
} }
symFront symFront
{ {
type symmetryPlane; type symmetryPlane;
nFaces 3600; nFaces 35801;
startFace 7323; startFace 2088165;
} }
symBack symBack
{ {
type symmetryPlane; type symmetryPlane;
nFaces 3600; nFaces 35792;
startFace 10923; startFace 2123966;
}
wing_5degrees.obj_WALL10
{
type wall;
nFaces 49792;
startFace 2159758;
} }
) )