CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Airfoil 2D Openfoam (https://www.cfd-online.com/Forums/openfoam/189591-airfoil-2d-openfoam.html)

ypno June 23, 2017 04:28

Airfoil 2D Openfoam
 
Hello guys,
I'm trying to solve airfoil 2D problem(NACA 0006)
i have problems about that file controlDict, about liftDir dragDir CofR lRef Aref.
My chord is 3m or 3000 mm and my angle is 6 deg.

functions
{ forces
{ type forceCoeffs;
functionObjectLibs ("libforces.so");
outputControl timeStep;
outputInterval 1;
patches (airfoil);
pName p;
UName U;
rhoName rhoInf;
log true;
rhoInf 1.2;
liftDir (-0.06975647 0.99756405 0);
dragDir (0.99756405 0.06975647 0);
CofR (0 0 0);
pitchAxis (0 0 -1);
magUInf 36;
lRef 2.5;
Aref 2.5;
}}

Saideep June 23, 2017 08:01

Hi,

Never dealt with that specific test case but it looks your function call syntax are wrong.

For example (an example I use for my cases):

Code:

functions
(
    probes
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled        true;
        outputControl  timeStep;
        outputInterval  100;
        probeLocations
        (
            ( 140e-6 140e-6 0.5 )
            ( 140e-6 120e-6 0.5 )
            ( 140e-6 100e-6 0.5 )
            ( 160e-6 140e-6 0.5 )
            ( 170e-6 140e-6 0.5 )
        );

        fields
        (
            p
            U
        );
    }

    fieldAverage1
    {
        type            fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled        true;
        outputControl  outputTime;
        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }

            p
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }
);

If its an error with controlDict I guess this is it however it would be good to see the error the compiler reports.

ypno June 24, 2017 11:56

can I send you my text on email?


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