vaina74 |
March 26, 2010 07:57 |
forces on a hydrofoil
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?
|