::hwat::utils::ImportAndPositionRearBarriers - Imports and positions the various rear barriers.
::hwat::utils::ImportAndPositionSideBarriers barrierURL translator barrierName gap jNode kNode jHeightVehicle kHeightVehicle groundToBarrierDistance algorithm [value] [flag] [angle] [strikeNodeId] [strikerNodeId [vehicleAssem] [offsetsList].
barrierURL |
The path (URL) to the barrier. |
translator |
The path to the import translator. |
barrierName |
The name of the barrier assembly. |
gap |
The gap between the barrier and the vehicle. |
jNode |
The ID of the J Node. |
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 (default = ""). 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. |
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 = {}). e.g {components 1000 assems 22}. |
1 if successful, {} if unsuccessful.
::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".
This function assumes that the vehicle model has been imported.