hm_wadlinesgetgridpointsleg

Returns grid points for either upper or lower leg impact analysis.

Syntax

hm_wadlinesgetgridpointsleg height spacing version end_gap clearance height_option max_depth

Type

HyperMesh Tcl Query Command

Description

Returns grid points for either upper or lower leg impact analysis. The output is a series of four numbers for each grid point. The first number will be the column value, such as -2. The next three numbers will be the x, y, and z values of the grid point.

It will use the front entities set using hm_wadlinessetentities and the corner_angle set with hm_wadlinessetparameters to determine the "Corner of Bumper." If hm_wadlinessetbumper has been used, the outermost ends of those entities will be determined. All points for the internal bumper reference line will fit laterally between either the "Corner of Bumper" or the outermost ends of the bumper entities, whichever is larger. This is the "Edge of Bumper Test Zone."

For version 7.0, the front reference line will be used to determine upper leg grid points and the upper bumper reference line will be used to determine lower leg grid points.

For version 8.0, a WAD line of a specified distance will be used for the upper leg grid points and the internal bumper reference line will be used to determine the lower leg grid points. Note that the hm_wadlinesgetinternalbumperline API does not need to be called prior to calling this API. If the internal bumper reference line has not been generated it will automatically be calculated and used.

Note that not all options below are used for every version and upper/lower option.

Inputs

height
0 - Lower leg
1 - Upper leg
spacing
The lateral distance, starting from the vehicle center line, at which the points will be placed.
version
Used for Euro NCAP protocol, 7.0, 8.0 or 8.2.
end_gap
For the lower leg (height = 0), if the distance between the last grid point placed at the given spacing value and the Edge of Bumper Test Zone is greater than end_gap, an additional grid point is placed at end_gap distance away from the last grid point. For the upper leg (height = 1), any grid points placed within the end_gap distance of the Edge of Bumper Test Zone are removed. Default 50.0.
clearance
Only used for the upper leg (height = 1) for version 8.0. If the distance between the Edge of Bumper Test Zone and the last grid point is greater than the clearance, an additional grid point is placed at end_gap distance inboard of the end of the Edge of Bumper Test Zone. Default 75.0.
height_option
For the upper leg (height = 1), place the distance of the WAD line to be used in this field. Default 775.0.
For the lower leg (height = 0), place the maximum height of the internal bumper reference line in this field. Default 520.0.
max_depth
For the lower leg (height = 0), sets the maximum depth of the internal bumper reference line (the maximum rearward distance a point can be from the first point of contact and still be used to find the height of the bumper entities) (default 10.0). This is unused for the upper leg (height = 1).
method
The method to use for measuring. If left blank and hm_wadlinessetoptions has been used to set the protocol_method, that value is used.
0 - Euro NCAP (default if not specified)
1 - Homologation
2 - ECER
3 - UN-R127 for corners, Euro NCAP elsewhere

Example

To setup and extract WAD lines data:

hm_wadlinesinit
hm_wadlinessetparameters 45.0 50.0 100.0 82.5 50.0 20.0 25.0 60.0
hm_wadlinessetaxes 0.0 0.0 182.0 -1.0 0.0 0.0 0.0 -1.0 0.0
hm_createmark components 1 "by id" "100000199 100000200 290000007 410000016 411000016 420000004 420000005 420000006 420000007 420000008 420000009 420000010 420000011 420000012 420000013 420000014 420000015 420000016 420000019 420000020"
hm_createmark components 2 "by id" "100000003 100000010 100000022 100000113"
hm_wadlinessetentities comps 1 comps 2
hm_createmark components 1 "by id" "407000001 407000002"
hm_wadlinessetbumper comps 1
hm_wadlinesgetgridpointsleg 0 100.0 7.0
hm_wadlinesgetgridpointsleg 1 100.0 7.0
hm_wadlinesgetgridpointsleg 0 100.0 8.0
hm_wadlinesgetgridpointsleg 1 100.0 8.0
hm_wadlinesend

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

14.0