*opticontrolupdate
Updates optimization control parameters.
Syntax
*opticontrolupdate desmaxtoggle desmax mindimtoggle mindim minmethtoggle minmeth matinittoggle matinit mindenstoggle mindens discretetoggle discrete checkertoggle checker mmchecktoggle mmcheck objtoltoggle objtol delsiztoggle delsiz delshptoggle delshp deltoptoggle deltop gbucktoggle gbuck maxbucktoggle maxbuck number_of_toggles number_of_integer_values integer_array number_of_integers double_array number_of_doubles
Type
HyperMesh Tcl Modify
Description
Updates optimization control parameters. All parameters before number_of_toggles are only applicable to OptiStruct. The remainder are applicable only to Nastran.
Inputs
- desmaxtoggle
- DESMAX toggle on (1) or off (0) state (integer).
- desmax
- DESMAX value (integer).
- mindimtoggle
- MINDIM toggle on (1) or off (0) state (integer).
- mindim
- MINDIM value (double).
- minmethtoggle
- MINMETH toggle on (1) or off (0) state (integer).
- minmeth
- MINDIM value (integer).
- matinittoggle
- MATINIT toggle on (1) or off (0) state (integer).
- matinit
- MATINIT value (double).
- mindenstoggle
- MINDENS toggle on (1) or off (0) state (integer).
- mindens
- MINDENS value (double).
- discretetoggle
- DISCRETE toggle on (1) or off (0) state (integer).
- discrete
- DISCRETE value (double).
- checkertoggle
- CHECKER toggle on (1) or off (0) state (integer).
- checker
- CHECKER value (integer).
- mmchecktoggle
- MMCHECK toggle on (1) or off (0) state (integer).
- mmcheck
- MMCHECK value (integer).
- objtoltoggle
- OBJTOL toggle on (1) or off (0) state (integer).
- objtol
- OBJTOL value (double).
- delsiztoggle
- DELSIZ toggle on (1) or off (0) state (integer).
- delsiz
- DELSIZ value (double).
- delshptoggle
- DELSHP toggle on (1) or off (0) state (integer).
- delshp
- DELSHP value (double).
- deltoptoggle
- DELTOP toggle on (1) or off (0) state (integer).
- deltop
- DELTOP value (double).
- gbucktoggle
- GBUCK toggle on (1) or off (0) state (integer).
- gbuck
- GBUCK value (integer).
- maxbucktoggle
- MAX_BUCK toggle on (1) or off (0) state (integer).
- maxbuck
- MAX_BUCK value (integer).
- number_of_toggles
- Number of toggles (37 for Nastran and 0 for OptiStruct).
- number_of_integer_values
- Number of integer values within the toggles (16 for Nastran and 0 for OptiStruct).
- integer_array
- The ID of the integer array that contains the additional input parameters. The integer array is created using the *createarray command. This should always be set to 1.
- number_of_integers
- Integer indicating the size (number of integer parameters, sum of number_of_toggles and number_of_integer_values, 53 for Nastran and 0 for OptiStruct) in the integer array created using *createarray.
- double_array
- The ID of the double array that contains the additional input parameters. The double
array is created using the *createdoublearray command. This should
always be set to 1.
- [0] = CONV1
- [1 ] = CONV2
- [2] = CONVDV
- [3] = CONVPR
- [4] = CT
- [5] = CTMIN
- [6] = dabobj
- [7] = delb
- [8] = delobj
- [9] = delp
- [10] = delx
- [11] = dobj1
- [12] = dobj2
- [13] = dpmin
- [14] = dx1
- [15] = dx2
- [16] = dxmin
- [17] = gmax
- [18] = gscal
- [19] = ptol
- [20] = Stpscl
- number_of_doubles
- Integer indicating the size (number of double parameters, 21 for Nastran and 0 for OptiStruct) in the double array created using *createdoublearray.
Example
To use with OptiStruct:
*createarray 0
*createdoublearray 0
*opticontrolupdate 1 30 0 0 1 2 0 0 1 0.01 0 0 0 0 0 0 0 0 1 0.5 0 0 1 0.5 0 0 0 0 0 0 1 0 1 0
To use with Nastran:
*createarray 53 1 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 0 0 1 0 0 0 1 2 1 0 0 0 0 -1 40 2 2 20 0 0 1 0 0
*createdoublearray 21 0.001 0.01 0.001 0.001 -0.03 0.003 0.001 0.0001 0.001 0.2 1 0.1 0.2 0.01 0.01 0.2 0.05 0.005 0.001 1e+035 1
*opticontrolupdate 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 37 16 1 53 1 21
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}