Model.ossmooth_reanalysis#

Model.ossmooth_reanalysis(modelsel, filepath_fem, sh_filename, mode, densitythreshold, createplotel, detectbridge, lowthreshold)#

Extract the final geometry from topology optimization results and inherit the boundary conditions for reanalysis.

Parameters:
  • modelsel (int) – Reserved for future development

  • filepath_fem (hwString) – Reserved for future development

  • sh_filename (hwString) – The full name and path to the .sh results file generated from the optimization.

  • mode (int) –

    Iso-surface mode indicating how to process non-design elements. Valid values are:

    0 - keep all non-design elements with a half layer around

    1 - split only intersected non-design elements

    2 - split overlapping non-design elements with a half layer around

    3 - split overlapping non-design elements

  • densitythreshold (double) – Threshold value for topology optimization (0 ≤ densitythreshold ≤ 1).

  • createplotel (int) – Reserved for future development

  • detectbridge (int) – Reserved for future development

  • lowthreshold (double) – Reserved for future development

Example#

Execute OSSmooth on the “ C:/test / os.sh files “ , load the geometry back to HyperMesh , split all quads on non - design / design interface , with a density threshold of 0.3#
import hm
import hm.entities as ent

model = hm.Model()

model.ossmooth_reanalysis(
    modelsel=0,
    filepath_fem="",
    sh_filename="C:/test/os1.sh",
    mode=3,
    densitythreshold=0.3,
    createplotel=0,
    detectbridge=0,
    lowthreshold=0.0,
)