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

How to assign dynamicMeshDict for 1 full body rotation + 2 ailerons deflection

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2020, 04:21
Default How to assign dynamicMeshDict for 1 full body rotation + 2 ailerons deflection
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi,

I have 3 bodies - 1 wing + 1 left aileron + 1 right aileron.

I need to simulate these 2 motions together:

1. entire full body roll motion - so all the 3 bodies will rotate, no mesh deformation

2. left aileron deflect upwards at constant rotation rate of 5deg/s, mesh will deform

3. right aileron deflect downwards at constant rotation rate of 5deg/s, mesh will deform

So can these be done in OF easily?

I can rotate entire body using this in dynamicMeshDict:

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libfvMotionSolvers.so");

motionSolver solidBody;

cellZone none;


solidBodyMotionFunction rotatingMotion;

rotatingMotionCoeffs
{
origin (0.1 0. 0.);
omega 0.45378560551852569000015959980704; //units of rad/s
axis (1 0 0);
}

I can also deflect a single aileron using this in 0/pointDisplacement:

wing_aileron_left
{
type angularOscillatingDisplacement;
value uniform (0 0 0);
axis (-0.309456346 -0.051111141 -0.949539057);
origin (0.83342853 0.070126234 1.6370375);
angle0 0;
amplitude 0.13439035240356337742312418917362; //units of rad
omega 6.283185307179586476925286766559; //units of rad/s


}


However, combining them doesn't work. Also, is there a simple rotation motion to rotate the aileron? I can only use angularOscillatingDisplacement, which is not exactly what I want.

Can I use dynamicMultiMotionSolverFvMesh? Do I need to define the cellZone?

Thanks.
quarkz is offline   Reply With Quote

Old   October 31, 2020, 04:26
Default
  #2
Member
 
Join Date: Sep 2018
Posts: 53
Rep Power: 8
tecmul is on a distinguished road
I think the relativeMotion tutorial does something similar to what you're after.

About the rotation of the aileron, I suggest modifying the angularOscillatingDisplacment class so that it reads time-value pairs from a file. It's pretty simple to do, just add a member to the class of type TimeFunction1. This way you can specify any kind of rotation you like.
tecmul is offline   Reply With Quote

Old   October 31, 2020, 05:10
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi Tecmul,

Thanks for the suggestions. I will try the modification, although my C++ skill is quite poor. As for the relativeMotion, it's a bit different and I've been trying to modify it but so far I've not been successful. Will keep trying.
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
Fluid Domain moving with Rigid body Lloyd Sullivan CFX 3 August 17, 2018 10:58
UDF for solid body rotation araz Fluent UDF and Scheme Programming 1 January 13, 2016 03:46
Rigid body rotation NOT through the CG? Joe FLUENT 6 May 28, 2010 12:03
How can I view the rotation within a full rotation phase undeadking CFX 1 February 18, 2010 18:06
Rotation of bluff body (fluid-structure interactio James CFX 0 February 25, 2005 06:38


All times are GMT -4. The time now is 22:19.