Technical Support

{{ post.title }} 글 편집 글 편집 (이전 에디터) Author {{ post.author.name }} Posted on

Version {{ post.target_version }} Product
{{ product.name }}
Tutorial/Manual {{ post.manual_title }} Attached File {{ post.file.upload_filename }}

You can apply a force when the distance between two geometries in motion becomes a specific value by using an expression such as DM, DX, DZ which can measure the distance between two geometries and the IF used to create an IF statement.


For example, if the distance between Body1.Marker1 and Body2.Marker2 becomes less than 100 and the desired amount of force is 77, you can set the axial force in the expression shown below.


Ex = IF(DM(Body1.Marker1, Body2.Marker2) – 100: 77, 0, 0)


DM(Body1.Marker1, Body2.Marker2) represents the distance between two markers. If the distance between these markers is greater than or equals to 100,the value will be 0. If the distance is less than 100, the value will be 77.


The attached example shows that a ball located on the left is moving towards a box on the right.


If the box’s center marker (CM) position in the x direction with respect to the ball’s CM position is less than 210 when it comes in contact with the ball and the box, the box exerts a leftward force to bounce the ball away.


The expression used for the axial conditional force acting on the box from the right is defined below.


IF((DX(UpperBox.CM, UpperShpere.CM)-210):1000, 0, 0)

Multi-Body-Dynamics-RecurDyn-IF-expression