Model.positionipimpact#

Model.positionipimpact(instrumentpanelids=hwIntList(), headformids=hwIntList(), headformsystem=Entity(), designpointids=hwIntList(), pivotnode=Entity(), vehiclefrontaxis=hwTriple(1.0, 0.0, 0.0), mainfilepath='', headformfilepath='', exportpath='', dpnamefordirandincludes=1, folderforeachdp=0, mode=1, csvfile='')#

Visualizes the positioned headform and exports the model for solver run.

For correct export of the solver deck, the headform and the vehicle parts files should be imported as separate includes. Also, the headform and the vehicle must be aligned to global coordinate axes and vehicle front should be pointing in either +X or -X direction. The design points to be exported should be correctly defined or created automatically using the Model.createipimpact() function.

Parameters:
  • instrumentpanelids (hwIntList) – The list of component IDs of the instrument panel of the vehicle.

  • headformids (hwIntList) – The list of component IDs of the headform/pendulum.

  • headformsystem (Entity) – The coordinate system entity associated with the headform.

  • designpointids (hwIntList) – The list of design points ID that need to be positioned.

  • pivotnode (Entity) – The object describing the node entity of the headform required for the “Tangent to trajectory” or “Pivot/angles” positioning methods.

  • vehiclefrontaxis (hwTriple) – The vehicle front axis (-1, 0, 0) for -X direction and (1, 0, 0) for +X direction. Default value is (1, 0, 0) (+X direction).

  • mainfilepath (hwString) – The path of the main file containing all information such as contacts, controls and instruments panels, and so on.

  • headformfilepath (hwString) – The headform include file path.

  • exportpath (hwString) – The export directory for the positioned solver decks.

  • dpnamefordirandincludes (int) –

    The naming convention for exported files and subdirectories. Valid values are:

    0 - Exported files and subdirectories will not contain the design point name.

    1 - Exported files and subdirectories will contain the design point name. (default)

  • folderforeachdp (int) –

    The folder structure. Valid values are:

    0 - Do not create a separate folder for each design point.

    1 - Create a separate folder for each design point. (default)

  • mode (int) –

    The flag indicating the export and visualization mode.

    Bit values are used and the value is calculated as (2*Bit1 + 4*Bit2 + 8*Bit3). Valid Bit options are:

    Bit1

    Calculating the positioning of the headform (mandatory). Always set to 1.

    Bit2

    Visualizing the positioned headform. Valid values are:

    0 - Off

    1 - On

    Bit3

    Exporting the resulting solver decks. Valid values are:

    0 - Off

    1 - On

    Show Bit value calculator
    Radio Button Table
    Option Name Value
    Calculating the positioning of the headform (mandatory) (Bit1)
    Visualizing the positioned headform (Bit2)
    Exporting the resulting solver decks (Bit3)
    Calculated argument value: 0

  • csvfile (hwString) – The file path of the CSV file to import the impact points for the purpose of positioning.

Examples#

Export the solver decks to “E:/export folder”#
import hm
import hm.entities as ent

model = hm.Model()

model.positionipimpact(
    instrumentpanelids=[2000684, 2000685, 2000686, 2000687, 2000743],
    headformids=[409],
    headformsystem=ent.System(model, 2),
    pivotnode=ent.Node(model, 246808),
    designpointids=[1, 2, 19, 25, 26, 66, 67],
    vehiclefrontaxis=[-1.0, 0.0, 0.0],
    mode=10,
    mainfilepath="E:/camry-IP_impact_main_0000.rad",
    headformfilepath="E:/FMVSS201_Pendulum_800mm_kg-mm-ms.rad",
    exportpath="E:/export",
    dpnamesfordirandincludes=1,
    folderforeachdp=1,
)
Create impact points use a CSV file#
import hm
import hm.entities as ent

model = hm.Model()

model.positionipimpact(csvfile="E:/IPPointListForPost1.csv")