::hwat::utils::ImportAndPositionRearBarriers

Imports and positions the various rear barriers.

Syntax

::hwat::utils::ImportAndPositionSideBarriers barrierURL translator barrierName gap jNode kNode jHeightVehicle kHeightVehicle groundToBarrierDistance algorithm [value] [flag] [angle] [strikeNodeId] [strikerNodeId [vehicleAssem] [offsetsList].

Arguments

barrierURL
The path (URL) to the barrier.
translator
The path to the import translator.
barrierName
Name to give the barrier. Finite barriers will be named barriername.0, barriername.1, etc.
gap
The distance between the barrier and the vehicle.
JNode
The ID of the JNode.
kNode
The ID of the K Node.
JHeightVehicle
The true J height of the vehicle.
kHeightVehicle
The true K height of the vehicle.
groundToBarrierDistance
The distance from the ground to the base of the barrier.
algorithm
Either REAR or OBLIQUE.
value
The value for the overlap or offset option required for REAR.
Default = ""
flag
Either "offset" or "overlap"; required for REAR.
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 = ""
angle
The angle to rotate the barrier.
Default = ""
strikeNodeId
The ID of the strike node.
Default = ""
strikerNodeId

The ID of the striker node.

Default = ""
vehicleAssem
The name of the vehicle assembly.
Default = VEHICLE.
offsetsList
The offsets to apply when importing the barrier.
Default = {}
For example, {components 1000 assems 22}

Returns

Success
1
Failure
{}

Example

::hwat::utils::ImportAndPositionRearBarriers "D:/TestModels/Barriers/Rear.dyn" "D:/Altair/templates/feoutput/ls-dyna/dyna.key" "BARRIER" 10 6567 8790 100 150 200.0 REAR -20 offset {} {} {} "VEHICLE".

Comments

This function assumes that the vehicle model has been imported.