|
[Sponsors] |
6DOF UDF - contact detection, constrained movement |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 31, 2020, 12:43 |
6DOF UDF - contact detection, constrained movement
|
#1 |
New Member
Join Date: Jan 2020
Posts: 5
Rep Power: 6 |
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*/; } |
|
January 31, 2020, 14:22 |
Disable Motion
|
#2 |
Senior Member
|
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. |
|
January 31, 2020, 19:39 |
|
#3 | |
New Member
Join Date: Jan 2020
Posts: 5
Rep Power: 6 |
Quote:
How would I prevent movement away from the centre, but at the same time permit movement towards the centre? |
||
February 1, 2020, 05:33 |
Constrain the position
|
#4 |
Senior Member
|
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. |
|
December 8, 2020, 06:58 |
constrain specification for 6dof problems using udf
|
#5 | |
New Member
Rushikesh Nand
Join Date: Jul 2020
Posts: 1
Rep Power: 0 |
Quote:
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. |
||
Tags |
6dof, constraints, dynamic mesh, fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Contact Angle UDF in Fluent | codyn | Fluent UDF and Scheme Programming | 2 | August 25, 2016 00:54 |
Forces & moments in 6DOF UDF | Ammar khan | FLUENT | 1 | January 17, 2015 12:46 |
Dynamic Contact Angle UDF | codyn | Fluent UDF and Scheme Programming | 0 | April 2, 2009 03:03 |
Contact angle UDF | shephali shrimali | FLUENT | 0 | May 10, 2007 08:52 |
UDF for dynamic contact angle | Aireen | FLUENT | 0 | August 11, 2006 12:08 |