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

udf about rotation-axis

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2016, 08:32
Default udf about rotation-axis
  #1
New Member
 
Hong
Join Date: Jun 2016
Posts: 7
Rep Power: 9
278379rea is on a distinguished road
hi every one!

I am trying to use udf in fluent to simulate NACA0012 airfoil with this dynamic equation:


I am just a beginner of the udf, and I think I can simulate this case by DEFINE_CG_MOTION. But how to change the rotation aixs or define it? The omega[] means rotation by x/y/z axis, right? I think I need to give the axis a Uy to describe the motion. So who can tell me how to define my axis rather than xyz axis?
278379rea is offline   Reply With Quote

Old   November 5, 2016, 14:34
Default
  #2
New Member
 
Guoqing Zhang
Join Date: Nov 2016
Posts: 2
Rep Power: 0
guoqingzhang is on a distinguished road
Quote:
Originally Posted by 278379rea View Post
hi every one!

I am trying to use udf in fluent to simulate NACA0012 airfoil with this dynamic equation:


I am just a beginner of the udf, and I think I can simulate this case by DEFINE_CG_MOTION. But how to change the rotation aixs or define it? The omega[] means rotation by x/y/z axis, right? I think I need to give the axis a Uy to describe the motion. So who can tell me how to define my axis rather than xyz axis?
Hi, Hong, I had the same problem that sepecify the rotational axis of arm which is parallel with the Z-axis in DEFINE_CG_MOTION. I found a may-helpful solution as shown below, but unfortunetly it didn't work as i expected. Did you solve the problem? If yes, could you send me a e-mail? guoqingzhang_1989@126.com. Thanks a lot.

# include "udf.h"
# define a0 15791.0742
DEFINE_CG_MOTION(arm_motion,dt,cg_vel,cg_omega,tim e,dtime)
{
real NV_VEC(axis), NV_VEC(origin);

NV_D(origin, =, -37.32952, 5.627642, 0.0);
NV_D(axis, =, 0.0, 0.0, 1.0);

if(time>=0&&time<0.003)
{
cg_omega[2]= -a0*time;
}
else if(time>=0.003&&time<0.007)
{
cg_omega[2]= -a0*0.003;
}
else if(time>=0.007&&time<0.010)
{
cg_omega[2]= -(a0*0.010-a0*time);
}
else if(time>=0.020&&time<0.023)
{
cg_omega[2]= a0*(time-0.02);
}
else if(time>=0.023&&time<0.027)
{
cg_omega[2]= a0*0.003;
}
else if(time>=0.027&&time<0.030)
{
cg_omega[2]= a0*0.010-a0*(time-0.02);
}
}
guoqingzhang 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
Unsteady Boundary Profile with data file Arianna FLUENT 34 July 29, 2019 16:35
Problem with tilted axis Rotation Luffy OpenFOAM Pre-Processing 3 August 26, 2016 09:37
Two rotation axis fluent AP3181 FLUENT 0 September 9, 2015 05:11
UDF Dynamic Meshing for Rotation and Translation Aidan100 Fluent UDF and Scheme Programming 2 August 16, 2015 23:39
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. ksiegs2 Fluent UDF and Scheme Programming 0 February 27, 2011 12:55


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