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

lift and drag on ship superstructures

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 8, 2010, 09:21
Default lift and drag on ship superstructures
  #1
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
I'm going to study the aerodynamic aspect of ship superstructures. I started with a simple 2D model (see pic 1-2), a top view of a superstructure (abot 30x80 m). I used the simpleFoam solver (with wall functions) and I'd like to have some suggestions. I already studied airfoils and propeller blades in water (convergence before 1000 iterations and correct y+), but now I think I have a few problems about convergence and y+. Here are my boundary conditions:
p
Code:
#include        "initialConditions"

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform $pressure;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    #include "frontBackPatches"

    outlet
    {
        type            fixedValue;
        value           $internalField;
    }

    main_body
    {
        type            kqRWallFunction;
        value           $internalField;
    }
}
U
Code:
#include        "initialConditions"

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform $flowVelocity;

boundaryField
{
    #include "fixedInlet"

    #include "frontBackPatches"

    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           $internalField;
    }

    main_body
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
}
k
Code:
#include        "initialConditions"

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform $turbulentK;

boundaryField
{
    #include "fixedInlet"

    #include "frontBackPatches"

    main_body
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }
}
omega
Code:
#include        "initialConditions"

dimensions      [0 0 -1 0 0 0 0];

internalField   uniform $turbulentOmega;

boundaryField
{
    #include "fixedInlet"

    #include "frontBackPatches"

    main_body
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }
}
My system settings are:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default steadyState;
}

gradSchemes
{
    default         Gauss linear;
    grad(p)         Gauss linear;
    grad(U)         Gauss linear;
//    grad(U)         cellLimited Gauss linear 1;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss linearUpwindV Gauss linear;
    div(phi,k)      Gauss upwind;
    div(phi,omega)  Gauss upwind;
    div((nuEff*dev(grad(U).T()))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
//    default         Gauss linear limited 0.5;
//    default         Gauss linear limited 0.333;
}

interpolationSchemes
{
    default         linear;
    interpolate(U)  linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p;
}
and
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver           GAMG;
        tolerance        1e-7;
        relTol           0.1;
        smoother         GaussSeidel;
        nPreSweeps       0;
        nPostSweeps      2;
        cacheAgglomeration on;
        agglomerator     faceAreaPair;
        nCellsInCoarsestLevel 10;
        mergeLevels      1;
    };

    U
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-8;
        relTol           0.1;
        nSweeps          1;
    };

    k
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-8;
        relTol           0.1;
        nSweeps          1;
    };

    omega
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-8;
        relTol           0.1;
        nSweeps          1;
    };
}

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    convergenceCriterion 1e-5;
}

relaxationFactors
{
    p               0.3;
    U               0.7;
    k               0.7;
    omega           0.7;
}
Maybe the mesh is bad, but I tried to refine it and I obtain worse C_L, C_L and y+. Any suggestions about domain dimensions, fvSchemes, initial conditions (\kappa=0.015 and \omega=80) and so on?

I thought about a different mesh (see pic3) but I'm in troubles with inlet and outlet boundary conditions for p and U. I'd like to set different apparent winds, so I believe I can't establish which patch is an inlet or outlet one beforehand. Are there any derived boundary conditions, similar to inletOutlet and outletInlet, to that aim?

Thanks for your help.
Attached Images
File Type: jpg pic1.jpg (93.0 KB, 24 views)
vaina74 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
Lift and drag calculation Franny CFX 16 November 27, 2019 13:47
Correct lift but wrong pressure drag - possible? zx Main CFD Forum 4 July 27, 2007 23:38
Lift and Drag Coefficients Reliability Luis FLUENT 2 December 27, 2005 14:45
Drag and Lift Daniel Fisher Phoenics 2 April 8, 2005 03:51
drag and lift coefficient Noé Siemens 5 July 13, 2004 10:21


All times are GMT -4. The time now is 11:50.