*dvprelcreate

Creates a dvprel that relates a design variable to model properties.

Syntax

*dvprelcreate name entities id property fieldposition ndesvars functionid c0 pmax pmin ntableentries int_array nintegers double_array ndoubles

Type

HyperMesh Tcl Modify

Description

Creates a dvprel that relates a design variable to model properties.

Inputs

name
Name of the dvprel.
entities
The entity type which the dvprel is attached. Valid values are components, properties and elements.
id
The property ID.
property
Property type identifier. The possible values are:
  • 1 - pshell
  • 5 - pbar
  • 6 - pbeam
  • 7 - pelas
  • 8 - prod
  • 11 - pbush
  • 14 - conm2
field position
Field position in property card. For more information about this field, refer to the DVPREL1 and DVPREL2 cards in the OptiStruct manual.
ndesvars
Number of design variables.
functionid
ID of the DEQATN, if a DVPREL2 is to be created (=0, if DVPREL1 needs to be created).
c0
Constant in relationship equation.
pmax
Maximum value allowed for the property (Nastran only).
pmin
Minimum value allowed for the property (Nastran only).
ntableentries
Number of table entries (=0 for DVPREL1 card).
int_array
Unused. Always set to 1.
nintegers
Total size of the integer array. See comments below.
double_array
Unused. Always set to 1.
ndoubles
Size of the real array.

Example

*createarray(2) 1 2
*createdoublearray(2) 2.1 3.5
*dvprelcreate("dvp1",components,1,1,4,2,0,1.7,0,0,0,1,2,1,2)

A *createarray() and *createdoublearray() are required to define the IDs and coefficients. While creating a DVPREL2 card, the first ndesvars items in the *createarray() command are the IDs of the design variables and the next ntableentries items are the IDs of the tableentries.