Constrained Location in a 6DOF -UDF

• 125 Views
• Last Post 18 January 2019
• Topic Is Solved
Max4 posted this 17 January 2019

Hi,

I wrote the following UDF for a moving valve (6DOF).

I want to add a constrained location, but I don´t find how to code this in the UDF.

Thank you.

Regards,

Maxime

kkanade posted this 18 January 2019

i am not sure exact command for that. can you please elaborate why do you need it.

i think the udf you have should work as it is.

Max4 posted this 18 January 2019

I need it, in order to simulate the opening of a valve thanks to pressure forces. I prefer use an UDF as the interface of the 6DOF Properties.

Thank you for your opinion. I just want to add a constrained location, so that the valve doesn´t move to far.

Regards,

Maxime

kkanade posted this 18 January 2019

simple workaround may be using if statement like following for position and force output.

if (y <= del)

vel = 2;

else

vel = 0

Max4 posted this 18 January 2019

I don´t want to set a velocity for the valve. I just want that it opens when the pressure forces is higher than the spring force.

kkanade posted this 18 January 2019

i just gave you an example.

you can use e.g. valve_movement_y in your udf.

if (valve_movement_y <= 5)

net_force = xyz

else

net_force = abc

• Liked by
Max4 posted this 18 January 2019

Ok, I understand it more clearly. Thank you for your help.

Regards,

Maxime

Max4 posted this 18 January 2019

On the interface of the Six DOF Properties, the Location is the distance between the origin of the XY axis and the center of gravity of the object?