|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 18 ![]() |
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;
}
);
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] Last edited by vaina74; March 26, 2010 at 15:11. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 24 ![]() |
Hi,
you missed one keyword! See here: http://www.cfd-online.com/Forums/ope...ing-1-6-a.html Cheers, maddalena |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 18 ![]() |
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;
}
}
|
|
|
|
|
|
|
|
|
#4 | |
|
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 24 ![]() |
Ehi Vaina,
Quote:
Cheers, maddalena |
||
|
|
|
||
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 18 ![]() |
I know the lift (or drag) equation is:
![]() where 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:![]() In OpenFOAM all geometries are generated in 3 dimensions and my hydrofoil span is 0.05 mm. So I think is equal to .
|
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 24 ![]() |
Perfect!
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |