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

6DOF UDF - contact detection, constrained movement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2020, 11:43
Question 6DOF UDF - contact detection, constrained movement
  #1
New Member
 
Join Date: Jan 2020
Posts: 5
Rep Power: 6
LHyellow is on a distinguished road
Fluent offers movement constraints straight from the GUI, as long as you select 1DOF.



I guess there's also "contact detection", but I don't know how to operate it, nor whether it actually does what I'm looking for.

How would I achieve the same effect in multiple translation axes via custom UDF? Probably something along the lines of:

Code:
	real offset_from_centre = sqrt((DT_CG(dt)[0])^2 + (DT_CG(dt)[1])^2);

	if (offset_from_centre >= abs(clearance*0.99))
	  /*CONSTRAIN MOVEMENT*/;
	else
	  {
	  /*DO NOTHING*/;
	  }
Does anyone have an idea of how to do this?
LHyellow is offline   Reply With Quote

Old   January 31, 2020, 13:22
Default Disable Motion
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Contact Detection is meant for action on the basis of contact, e.g., if you wish to simulate closing of engine valves or a jumping ball that reverses its motion as soon as it touches the ground.

Since you wish to stop the motion, just set the velocities to 0. This may not be the solution you are looking for, depending upon what constrains the motion. If you can provide further description of the scenario, better suggestions can be expected.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   January 31, 2020, 18:39
Default
  #3
New Member
 
Join Date: Jan 2020
Posts: 5
Rep Power: 6
LHyellow is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Contact Detection is meant for action on the basis of contact, e.g., if you wish to simulate closing of engine valves or a jumping ball that reverses its motion as soon as it touches the ground.

Since you wish to stop the motion, just set the velocities to 0. This may not be the solution you are looking for, depending upon what constrains the motion. If you can provide further description of the scenario, better suggestions can be expected.
Let's say the body reaches a wall. If I set its velocity to zero, will it not be glued to the wall for ever?

How would I prevent movement away from the centre, but at the same time permit movement towards the centre?
LHyellow is offline   Reply With Quote

Old   February 1, 2020, 04:33
Default Constrain the position
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Yes, that's true. It will stay wherever it is. Look for SDOFO_ and SDOFP_ macros within DOF. Those might be useful for what you wish to achieve. Those are new and I have not used any of those but those can be used for constraining the motion; probably those are meant only for constraining the motion.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   December 8, 2020, 05:58
Default constrain specification for 6dof problems using udf
  #5
New Member
 
Rushikesh Nand
Join Date: Jul 2020
Posts: 1
Rep Power: 0
rushikeshnand is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Yes, that's true. It will stay wherever it is. Look for SDOFO_ and SDOFP_ macros within DOF. Those might be useful for what you wish to achieve. Those are new and I have not used any of those but those can be used for constraining the motion; probably those are meant only for constraining the motion.

I was also struggling with the same problem for 2 months. SDOFO based micro is available in the 2020R2 customization manual in section 2.6.5.6. Example 3.
rushikeshnand is offline   Reply With Quote

Reply

Tags
6dof, constraints, dynamic mesh, fluent, udf


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
Dynamic Contact Angle UDF in Fluent codyn Fluent UDF and Scheme Programming 2 August 24, 2016 23:54
Forces & moments in 6DOF UDF Ammar khan FLUENT 1 January 17, 2015 11:46
Dynamic Contact Angle UDF codyn Fluent UDF and Scheme Programming 0 April 2, 2009 02:03
Contact angle UDF shephali shrimali FLUENT 0 May 10, 2007 07:52
UDF for dynamic contact angle Aireen FLUENT 0 August 11, 2006 11:08


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