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

forces on a hydrofoil

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2010, 08:57
Default forces on a hydrofoil
  #1
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
I included a subroutine in the controlDict file to evaluate the lift and drag coefficients on a blade section of a marine propeller:

Code:
functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); // Lib to load
patches (wall); // change to your patch name
rhoName rhoInf;
rhoInf 1025; // Reference density for fluid
CofR (0 0 0); // Origin for moment calculations
}
forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
patches (wall); // change to your patch name
rhoName rhoInf;
rhoInf 1025;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 0);
magUInf 7.30;
lRef 0.305;
Aref 0,00306;
}
);
I set the hydrofoil chord as lRef and the wetted surface as Aref (or is Aref its projection on the chord?) and this is the output:

Code:
[0] 
[0] 
[0] keyword outputControl is undefined in dictionary "::functions::forces"
[0] 
[0] file: ::functions::forces from line 56 to line 60.
[0] 
[0]     From function dictionary::lookupEntry(const word&, bool, bool) const
[0]     in file db/dictionary/dictionary.C at line 388.
[0] 
FOAM parallel run exiting
[0] 
[1] 
[1] 
[1] keyword outputControl is undefined in dictionary "::functions::forces"
[1] 
[1] file: ::functions::forces from line 56 to line 60.
[1] 
[1]     From function dictionary::lookupEntry(const word&, bool, bool) const
[1]     in file db/dictionary/dictionary.C at line 388.
[1] 
FOAM parallel run exiting
[1]
What's the problem, please?

Last edited by vaina74; March 26, 2010 at 15:11.
vaina74 is offline   Reply With Quote

Old   March 28, 2010, 17:09
Smile
  #2
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hi,
you missed one keyword! See here: http://www.cfd-online.com/Forums/ope...ing-1-6-a.html
Cheers,

maddalena
maddalena is offline   Reply With Quote

Old   March 29, 2010, 13:49
Default
  #3
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Thanks, Maddalena. First I merged all the threads about lift and drag, then I found the nacaAirfoil tutorial (in compressible/sonicFoam/ras). I included in my controlDict:
Code:
functions
{
    forces
    {
        type        forces;
        functionObjectLibs ( "libforces.so" );  // lib to load
        outputControl timeStep;
        outputInterval 1;
        patches
        (
            wall  // change to your patch name
        );
        // name of fields
        pName       p;
        UName       U;
        log         true; // dump to file
        rhoInf      1025;
        CofR        ( 0 0 0 );
    }
    forcesCoeffs
    {
        type        forceCoeffs;
        functionObjectLibs ( "libforces.so" );  // lib to load
        outputControl timeStep;
        outputInterval 1;
        patches
        (
            wall  // change to your patch name
        );
        // name of fields
        pName       p;
        UName       U;
        log         true; // dump to file
        rhoInf      1025;
        CofR        ( 0 0 0 );
        liftDir     ( 0 1 0 );
        dragDir     ( 1 0 0 );
        pitchAxis   ( 0 0 0 );
        magUInf     7.30;
        lRef        0.305;
        Aref        0.001525;
    }
}
I'm still in doubt: is Aref the projection of the area on the chord or the whole wetted surface?
vaina74 is offline   Reply With Quote

Old   March 29, 2010, 17:10
Default
  #4
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Ehi Vaina,
Quote:
Is Aref the projection of the area on the chord or the whole wetted surface?
Well, I do not know if something changes with hydrofoils. In any case, the definition of aerodynamic force coefficient for an airfoil (2d) is c_F = F/(0.5 * rhoInf * v_inf^2 *c), thus I would set Aref = 1. What do you think?
Cheers,
maddalena
maddalena is offline   Reply With Quote

Old   March 30, 2010, 07:19
Default
  #5
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
I know the lift (or drag) equation is:

C_L= \frac{L}{\frac{1}{2}{\rho}v^2A_{ref}}

where A_{ref} is planform area. In the section lift coefficient (based on the concept of an infinite wing of non-varying cross-section), the lift is defined per unit span of the wing:

c_l= \frac{L}{\frac{1}{2}{\rho}v^2c}

In OpenFOAM all geometries are generated in 3 dimensions and my hydrofoil span is 0.05 mm. So I think A_{ref} is equal to c\cdot span.
vaina74 is offline   Reply With Quote

Old   March 30, 2010, 08:30
Thumbs up
  #6
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Perfect!
maddalena is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Reading forces from previous time step within solver SD@TUB OpenFOAM Programming & Development 5 April 24, 2023 12:51
Forces calulated through pressure LVDH OpenFOAM Post-Processing 2 February 26, 2010 04:15
Calculate forces without hydrostatic pressure geir_oye FLUENT 4 November 12, 2009 10:12
changes to forces in 1.6 linnemann OpenFOAM Running, Solving & CFD 0 July 30, 2009 09:49
Valve Forces in CFdesign Mike Clapp Main CFD Forum 3 March 8, 2001 15:09


All times are GMT -4. The time now is 02:13.