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

Prevent whole domain rotating in pitching airfoil

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By quarkz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2020, 22:01
Default Prevent whole domain rotating in pitching airfoil
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 403
Rep Power: 19
quarkz is on a distinguished road
Hi,

I have a pitching airfoil case. After reading tutorials, I tried to run my case and it worked and the whole domain rotates together with the airfoil. But I prefer my domain to stay fixed and only the mesh region near the airfoil moves and morphs. How can I do that?

I have also tried to use topoSet to select a region around the airfoil (airfoil) which is supposed to rotate together with the airfoil. It works but then the domain outside the region is entirely fixed with the mesh becomes distorted. So how should I handle it? I have attached the relevant files and pictures. Thanks

dynamicMeshDict

Code:
dynamicFvMesh      dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

motionSolver solidBody;

cellZone        airfoil;//none;

solidBodyMotionFunction  oscillatingRotatingMotion;
  
oscillatingRotatingMotionCoeffs
	{
	origin (0.25 0.007 0.125);
	amplitude       (0.0 0.0 10.);  //units of deg
    omega           0.698;       //units of rad/s
	//axis (0 0 0);
	}
topoSetDict

Code:
actions
(
  {
    name    airfoil;
    type    cellSet;
    action  new;
    source  boxToCell;
    sourceInfo
    {
      box (-1 -1 -1) (3 1 1);
    }
  }
  {
         name    airfoil;
         type    cellZoneSet;
         action  new;
         source  setToCellZone;
         sourceInfo
         {
                 set airfoil;
        }
     }
);
pointDisplacement

Code:
dimensions      [0 1 0 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    wing
    {
        type            calculated;
        value           uniform (0 0 0);
    }

    front
    {
        type            empty;
    }

    back
    {
        type            empty;
    }

    ".*"
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
	
	airfoil
    {
        
        type        solidBodyMotionDisplacement;
        solidBodyMotionFunction  oscillatingRotatingMotion;
        oscillatingRotatingMotionCoeffs
        {
           origin (0.25 0.007 0.125);
           //axis        (0 0 1);
           amplitude       (0.0 0.0 10);  //units of deg
		   omega           0.698;       //units of rad/s
        }
    }
}
Attached Images
File Type: jpg Capture.jpg (188.7 KB, 20 views)
File Type: jpg Capture2.JPG (165.0 KB, 19 views)
quarkz is offline   Reply With Quote

Old   September 16, 2020, 02:57
Default
  #2
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 403
Rep Power: 19
quarkz is on a distinguished road
Hi all,

I finally managed to resolve the problem. I have posted an example here for the benefit of everyone.

It is a naca0012 airfoil with a naca008 flap behind. The flap is supposed to rotate.

https://app.box.com/s/s968xxa6pyfum8esjjs50ttfpr3h7a7o

Hope it helps!
DeadLee likes this.
quarkz is offline   Reply With Quote

Old   September 28, 2020, 17:52
Default
  #3
New Member
 
James Rodgers
Join Date: Jul 2013
Posts: 6
Rep Power: 13
jrwrodgers is on a distinguished road
Could you re-post your solution to this please?! I'm struggling with a similar problem. Thank you
jrwrodgers is offline   Reply With Quote

Old   October 1, 2020, 01:29
Default
  #4
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 403
Rep Power: 19
quarkz is on a distinguished road
Hi jrwrodgers, I have posted the solution with the case file. Did you try it?
quarkz 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
CFX rotating Domain cfxbeginner CFX 25 June 21, 2017 11:00
Periodic Pressure drop cfd_begin CFX 10 May 25, 2017 07:09
Domain format problem on airfoil flow simulation andrenonaka CFX 14 December 7, 2015 00:42
Problem with restart solution in shape_optimization.py robyTKD SU2 Shape Design 21 May 29, 2013 09:26
Rotating Domain Szczepan CFX 8 January 19, 2013 09:27


All times are GMT -4. The time now is 20:44.