Model.readnodepositionsfromdynainfile#

Model.readnodepositionsfromdynainfile(path, options)#

Moves nodes in the current model to positions given in a dynain file. Optionally, initial stress of elements may be read.

A valid LS-DYNA model must be loaded.

Parameters:
  • path (hwString) – The full path and file name of the dynain file.

  • options (hwString) – A string list of options that define which cards to read. The string may include initial_stress_beam, initial_stress_shell and initial_stress_solid.

Examples#

Read node positions from “ C:/Users / default / dynain.k “#
import hm
import hm.entities as ent

model = hm.Model()

model.readnodepositionsfromdynainfile(path="C:/Users/default/dynain.k")
Read node positions and * initial_stress_solid * from “ C:/Users / default / dynain.k “#
import hm
import hm.entities as ent

model = hm.Model()

model.readnodepositionsfromdynainfile(
    path="C:/Users/default/dynain.k", options="initial_stress_solid"
)
Read node positions and all * initial_stress * cards from “ C:/Users / default / dynain.k “#
import hm
import hm.entities as ent

model = hm.Model()

model.readnodepositionsfromdynainfile(
    path="C:/Users/default/dynain.k",
    options="initial_stress_beam initial_stress_shell initial_stress_solid",
)