::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 distance between the barrier and the vehicle.
JNode
The ID of the JNode.
jheight
The true J height of the vehicle.
Default = 0.0.
JHeightVehicle
The true J height of the vehicle.
d_value
The value for the overlap or offset option.
d_groundToBarrierDistance
The distance from the ground to the base of the barrier.
Default = 200.0
Optional.
vehiclename
The name of the vehicle assembly.
Default = VEHICLE
Optional.
[str_flag]
Either "offset" or "overlap"
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.
Default = offset
Optional.
offsets
The offsets to apply when importing the barrier.
Default = {}}
For example {components 1000 assems 22}

Returns

Success
1
Failure
{}

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.