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

UDF for defining CG_Motion of a rigid ball

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2014, 06:50
Default UDF for defining CG_Motion of a rigid ball
  #1
New Member
 
Sufyan Abushaala
Join Date: Feb 2014
Location: Huddersfield, UK
Posts: 18
Rep Power: 12
Sufyan Abushaala is on a distinguished road
Dear all

I am simulating a a rigid ball moving along a horizontal pipe, and I was wondering if any body can help writing a UDF for CG motion of that ball.

The problem is all about controlling the ball motion and keep it away from the pipe wall in order to prevent the collision between them.

I would be grateful if someone could provide a help on that.

Regards,
Sufyan Abushaala is offline   Reply With Quote

Old   November 18, 2014, 04:22
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Are you prescribing the motion of the ball or is it moving along the some fluid?
vasava is offline   Reply With Quote

Old   November 18, 2014, 05:43
Default
  #3
New Member
 
Sufyan Abushaala
Join Date: Feb 2014
Location: Huddersfield, UK
Posts: 18
Rep Power: 12
Sufyan Abushaala is on a distinguished road
Dear Vasava

I am not prescribing the ball motion, it is flown by the fluid. I am using a UDF to define the ball mass and its moments of inertia.
I have an error once the ball hits the pipe wall, and I need to keep it away from that wall. It is likely controlling the motion range in both Y and Z directions.

Any help please?
Regards,
Sufyan Abushaala is offline   Reply With Quote

Old   November 18, 2014, 07:25
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Quote:
I have an error once the ball hits the pipe wall, and I need to keep it away from that wall.
It would make more sense to me to fix the error. If there is no physical mechanism that prevents the ball from hitting the pipe wall, it does not make sense to put such a mechanism in your simulation.
pakk is offline   Reply With Quote

Old   November 18, 2014, 07:29
Default
  #5
New Member
 
Sufyan Abushaala
Join Date: Feb 2014
Location: Huddersfield, UK
Posts: 18
Rep Power: 12
Sufyan Abushaala is on a distinguished road
Dear Pakk

You are right Pakk. Although that can be fixed using the contact detection feature added recently to fluent, but it is still new and not easy to apply.
So, having some restriction to the ball motion in order to prevent the collision is something can help despite the inaccuracy that might be achieved.

Regards,
Sufyan Abushaala is offline   Reply With Quote

Old   November 18, 2014, 07:32
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
But be aware that if you add an unphysical restriction to the ball motion, you will get an unphysicial solution.

Before you can start writing a udf, you should think about what kind of restriction you want to add. What should happen to the ball when it gets close to the wall? What is "close" in your case?
pakk is offline   Reply With Quote

Old   November 18, 2014, 07:39
Default
  #7
New Member
 
Sufyan Abushaala
Join Date: Feb 2014
Location: Huddersfield, UK
Posts: 18
Rep Power: 12
Sufyan Abushaala is on a distinguished road
Yes right. That should be taken into account.
Sufyan Abushaala 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 parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
simple rigid body motion UDF Dan FLUENT 0 January 11, 2006 06:48
Dynamic meshing: UDF for rigid body Motion Manoj Kumar FLUENT 0 June 20, 2005 02:02
how to write a udf about roatation of rigid. ccgwin FLUENT 3 December 11, 2002 09:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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