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

Pitching and spinning of a slender body

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2018, 06:43
Default Pitching and spinning of a slender body
  #1
New Member
 
Amit
Join Date: Jul 2014
Posts: 12
Rep Power: 11
Amit_Pawarpawar is on a distinguished road
I am trying to simulate a case of a pitching and spinning body using define_cg_motion
by putting a sinusoidal function for pitching and a constant rps of 10 to the roll axis.

I get pitching correctly but the rolling happens on an axis offset to the body axis.
please mention how can I rectify this

#include "udf.h"
#include <math.h>
static real omegaz = 0.0;
DEFINE_CG_MOTION(pitch, dt, vel, omega, time, dtime)
{

omegaz = 0.523599*(2*(22/7)*4*cos(2*(22/7)*4*time)) ;
omega[1] = 0.0;
omega[0]= 10.0;
omega[2] = -omegaz;
}
Amit_Pawarpawar 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



All times are GMT -4. The time now is 16:43.