msgpi.sg.presg.preSG#

msgpi.sg.presg.preSG(sg_xml, analysis, ppcmd='prevabs', solver='swiftcomp', integrated=False, write_input=True, timeout=30, scrnout=True, logger=None)#

Preprocessor of a structure gene.

Parameters
  • sg_xml (str) – File name of SG design parameters (XML format)

  • analysis ({0, 1, 2, 3, 4, 5, '', 'h', 'dn', 'dl', 'd', 'l', 'fi', 'f', 'fe'}) –

    Analysis to be carried out.

    • 0 or ‘h’ or ‘’ - homogenization

    • 1 or ‘dn’ - (VABS) dehomogenization (nonlinear)

    • 2 or ‘dl’ or ‘d’ or ‘l’ - dehomogenization (linear)

    • 3 or ‘fi’ - initial failure indices and strength ratios

    • 4 or ‘f’ - (SwiftComp) initial failure strength

    • 5 or ‘fe’ - (SwiftComp) initial failure envelope

  • ppcmd (str, default 'prevabs') – Preprocessor command.

  • solver (str, default 'swiftcomp') – Format of the generated input file (‘vabs’ or ‘swiftcomp’)

  • write_input (bool) – Whether to write input file.

  • scrnout (bool) – Whether to print messages to the screen.

Returns

  • str, int – (If write_input True) Input file name, dimension of the material/structural model.

  • msgpi.sg.StructureGene – (If write_input False) Structure Gene.