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

Angular velocity in fluent UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2019, 05:16
Default Angular velocity in fluent UDF
  #1
New Member
 
gh
Join Date: Oct 2019
Posts: 2
Rep Power: 0
gh_100 is on a distinguished road
Hello everyone,I'm using fluent UDF to define angular velocity for dynamic grid simulation, and the angular velocity was set 5ras/s,but the result of fluent calculation is different from what I defined.
for example,the angular velocity was 5ras/s,the time to calculate one circle should be 2*pi/5=1.25s.But I calculated for a long time (such as 20s) and didn't reach a circle(2*pi).

the code is below:

DEFINE_CG_MOTION(side2,dt,vel,omega,time,dtime)
{
real flow_time = CURRENT_TIME;

if(flow_time >=0)
omega[2]=-5;

}


does anyone can help me?
Thank you in advance
gh_100 is offline   Reply With Quote

Old   November 1, 2019, 00:17
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,001
Rep Power: 17
AlexanderZ will become famous soon enough
what about
Code:
DEFINE_CG_MOTION(side2,dt,vel,omega,time,dtime)
{
omega[2]=-5;
}
how it works?
__________________
best regards


******************************
press LIKE if this message helped you

How to ask questions:
https://www.cfd-online.com/Forums/site-help-feedback-discussions/175429-guide-how-ask-question-forums.html#post612025
AlexanderZ is offline   Reply With Quote

Old   November 1, 2019, 02:17
Default
  #3
New Member
 
gh
Join Date: Oct 2019
Posts: 2
Rep Power: 0
gh_100 is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
what about
Code:
DEFINE_CG_MOTION(side2,dt,vel,omega,time,dtime)
{
omega[2]=-5;
}
how it works?
hello AlexanderZ
the omega[2] represents rotation around the Z axis, with a size of 5 radians / s.

thank you .
gh_100 is offline   Reply With Quote

Old   November 1, 2019, 03:53
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,001
Rep Power: 17
AlexanderZ will become famous soon enough
check if it works or not
__________________
best regards


******************************
press LIKE if this message helped you

How to ask questions:
https://www.cfd-online.com/Forums/site-help-feedback-discussions/175429-guide-how-ask-question-forums.html#post612025
AlexanderZ is offline   Reply With Quote

Reply

Tags
angular velocity udf 2*pi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to solve UDF compilation problems in Fluent. pakk Fluent UDF and Scheme Programming 16 September 10, 2018 03:48
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 07:08
UDF error - parabolic velocity profile - 3D turbine Zaqie Fluent UDF and Scheme Programming 9 June 25, 2016 20:08
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
(UDF) Sinusoidal inlet velocity in Fluent star Fluent UDF and Scheme Programming 1 December 19, 2013 17:23


All times are GMT -4. The time now is 10:30.