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.
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.
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.
simple workaround may be using if statement like following for position and force output.
if (y <= del)
vel = 2;
vel = 0
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.
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
net_force = abc
Ok, I understand it more clearly. Thank you for your help.
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?
Ansys customers with active commercial software licenses can access the
customer portal and submit support questions. You will need your active account number to register.