HyperWorks Tools

::hwat::utils::ImportAndPositionOffsetBarrier

::hwat::utils::ImportAndPositionOffsetBarrier

Previous topic Next topic No expanding text in this topic  

::hwat::utils::ImportAndPositionOffsetBarrier

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

NAME

::hwat::utils::ImportAndPositionOffsetBarrier - Imports and positions the offset barrier for frontal crash.

 

SYNTAX

::hwat::utils::ImportAndPositionOffsetBarrier URL translator n_overwrite barriername gap jnode jheight d_value [groundToBarrierDistance] [vehiclename] [flag] [offsets]

 

ARGUMENTS

URL

The path (URL) to the barrier.

translator

The path to the import translator.

n_overwrite

1 = overwrite entities (default)
0 = no overwrite

barriername

The name of the barrier.

gap

The gap between the barrier and the vehicle.

jnode

The ID of the JNode.

jheight

The true J height of the vehicle.

d_value

The value for the overlap or offset option.

d_groundToBarrierDistance

Optional.  The distance from the ground to the base of the barrier (default = 200.0).

vehiclename

Optional.  The name of the vehicle assembly (default = VEHICLE).

[str_flag]

Optional.  Either "offset" or "overlap" (default = offset).

Overlap:

0 has no useful meaning since the barrier and vehicle would not impact each other.

-10 means that the barrier will overlap the left side of the vehicle by 10% of the vehicle's width.

20 means that the barrier will overlap the right side of the vehicle by 20% of the vehicle's width.

Offset:

0% means that the barrier and vehicle center lines line up.

-10% means that the barrier is offset to the left by 10% of the vehicle's width.

20% means that the barrier is offset to the right by 20% of the vehicle's width.

offsets

The offsets to apply when importing the barrier.  (default = {}}. e.g {components 1000 assems 22}.

 

RETURNS

1 if successful, {} otherwise.

 

EXAMPLE

::hwat::utils::ImportAndPositionOffsetBarrier "D:/Hwat/barriers/208barrier.key" "D:/Altair/hm/bin/feinput/dynakey.exe"  "HWATBarrier" 10 9882 100 –40 250.0 "MODEL1" overlap.

 

Comments

Implements the OFFSET algorithm.

 

See also

Utils Functions