*Proximity()

Creates a proximity sensor to measure minimum distance between two bodies that have associated graphics.

Syntax

*Proximity(varname, label, 
           BODY, 
           b1,
           in, 
           ig1,ig2,…ign
           BODY,
           b2,
           jn,
           jg1,jg2,…jgn
           ) 

Arguments

varname
The variable name of the proximity entity.
Data type: varname
label
The descriptive label of the proximity entity.
Data type: string
BODY
A keyword to indicate the body to be used for proximity definition. Currently, this is the only keyword that is supported.
Data type: keyword
b1
The first body in the proximity definition.
Data type: Body
in
The number of graphic entities related to the first body in the proximity definition. Empty or 0 if b1 is a CMS flexbody.
Data type: integer
ig1, ig2, …ign
The varname of graphic entities on the first body to be used for the contact force. The number of entities in this series should match in.
Data type: Graphics
b2
The second body in the proximity definition.
Data type: Body
jn
The number of graphic entities related to the second body in the proximity definition. Empty or 0 if b2 is a CMS flexbody.
Data type: integer

Example

*Point( p_sph, "Sphere Center" )
*Body( b_sph, "Sphere", p_sph )
*Graphic( gra_sph, "Sphere_Graphics", SPHERE, b_sph, p_sph, 10)
*Graphic( gra_box, "Box_Graphics", BOX, 
                                    B_Ground, 
                                    CENTER,
                                    P_Global_Origin, 
                                    ZX, VECTOR, V_Global_Z,
                                    VECTOR, V_Global_X, 10, 10, 250.0)
  
*Proximity( ps_sph_box, "Sphere to box proximity", 
                                           BODY,b_sph, 1,
                                           gra_sph,
                                           BODY, B_Ground, 1,
                                           gra_box)

This is an example for Proximity between a CMS flexbody (b_lca.l) and a rigid body (b_uca.l)
with 2 of its graphics selected to measure proximity
*Proximity(ps_lca_uca, "Proximity LCA flex", BODY, b_lca.l, , BODY, b_uca.l, 2,
        g_a_arm2.g_frnt_arm.l, g_a_arm2.g_rear_arm.l)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

*DefineAssembly()

Properties

Property Returns Data Type Description
id integer The numeric ID assigned to the entity.
id_string string The assigned ID in a string format.
ig1, ...ign Graphic The graphic entities belonging to the first body.
jg1, ...jgn Graphic The graphic entities belonging to the second body.
label string The descriptive label.
state boolean Returns true or false. True if the entity is active, otherwise false.
type string Returns "Proximity".
varname varname The variable name of the contact definition.

Comments

None.