*desvarlinkcreate

Creates a design variable link between a dependent design variable and multiple independent design variables.

Syntax

*desvarlinkcreate desvarids ndesvars desvarcoeffs ncoeffs name desvarid c0 cmult

Type

HyperMesh Tcl Modify

Description

Creates a design variable link between a dependent design variable and multiple independent design variables.

Inputs

desvarids
The ID of the array containing the IDs of the independent design variables.
ndesvars
Number of independent design variables.
desvarcoeffs
The ID of the array containing the coefficients of the independent design variables.
ncoeffs
Number of coefficients (should be equal to ndesvars).
name
A user-defined name for the design variable link. Each design variable link should have a unique name.
desvarid
The ID of the dependent design variable.
co
Constant term.
cmult
Constant multiplier.

Example

To create a design variable link "dvl1" with dependent design variable 3, independent design variables 4 and 6, with coefficients of 2.7 and 5.8, a constant term of 0.7 and a constant multiplier of 2.1:
*createarray(2) 4 6
*createdoublearray(2) 2.7 5.8
*desvarlinkcreate(1,2,1,2,"dvl1",3,0.7,2.1)

A *createarray() and *createdoublearray() are required to define the IDs and coefficients for the independent design variables.