Model.topography_reanalysis#

Model.topography_reanalysis(modelsel, filepath_fem, grid_filename, sh_filename, autobead, bead_threshold, layers, isosurface, mode, density_threshold)#

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

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

  • filepath_fem (hwString) – Reserved for future development

  • grid_filename (hwString) – The full name and path to the OptiStruct .grid results file generated from the optimization.

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

  • autobead (int) –

    Flag that determines whether to create beads. Valid values are:

    0 - Do not create beads.

    1 - Create beads.

  • bead_threshold (double) – The threshold value for bead creation (0 ≤ bead threshold ≤1).

  • layers (int) – Reserved for future development

  • isosurface (int) –

    Flag that determines whether to create isosurfaces. Valid values are:

    0 - Do not create isosurfaces.

    1 - Create isosurfaces.

  • 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.

  • density_threshold (double) – Threshold value for topology optimization (0 ≤ density threshold ≤ 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 / os1.grid “ and “ C:/test / os.sh “ files , load the geometry back to HyperMesh , create 1 layer autobead with 0.3 bead threshold , 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.topography_reanalysis(
modelsel=0,
filepath_fem="",
grid_filename="C:/test/os1.grid",
sh_filename="C:/test/os1.sh",
autobead=1,
bead_threshold=0.3,
layers=0,
isosurface=1,
mode=1,
density_threshold=0.3,
createplotel=0,
detectbridge=0,
lowthreshold=0.0,
)