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

Airfoil 2D Openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2017, 05:28
Default Airfoil 2D Openfoam
  #1
New Member
 
ypno
Join Date: Jun 2017
Posts: 2
Rep Power: 0
ypno is on a distinguished road
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;
}}
ypno is offline   Reply With Quote

Old   June 23, 2017, 09:01
Default
  #2
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
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.
Saideep is offline   Reply With Quote

Old   June 24, 2017, 12:56
Default
  #3
New Member
 
ypno
Join Date: Jun 2017
Posts: 2
Rep Power: 0
ypno is on a distinguished road
can I send you my text on email?
ypno is offline   Reply With Quote

Reply


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
Ffd_control_point_2d feiyi SU2 4 September 30, 2019 13:42
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 11:19
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


All times are GMT -4. The time now is 01:04.