CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Trying to understand the motorBike tutorial

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 26, 2010, 08:24
Default Trying to understand the motorBike tutorial
  #1
New Member
 
Andreas Jörg
Join Date: Jan 2010
Posts: 20
Rep Power: 16
Andyjoe is on a distinguished road
Hello,

scince I'm able to configure an run simple OpenFoam cases, I went through the motorBike tutorial the last days. Everything worked. So I changed the stl file with a new geometry made in Blender. A big surprise happend: it worked imediately. Motivated by that, I began to write a superSonic case. I still used the "windtunnel" and the snappyHexMeshDict from the motorBike tutorial. After some trying it worked, but at a certain time the simulation stoped, because of too many iterations. Have I done anything wrong or is this a numerical problem?
Scince I want to apply the data in real life, it would be better, to know what I do. So I tryed to understand the motorBike tutorial in detail. But there are almost no explanations anywhere. Here some things, I don't understand:
First to the snappyHexMeshDict:

Code:
geometry
{
    phoenix.stl
    {
        type triSurfaceMesh;
        name phoenix;
    }

    refinementBox
    {
        type searchableBox;
        min (-1.0 -0.7 0.0);
        max ( 8.0  0.7 2.5);
    }
};
I don't understand the refinemantBox. Actually I found some text in the Internet about it, but it's still not clear. Is it a place, from which the refinement of the Mesh starts?

Code:
addLayersControls
{
    relativeSizes true;

    // Per final patch (so not geometry!) the layer information
    layers
    {
        minZ
        {
            nSurfaceLayers 1;
        }
        motorBike_frt-fairing:001%1
        {
            nSurfaceLayers 1;
        }
        motorBike_windshield:002%2
        {
            nSurfaceLayers 1;
        }
        motorBike_rr-wh-rim:005%5
        {
            nSurfaceLayers 1;
        }
        motorBike_rr-wh-rim:010%10
        {
            nSurfaceLayers 1;
        }
        motorBike_fr-wh-rim:011%11
        {
            nSurfaceLayers 1;
        }
        [... and so on ...]
        }
        motorBike_radiator-shadow%86
        {
            nSurfaceLayers 1;
        }
        motorBike_rear-shock-link-shadow%87
        {
            nSurfaceLayers 1;
        }
        motorBike_rear-brake-fluid-pot-bracket-shadow%88
        {
            nSurfaceLayers 1;
        }
        motorBike_rr-wh-chain-hub-shadow%89
        {
            nSurfaceLayers 1;
        }
    }
I don't know, what the %number , for example %88 means. Is it ok for my case, when I write
Code:
addLayersControls
{
    relativeSizes true;

    // Per final patch (so not geometry!) the layer information
    layers
    {
        minZ
        {
            nSurfaceLayers 1;
        }
        phoenix
        {
            nSurfaceLayers 1;
        }
    }
Has anyone an idea, what minZ means?
When I start the case, the terminal shows me, that many patches of the stl file are read in, 8224. So in the boundary file I've got 8224 patches. Is this ok? If yes, why this is done? Wouldn't it be enough to have one wall? Actually the original motorBike boundary file hasn't as much patches, only the patches mentioned in the layer definition in the snappyHexMeshDict.
My boundary file looks like this:
Code:
   8230
(
    frontAndBack
    {
        type            patch;
        nFaces          440;
        startFace       1580732;
    }
    inlet
    {
        type            patch;
        nFaces          64;
        startFace       1581172;
    }
    outlet
    {
        type            patch;
        nFaces          64;
        startFace       1581236;
    }
    lowerWall
    {
        type            wall;
        nFaces          4366;
        startFace       1581300;
    }
    upperWall
    {
        type            patch;
        nFaces          244;
        startFace       1585666;
    }
    phoenix_patch0
    {
        type            wall;
        nFaces          0;
        startFace       1585910;
    }
   [..... all patches look similar....]
    }
    phoenix_patch8223
    {
        type            wall;
        nFaces          0;
        startFace       1585910;
    }
   phoenix_patch8224
    {
        type            wall;
        nFaces          108556;
        startFace       1585910;
    }
Furthermore I wanted to ask something about the decomposeParDict
the header looks like this:
Code:
FoamFile
{
    version         2.0;
    format          ascii;

    root            "/home/penfold/mattijs/foam/mattijs2.1/run/icoFoam";
    case            "cavity";
    instance        "system";
    local           "";

    class           dictionary;
    object          decomposeParDict;
}
Seemingly there is a path of the computer of the developer of this file. Because my root would be /home/andreas. I think I have to change it. But this file is out of the motorBike tutorial. Why there is "case "cavity" "?
Here some other lines of the code:
Code:
manualCoeffs
{
    dataFile        "cellDecomposition";
}
I used the search function of my computer, but couldn't find any file "cellDecomposition".
A lot of questions. I would be thankful if theres anyone who can help me.

Last edited by Andyjoe; January 26, 2010 at 08:43.
Andyjoe is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
motorbike tutorial Jam Racing 2015 OpenFOAM Pre-Processing 8 June 21, 2017 14:10
Motorbike tutorial for snappyhexmesh taking forever to run? massive_turbulence OpenFOAM Running, Solving & CFD 0 April 27, 2014 02:00
motorBIke Tutorial runs with kEpsilon but not with relizableKE bastil OpenFOAM Running, Solving & CFD 0 December 13, 2011 07:53
[snappyHexMesh] Tweaked motorbike tutorial doesn't show my icosphere mfiandor OpenFOAM Meshing & Mesh Conversion 0 October 9, 2011 18:39
Wrong file in motorBike tutorial? lovecraft22 OpenFOAM 3 August 4, 2011 13:03


All times are GMT -4. The time now is 23:01.