CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to calculate airflow over an object? (keep getting errors)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2014, 17:57
Default How to calculate airflow over an object? (keep getting errors)
  #1
New Member
 
Join Date: Nov 2014
Posts: 2
Rep Power: 0
kev717 is on a distinguished road
I'm not sure how to get OpenFOAM to calculate the flow over a simply-shaped object using the icoFoam solver.

I've tried defining a boundary in which I define the patches for the object (similar to the motorcycle tutorial), however when specifying my initial conditions, it will crash if I specify either an internal uniform field that is non-zero and will return all values of zero for pressure and velocity if I do otherwise (suggesting my generated mesh is considered internal). Additionally, it will crash if my velocity at the inlet and outlet faces is more than 1.

I've also tried defining only the mesh that is being analysed and using the internalField value in the 0/U file to define the velocity condition, but that also causes openFoam to crash after a few steps (complaining about a floating point exception).

I'm still quite new to openFoam so any guidance would be appreciated. Below is my blockMeshDict file with the defined vertices.

Once I define the rest of the mesh vertices, I intend to model airflow over a small cardboard aeroplane (so far I just have the wing)

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant/polyMesh";
    object      blockMeshDict;
}

convertToMeters 0.01;

vertices
(
//Box containing everything
    (200 -100 50)//vertex 0
        (200 -100 -200)
        (0 -100 -200)
        (0 -100 50)
        (200 100 50)
        (200 100 -200)
        (0 100 -200)
    (0 100 50)//vertex 7

//Mesh points for object of interest
//NB: Mesh points are defined by a reference drawing
    (0 0 0) //point 1; vertex 8
    (83 0 0) //point 2 ; vertex 9
    (83 1.7025 13.866) //point 3 ; 10
    (0 1.7025 13.866) //point 4 ; 11
    (0 -0.9748000000000001 14.11) //point 5 ; 12
    (83 -0.9748000000000001 14.11) //point 6 ; 13
    (83 -2 0) //point 7 ; 14
    (0 -2 0) //point 8 ; 15

); 

blocks
(
    hex ( 0 1 2 3 4 5 6 7 )
    (50 50 50)
    simpleGrading (1 1 1)

    hex ( 12 13 14 15 11 10 9 8 )
    (50 50 50)
    simpleGrading (1 1 1)
);

boundary
(
    
    defaultFaces
    {
    type wall;
    faces
    (
        ( 12 15 14 13 )
        ( 8 9 14 15 )
        ( 11 8 15 12 ) //SYMMETRY PLANE?
        ( 10 11 12 13 )
        ( 9 10 13 14 )
        ( 8 11 10 9 )
    );
    }

    inlet
    {
    type patch;
    faces
    (
      (0 4 7 3)
    );
    }
  
    outlet
    {
    type patch;
    faces
    (
      (1 2 6 5)
    );
    }

    TopLeftRight
    {
    type patch; //type wall; EDIT: just fixed this -- still not quite working right though.
    faces
    (
      (4 5 6 7)
      (0 1 5 4)
      (0 3 2 1)
    );
    }
    
    Symmetry
    {
    type symmetryPlane;
    faces
    (
      (2 3 7 6)
        (11 8 15 12)
    );
    }
);
Thank-you for any help you can offer
kev717 is offline   Reply With Quote

Reply

Tags
airflow simulation, icofoam, openfoam 2.3.0


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
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 09:08
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
OpenFOAM 1.6.x - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 68 April 22, 2013 11:03
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 10:16
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 16:45.