*ossmooth_geometry

Extract the final design geometry from OptiStruct topology, topography and shape optimization results.

Syntax

*ossmooth_geometry modelsel fem_filename load_op outputcode tetrameshingcode units autobead autobeadthreshold autobeadlayer isosurface surfacecode densitythreshold detectbridge lowthreshold distancecoefficient optismoothboundary lapiteration lapfeatureangle lapsmoothboundary remesh surfacereduction reductionfeatureangle createplotel

Type

HyperMesh Tcl Modify

Description

Extract the final design geometry from OptiStruct topology, topography and shape optimization results.

Inputs

modelsel
Model selection option.
  • 0 – Specify model file path to read.
  • 1 – Use current model in HyperMesh.
fem_filename
The full name and path to the OptiStruct .fem results file generated from the optimization. Used only when modelsel = 1.
load_op
Execution/load option. Valid values are:
  • 0 – Create .oss file only to be used in standalone version (do not execute ossmooth)
  • 1 – Do not load geom into HyperMesh.
  • 2 – Load geom into HyperMesh.
outputcode
Output file format. Valid values are:
  • 1 – Nastran
  • 2 – IGES
  • 3 – STL
  • 4 – H3D
tetrameshingcode
Flag indicating whether to create tetramesh after creating isosurface (1=yes, 0=no).
units
Units to use for IGES output. Valid values are:
  • 1 – inch
  • 2 – mm
  • 4 – foot
  • 6 – meter
  • 10 – cm
autobead
Flag indicating whether to create an autobead design (1=yes, 0=no).
autobeadthreshold
Threshold value for autobead (real value ≥ 0 and ≤ 1).
autobeadlayer
Layer value for autobead (integer value 1 or 2).
isosurface
Flag indicating whether to create an isosurface (1=yes, 0=no).
surfacecode
The method to use. Valid values are:
  • 0 – No smoothing, isosurface only
  • 1 – Optimization based smoothing
  • 2 – No smoothing, element threshold
  • 3 – Laplacian smoothing
densitythreshold
The density threshold for topology optimization (real value ≥ 0 and ≤ 1).
detectbridge
Flag indicating whether to detect connectivity in isosurface (1=yes, 0=no).
lowthreshold
The lower density threshold for connectivity detection (real value ≥ 0 and ≤ 1).
Low threshold must be smaller than density threshold value.
distancecoefficient
The distance coefficient to use in optimization based smoothing (real value ≥ -50 and ≤ 50).
optismoothboundary
Flag indicating whether to include the boundary or not in optimization based smoothing (1=yes, 0=no).
lapiteration
The number of iterations to use in Laplacian smoothing (integer ≥ 0).
lapfeatureangle
The feature angle to use in Laplacian smoothing (real value ≥ 1 and ≤ 80).
lapsmoothboundary
Flag indicating whether to include the boundary or not in Laplacian smoothing (1=yes, 0=no).
remesh
Flag indicating whether to remesh when creating an autobead design or/and isosurface (1=yes, 0=no).
surfacereduction
Flag indicating whether to use surface reduction (1=yes, 0=no).
reductionfeatureangle
The feature angle to use when requesting surface reduction (real value ≥ 1 and ≤ 80).
createplotel
Flag indicating whether to create PLOTEL elements (1=yes, 0=no).

Example

To execute OSSmooth on the C:/test/os1.fem, C:/test/os1.grid and C:/test/os1.sh files, loading geometry back to HyperMesh, requesting Nastran output, creating 1 layer autobead with remesh design with 0.3 bead threshold, no surface reduction, 0.3 topology optimization threshold, detect connectivity in isosurface with 0.2 low threshold, Laplacian smoothing, 10 iterations, 30 degrees feature angle and include the boundary, create PLOTEL elements:

*ossmooth_geometry 0 "C:/test/os1.fem" 2 1 0 1 1 0.3 1 1 3 0.3 1 0.2 0 0 10 30 1 1 0 10 1

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

11.0.101