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

How can I define lateral axis as axis of rotation in Ansys UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2018, 04:17
Exclamation How can I define lateral axis as axis of rotation in Ansys UDF?
  #1
New Member
 
Aamir Sultan
Join Date: May 2018
Posts: 12
Rep Power: 8
AamirSultan is on a distinguished road
Hello Everyone ,
I am giving sinusoidal oscillatory motion to a 3D airfoil about longitudinal axis (lateral oscillations ) . How can I define "X-axis" as axis of rotation .
As you know that by default Z-axis is axis of rotation .
My Code is as follow ;

# include "udf.h"
DEFINE_ZONE_MOTION(sinusoidal,omega,axis,origin,ve locity,time,dtime)
{
real w = 2.0*M_PI*0.5; real wt = w*time; real axis[1]; real th, thd;
th = -0.017453*sin(wt); thd = -0.017453*w*cos(wt);
*omega = thd;
}
AamirSultan is offline   Reply With Quote

Old   October 13, 2018, 08:01
Default
  #2
Member
 
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10
moh_zain is on a distinguished road
Hi see http://users.ugent.be/~mvbelleg/fludf-12-0.pdf


and search for cg motion
moh_zain 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
UDF to get the average temperature of a face and use it to define a property gdb Fluent UDF and Scheme Programming 19 November 3, 2022 04:11
How to define moving wall rotation axis origin in Dynamic mesh touyet FLUENT 1 July 4, 2016 10:24
using define mass transfer udf for cavitation Komon Fluent UDF and Scheme Programming 14 June 21, 2016 03:50
Can you help me with a problem in ansys static structural solver? sourabh.porwal Structural Mechanics 0 March 27, 2016 18:07
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


All times are GMT -4. The time now is 13:40.