CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Equation for a rotating circle outside the origin

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2014, 07:38
Default Equation for a rotating circle outside the origin
  #1
Member
 
Join Date: Jun 2011
Posts: 86
Rep Power: 15
mali28 is on a distinguished road
Hi,

I am modelling a dynamic CFD model without using the dynamic mesh (as it causes the solution to diverge due to highly complex geometry). The circle is rotating about its own origin as well as the origin of the geometry (x=0,z=0). You can think of it as like the earth orbiting the sun (although I am not modelling the solar system). I am defining the shift in origin of a rotating circle away from the axis (0,0) using define_adjust function.

I am using the following equation:
origin x = 0.22483*cos((39.48864+2700*current_time)*M_PI/180);

origin z = 0.22483*sin(((-39.4886+2700*current_time))*M_PI/180);

But this does not work and the origin keeps changing from the actual origin of the circle.
The UDF is working fine I have no issues in coding. And the origin does shift with iteration, but not at the circle. I think it is more of a mathematical problem rather than CFD one.

The way I derived this equation is that I found the origin of the circle (x,z) and I also know the rate of rotation of the circle about the origin (0,0). So I know how much theta changes with time. Which gives me the above equation.

Am I doing anything wrong?

For rotating the circle about the origin, I just specify the rotation of the fluid zone. So, in reality the circle is rotating about its own origin as well as about the geometry origin (0,0).

Please help.

Thank you.
Attached Images
File Type: png problem_specification.png (4.3 KB, 9 views)
mali28 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
rotating and pitching UDF - need someone to double-check this daysley Fluent UDF and Scheme Programming 13 September 11, 2022 12:04
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
rotating problem using NS equation momo_sjx SU2 6 March 15, 2016 10:52
transient simulation of a rotating rectangle icesniffer CFX 1 August 8, 2009 08:25
Need help:about energy equation in CFX Stein CFX 4 July 2, 2009 23:31


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