Model.fmvss201u_autoposition#

Model.fmvss201u_autoposition(method, offset=0.0, velocity=0.0, sectioncut=0, foreheadpartsids=hwIntList(), headformpartsids=hwIntList(), outertrimpartsids=hwIntList(), designpointids=hwIntList(), exportdpids=hwIntList(), headformsystemid=Entity(), exportheadformids=hwIntList(), exportpath='', mainfilepath='', headformfilepath='', dpnamesfordirandincludes=0, folderforeachdp=0, transformationtype=0, vehicledir=-1)#

Positions the headform to the impact points on the upper interior parts of a vehicle and then exports the positions. For correct export of the solver deck, the headform and the vehicle parts files should be imported as separate includes. The headform and the vehicle must be aligned to the global coordinate axes and vehicle front should be pointing in +X or -X direction.

Export is supported for Radioss, LS-DYNA and PAM-CRASH.

Parameters:
  • method (int) –

    0 - Try to position the headform automatically.

    1 - Review the headform normal to the trim for manual positioning.

    2 - Export positioned points.

  • offset (double) – The offset required between the impact point and the trim surface.

  • velocity (double) – The velocity with which the head form impacts the vehicle.

  • sectioncut (int) – Reserved for future development.

  • foreheadpartsids (hwIntList) – The list of forehead’s component IDs.

  • headformpartsids (hwIntList) – The list of headform component IDs.

  • outertrimpartsids (hwIntList) – The list of component IDs which make up the interior trim of the vehicle.

  • designpointids (hwIntList) – The list of IDs of the design points to be positioned.

  • exportdpids (hwIntList) – The IDs of the positioned design points to be exported.

  • headformsystemid (Entity) – The object describing the headform’s system entity.

  • exportheadformids (hwIntList) – The list of headform component IDs to be exported.

  • exportpath (hwString) – The path of the directory where the export files need to be created.

  • mainfilepath (hwString) – The path to the solver file of the main vehicle.

  • headformfilepath (hwString) – The path to the solver file of the headform.

  • dpnamesfordirandincludes (int) – The Boolean value to select if the exported directories and files have the respective design point’s name or a generic incremental name.

  • folderforeachdp (int) – The Boolean value defining if the directories are separated for each design point’s export file.

  • transformationtype (int) –

    The integer value to select the type of transformation on the head form.

    Solver Value Type
    LS-DYNA 0 *NODE_TRANSFORM
    1 *INCLUDE_TRANSFORM
    Radioss 0 /GRNOD
    1 //SUBMODEL
    PAM-CRASH 0 TRSFM/

  • vehicledir (int) –

    1 - Vehicle forward direction is toward positive X axis.

    -1 - Vehicle forward direction is toward negative X axis.

Examples#

Position the headform on selected design points#
import hm
import hm.entities as ent

model = hm.Model()

model.fmvss201u_autoposition(
  method=0,
  offset=0.0,
  velocity=0.0,
  foreheadpartsids=[10],
  outertrimpartsids=[10000,10004,10007,10008,10010,10011,10013],
  designpointids=[1,2,3,4,5,6,7,8,9,10],exportdpids=hwIntList(),
  headformsystemid=[8,10],
  vehicledir=-1
)
Export position files for selected design points#
import hm
import hm.entities as ent

model = hm.Model()

model.fmvss201u_autoposition(
  method=2,
  exportdpids=[2,3,7,9],
  exportpath="F:/uiimpact/output",
  mainfilepath="F:/uiimpact/data/fmvss201_u_model.rad",
  headformfilepath="F:/uiimpact/data/FMH_2.rad",
  dpnamesfordirandincludes=1,
  folderforeachdp=0,
  transformationtype=0
)