*dvprelupdate

Updates a dvprel.

Syntax

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

Type

HyperMesh Tcl Modify

Description

Updates a dvprel.

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
fieldposition
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
Maximum 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 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.6 3.8
*dvprelupdate("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 updating 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.