HMIN_designvar_write()

Writes a design variable.

Syntax

void HMIN_designvar_write(HM_entityidtype id, char *name, unsigned char config, double lowerbound, double initialvalue, double upperbound, double  delxv, HM_entityidtype property, int xorder, int yorder, unsigned char xtype, unsigned char ytype, HM_entityidtype  shapedesignvariable, double minimumwidth, double basethickness, double designthickness, int designable, double drawangle, double drawheight, unsigned char bufferzone, unsigned char boundaryskip, unsigned int type, HM_entityidtype anchorpoint, HM_entityidtype firstgrid, HM_entityidtype secondgrid);

Type

HyperMesh hminlib Function

Description

Writes a design variable.

Inputs

id
The ID of the design variable.
name
The name of the design variable.
config
The configuration of the design variable. The possible values for configuration are listed below:
Config Type of design variable
103 Gauge
108 Topology
115 Size/Shape
116 Topography
lowerbound
Lower bound of the variable. Valid only for gauge, size and shape variables.
initialvalue
Initial value of the variable. Valid only for gauge, size and shape variables.
upperbound
Upper bound of the variable. Valid only for gauge, size and shape variables.
delxy
Move limit for the variable during optimization. Valid only for gauge, size and shape variables.
property
Currently unused.
xorder
xorder for harmonic perturbations of shape variables.
yorder
yorder for harmonic perturbations of shape variables.
xtype
xtype for harmonic perturbations of shape variables.
ytype
ytype for harmonic perturbations of shape variables.
shapedesignvariable
id of shape design variable referenced by a topography design variable.
minimumwidth
Minimum width of bead (topography design variables).
basethickness
Base thickness of elements in topology optimization.
designthickness
Total thickness of elements in topology optimization.
designable
Flag to indicate if a topology variable is designable. If the flag is zero, the variable is not designable, else it is designable.
drawangle
Draw angle in degrees (topography design variables).
drawheight
Maximum draw height of bead (topography design variables).
bufferzone
Flag to indicate if a buffer zone exists for a topography design variable. If the flag is zero, no buffer zone exists. A value of 1 indicates that a buffer zone exists.
boundaryskip
Boundary skip parameter for a topography design variable. The possible values for boundaryskip and their definitions are listed below:
Boundaryskip Meaning
0 skip both load and spc
1 skip loads
2 skip spc’s
3 don’t skip
type
Symmetry type of a topography design variable. A complete description of the possible values for type are described in the OptiStruct on-line help.
anchorpoint
Anchor node id for a topography design variable.
firstgrid
Node id defining the direction of the first vector of a topography design variable.
secondgrid
Node id defining the direction of the second vector of a topography design variable.

Errors

None.