Model.feinputinteractive#

Model.feinputinteractive(programname, filename, overwrite, min_edge_length, cleanup_tolerance, blanked_component, offsetflag)#

Inputs an analysis input deck and for certain import translators invokes a to allow selecting various options while importing the chosen model.

Parameters:
  • programname (hwString) – The name of the translator program.

  • filename (hwString) – The file name containing an input deck.

  • overwrite (int) –

    0 - If should offset.

    1 - If should overwrite any existing IDs

  • min_edge_length (double) – Not used.

  • cleanup_tolerance (double) –

    If < 0 - Use automatic cleanup tolerance.

    If = 0 - Do not cleanup topology.

    If > 0 - Use this as cleanup tolerance.

  • blanked_component (int) –

    0 - Do not create an empty component.

    1 - Create an empty component for data.

  • offsetflag (unsigned char) – Apply a user-defined offset.

Example#

Read the Abaqus input file named mode#
import hm
import hm.entities as ent

model = hm.Model()

model.feinputinteractive(
    programname="feinput/abaqus",
    filename="model",
    overwrite=0,
    min_edge_length=0.0,
    cleanup_tolerance=-0.01,
    blanked_component=0,
    offsetflag=10,
)