HyperWorks Solvers

PROXIMITY

PROXIMITY

Previous topic Next topic No expanding text in this topic  

PROXIMITY

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Format

PROXIMITY(id, comp)

Description

Returns the components of the proximity sensor.

Example

<Force_Scalar_TwoBody

    id                  = "30101"

    type                = "Force"

    i_marker_id         = "30103031"

    body1_id            = "30103"

    j_marker_id         = "30104041"

    body2_id            = "30104"

    val_expression      = "IF(50-PROXIMITY(70000,2),0.0,0.0,1000*(50-PROXIMITY(70000,2)))"

/>

 

<Sensor_Proximity

    id                  = "70000"

    num_i_graphics      = "2"

    i_graphics_id       = "90000 90009"

    num_j_graphics      = "1"

    j_graphics_id       = "90029"

/>

Arguments

id

The ID of the Sensor_Proximity element.

comp

Indicates the component of the Sensor_Proximity element as follows:

1

state of interference (1 in contact, 0 not in contact).

2

minimum distance.

3

X coordinate of the closest point in graphic 1.

4

Y coordinate of the closest point in graphic 1.

5

Z coordinate of the closest point in graphic 1.

6

X coordinate of the closest point in graphic 2.

7

Y coordinate of the closest point in graphic 2.

8

Z coordinate of the closest point in graphic 2.

See Also:

Functions

Command Statements

Model Statements

Notation and Syntax