Responses

The following responses can be found in this section:

Internal Responses

OptiStruct allows the use of numerous structural responses, calculated in a finite element analysis, or combinations of these responses to be used as objective and constraint functions in a structural optimization.

Responses are defined using DRESP1 Bulk Data Entries. Combinations of responses are defined using either DRESP2 entries, which reference an equation defined by a DEQATN Bulk Data Entry, or DRESP3 entries, which make use of user-defined external routines identified by the LOADLIB I/O Options Entry. Responses are either global or subcase (loadstep, load case) related. The character of a response determines whether or not a constraint or objective referencing that particular response needs to be referenced within a subcase.

Subcase Independent

Mass and Volume

Both are global responses that can be defined for the whole structure, for individual properties (components) and materials, or for groups of properties (components) and materials.

It is not recommended to use mass and volume as constraints or objectives in a topography optimization. Neither is very sensitive towards design modifications made in a topography optimization.

In order to constrain the mass or volume for a region containing a number of properties (components), the SUM function can be used to sum the mass or volume of the selected properties (components), otherwise, the constraint is assumed to apply to each individual property (component) within the region. Alternatively, a DRESP2 equation needs to be defined to sum the mass or volume of these properties (components). This can be avoided by having all properties (components) use the same material and applying the mass or volume constraint to that material.

RTYPE=VOLUME and ATTA=ENCLOSED can be used to create an enclosed volume response for Shape, Free-Shape, and Topography optimization. The ENCLOSED option indicates that this response is an enclosed volume defined by a closed 2D mesh (free-edges are not supported). For this enclosed volume response type, ATTI field(s) should be set to PID. Multiple ATTi are allowed, as long as the mesh defined by the PID's is fully enclosed. The property type should be PSHELL, PCOMP, or PSHEAR only. The normals of the 2D mesh should be oriented consistently and the mesh should be sufficiently fine to capture the volume data. The volume is calculated based on the mesh and it is not recommended to use a coarse mesh.

Fraction of Mass and Fraction of Design Volume

Both are global responses with values between 0.0 and 1.0. They describe a fraction of the initial design space in a topology optimization. They can be defined for the whole structure, for individual properties (components) and materials, or for groups of properties (components) and materials.

The difference between the mass fraction and the volume fraction is that the mass fraction includes the non-design mass in the fraction calculation, whereas the volume fraction only considers the design volume.

Formulation for volume fraction:

Volume fraction = (total volume at current iteration - initial non-design volume)/initial design volume

Formulation for mass fraction:

Mass fraction = total mass at current iteration/initial total mass

If, in addition to the topology optimization, a size and shape optimization is performed, the reference value for the volume fraction (the initial design volume) is not altered by size and shape changes. This can, on occasion, lead to negative values for this response. Therefore, if size and shape optimization is involved, it is recommended to use the Volume responses instead of the Volume Fraction response.

These responses can only be applied to topology design domains. OptiStruct will terminate with an error if this is not the case.

Center of Gravity

This is a global response that may be defined for the whole structure, for individual properties (components) and materials, or for groups of properties (components) and materials.

By default, the center of gravity response is calculated with respect to the basic coordinate system. Refer to PARAM, UCORD to specify a user-defined coordinate system for the calculations.

Moments of Inertia

This is a global response that may be defined for the whole structure, for individual properties (components) and materials, or for groups of properties (components) and materials.

By default, the moment of inertia response is calculated with respect to the basic coordinate system. Refer to PARAM, UCORD to specify a user-defined coordinate system for the calculations.

Weighted Compliance

The weighted compliance is a method used to consider multiple subcases (loadsteps, load cases) in a classical topology optimization. The response is the weighted sum of the compliance of each individual subcase (loadstep, load case).(1) C W = i W i C i = 1 2 i W i u i T f i

This is a global response that is defined for the whole structure.

Weighted Reciprocal Eigenvalue (Frequency)

The weighted reciprocal eigenvalue is a method to consider multiple frequencies in a classical topology optimization. The response is the weighted sum of the reciprocal eigenvalues of each individual mode considered in the optimization.(2) f W = i ( W i λ i )

This is done so that increasing the frequencies of the lower modes will have a larger effect on the objective function than increasing the frequencies of the higher modes. If the frequencies of all modes were simply added together, OptiStruct would put more effort into increasing the higher modes than the lower modes. This is a global response that is defined for the whole structure.

Combined Compliance Index

The combined compliance index is a method to consider multiple frequencies and static subcases (loadsteps, load cases) combined in a classical topology optimization. The index is defined as:(3) S = i W i C i + N O R M ( j ( W j λ j ) j W j )

This is a global response that is defined for the whole structure.

The normalization factor, NORM , is used to normalize the contributions of compliances and eigenvalues. A typical structural compliance value is of the order of 1.0e4 to 1.0e6. However, a typical inverse eigenvalue is on the order of 1.0e-5. If NORM is not used, the linear static compliance requirements dominate the solution.

The quantity N O R M is typically computed using the formula:(4) NORM= C max λ min

Where, C max is the highest compliance value in all subcases (loadsteps, load cases) and λ min is the lowest eigenvalue included in the index.

In a new design problem, you may not have a close estimate for N O R M . If this happens, OptiStruct automatically computes the N O R M value based on compliances and eigenvalues computed in the first iteration step.

Bead Discreteness Fraction

This is a global response for topography design domains. This response indicates the amount of shape variation for one or more topography design domains. The response varies in the range 0.0 to 1.0 (0.0 < BEADFRAC < 1.0), where 0.0 indicates that no shape variation has occurred, and 1.0 indicates that the entire topography design domain has assumed the maximum allowed shape variation.

Random Response Analysis

PSD and RMS Responses

PSD displacement, PSD velocity, PSD acceleration, PSD acoustic pressure, PSD stress, PSD strain, RMS displacement, RMS velocity, RMS acceleration, RMS acoustic pressure, RMS stress, and RMS strain responses are available as global, as well as subcase-dependent responses (this information is also available in Subcase Dependent).

Subcase Dependent

Linear Static Analysis

Static Compliance
The compliance C is calculated using the following relationship:(5) C= 1 2 u T f

Where, K u = f

or(6) C= 1 2 u T Ku= 1 2 ε T σdv
For a structure with an applied forces f subcase, the compliance C can be considered a reciprocal measure of the stiffness K :(7) C = 1 2 u T f = 1 2 f T f K T = 1 2 f 2 K

Where, 1 2 f 2 is constant.

For maximum stiffness K , the compliance C can be minimized.

For a structure with an applied displacements u subcase, the compliance C can be considered a direct measure of the stiffness K :(8) C = 1 2 u T f = 1 2 u T K u = 1 2 u 2 K

Where, 1 2 u 2 is constant.

Elements in the Compliance

Compliance can be defined for the whole structure, for individual properties (components) and materials, or for groups of properties (components) and materials. The compliance must be assigned to a linear static subcase (loadstep, load case).

In order to constrain the compliance for a region containing a number of properties (components), the SUM function can be used to sum the compliance of the selected properties (components), otherwise, the constraint is assumed to apply to each individual property (component) within the region. Alternatively, a DRESP2 equation needs to be defined to sum the compliance of these properties (components). This can be avoided by having all properties (components) use the same material and applying the compliance constraint to that material.

Static Displacement

Displacements are the result of a linear static analysis. Nodal displacements can be selected as a response. They can be selected as vector components or as absolute measures. They must be assigned to a linear static subcase.

Static Stress of Homogeneous Material

Different stress types can be defined as responses. They are defined for components, properties, or elements. Element stresses are used, and constraint screening is applied. This is a linear static subcase (loadstep, load case) related response.

Cluster Size of elements to consider for stress response calculation is supported via ATTB field. 32

Corner Stresses are available by setting ATTB=CORNER. Corner stress responses are supported only for Shape, Sizing, and Free-Shape optimization.

Stress Responses for Topology and Free-Size Optimization

Norm-based Approach (Topology and Free-size Optimization)

The Norm-based approach is the default method for handling stress responses for Topology and Free-Size Optimization. This method is used when corresponding stress response RTYPE’s on the DRESP1 Bulk Data Entry are input.

The Response-NORM aggregation is internally used to calculate the stress responses for groups of elements in the model. Solid, shell, bar stresses and solid corner stresses are supported with the Response-Norm aggregation approach (Free-size Optimization is only supported for shell stresses). Refer to NORM Method for more information.

Augmented Lagrange Method (ALM) (Topology Optimization only)

The Augmented Lagrange Method (ALM) is an alternative method for handling stress responses for Topology Optimization. It can be activated using DOPTPRM,ALMTOSTR,1 when DRESP1 Bulk Data Entry is used to specify local stress responses.

ALM is also an alternative method to efficiently solve topology optimization problems with local stress constraints, which is stated in Equation 9.

min f ( X ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaciyBaiaacM gacaGGUbGaamOzamaabmaabaGaamiwaaGaayjkaiaawMcaaaaa@3BF9@ (9) s . t . g j ( X ) 0 , j = 1 , , m 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaam4Caiaac6 cacaWG0bGaaiOlaiaaysW7caWGNbWaaSbaaSqaaiaadQgaaeqaaOWa aeWaaeaacaWGybaacaGLOaGaayzkaaGaeyizImQaaGimaiaacYcaca WGQbGaeyypa0JaaGymaiaacYcacaaMc8UaeSOjGSKaaiilaiaaykW7 caaMe8UaamyBamaaBaaaleaacaaIXaaabeaaaaa@4DFC@

g j ( X ) 0 , j = m 1 + 1 , , m 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaam4zamaaBa aaleaacaWGQbaabeaakmaabmaabaGaamiwaaGaayjkaiaawMcaaiab gsMiJkaaicdacaGGSaGaamOAaiabg2da9iaad2gadaWgaaWcbaGaaG ymaaqabaGccqGHRaWkcaaIXaGaaiilaiaaykW7cqWIMaYscaGGSaGa aGPaVlaaysW7caWGTbWaaSbaaSqaaiaaigdaaeqaaaaa@4BDF@

Where,
X MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiwaaaa@36B3@
Vector of topology design variables
f ( X ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOzaiaacI cacaWGybGaaiykaaaa@38F7@
Objective function
g j ( X ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaam4zamaaBa aaleaacaWGQbaabeaakmaabmaabaGaamiwaaGaayjkaiaawMcaaaaa @3A4D@
jth constraint
m 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyBamaaBa aaleaacaaIXaaabeaaaaa@37AF@
Number of local stress constraints
m MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyBaaaa@36C8@
Total number of constraints
Typically, m 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyBamaaBa aaleaacaaIXaaabeaaaaa@37AF@ is equivalent to the number of elements and is a large number. ALM converts the optimization Equation 9 to the following format:(10)
(11)EQ 2 s . t . g j ( X ) 0 , j = m 1 + 1 , , m 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaam4Caiaac6 cacaWG0bGaaiOlaiaaysW7caWGNbWaaSbaaSqaaiaadQgaaeqaaOWa aeWaaeaacaWGybaacaGLOaGaayzkaaGaeyizImQaaGimaiaacYcaca WGQbGaeyypa0JaamyBamaaBaaaleaacaaIXaaabeaakiabgUcaRiaa igdacaGGSaGaaGPaVlablAciljaacYcacaaMc8UaaGjbVlaad2gada WgaaWcbaGaaGymaaqabaaaaa@50C1@
Where,
ρ j MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqyWdi3aaS baaSqaaiaadQgaaeqaaaaa@38B1@
Element density
σ j MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeq4Wdm3aaS baaSqaaiaadQgaaeqaaaaa@38B4@
Element von Mises stress
σ lim MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeq4Wdm3aaS baaSqaaiGacYgacaGGPbGaaiyBaaqabaaaaa@3A95@
stress upper bound
λ j MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeq4UdW2aaS baaSqaaiaadQgaaeqaaaaa@38A5@
Lagrange multiplier estimator
μ > 0 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqiVd0Maey Opa4JaaGimaaaa@394E@
Quadratic penalty factor
The penalty factor is typically updated as:(12)
Where,
α > 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqySdeMaey Opa4JaaGymaaaa@3938@
Update parameter
μ max MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqiVd02aaS baaSqaaiGac2gacaGGHbGaaiiEaaqabaaaaa@3A8C@
Upper limit to prevent numerical instabilities

The Lagrange multiplier estimators are updated as .

In general, the number of local stress constraints m 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyBamaaBa aaleaacaaIXaaabeaaaaa@37AF@ is very large. Directly solving Equation 9 is computationally time consuming. By penalizing the stress constraints onto the objective function, the total number of constraints can be significantly reduced. As a result, the optimization problem can be efficiently solved.

The parameters are set as μ ( 0 ) = 10 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqiVd02aaW baaSqabeaacaGGOaGaaGimaiaacMcaaaGccqGH9aqpcaaIXaGaaGim aaaa@3C51@ , μ max = 10 6 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqiVd02aaS baaSqaaiGac2gacaGGHbGaaiiEaaqabaGccqGH9aqpcaaIXaGaaGim amaaCaaaleqabaGaaGOnaaaaaaa@3DFE@ , α = 1.3 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqySdeMaey ypa0JaaGymaiaac6cacaaIZaaaaa@3AA5@ , η = 0.5 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeq4TdGMaey ypa0JaaGimaiaac6cacaaI1aaaaa@3AB3@ , ε = 10 6 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqyTduMaey ypa0JaaGymaiaaicdadaahaaWcbeqaaiabgkHiTiaaiAdaaaaaaa@3BD2@ , p = 3 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiCaiabg2 da9iaaiodaaaa@388E@ . β is initially set to 1.0 and multiplied by 1.3 in every five iterations, with an upper limit of 30.0. Based on this process, Topology Optimization is carried out within one phase.
Note: Except for this ALM, OptiStruct generally uses a multi-phase strategy to solve topology optimization problems.

The default Stress-norm (P-norm) method continues to efficiently solve Topology Optimization problems with local stress constraints. The ALM 1 is a good alternative for such models.

Global von Mises Stress Response (Topology and Free-size Optimization)

The von Mises stress constraints may be defined for topology and free-size optimization through the STRESS optional continuation line on the DTPL or the DSIZE card. There are a number of restrictions with this constraint:
  • The definition of stress constraints is limited to a single von Mises permissible stress. The phenomenon of singular topology is pronounced when different materials with different permissible stresses exist in a structure. Singular topology refers to the problem associated with the conditional nature of stress constraints, i.e. the stress constraint of an element disappears when the element vanishes. This creates another problem in that a huge number of reduced problems exist with solutions that cannot usually be found by a gradient-based optimizer in the full design space.
  • Stress constraints for a partial domain of the structure are not allowed because they often create an ill-posed optimization problem since elimination of the partial domain would remove all stress constraints. Consequently, the stress constraint applies to the entire model when active, including both design and non-design regions, and stress constraint settings must be identical for all DSIZE and DTPL cards.
  • The capability has built-in intelligence to filter out artificial stress concentrations around point loads and point boundary conditions. Stress concentrations due to boundary geometry are also filtered to some extent as they can be improved more effectively with local shape optimization.
  • Due to the large number of elements with active stress constraints, no element stress report is given in the table of retained constraints in the .out file. The iterative history of the stress state of the model can be viewed in HyperView or HyperMesh.
  • Stress constraints do not apply to 1D elements.
  • Stress constraints may not be used when enforced displacements are present in the model.

The buckling factor can be constrained for shell topology optimization problems with a base thickness not equal to zero. Constraints on the buckling factor are not allowed in any other cases of topology optimization.

The following responses are currently available as the objective or as constraint functions for elements that do not form part of the design space:
Composite Stress Composite Strain Composite Failure Criterion
Frequency Response Stress Frequency Response Strain Frequency Response Force

Grid Point Stress of Homogeneous Material

Different grid point stress types can be defined as responses. They are defined for components, properties, or elements. Grid point stresses are used, and constraint screening is applied. This is currently supported only for Shape, Sizing, and Free-Shape Optimization.

The RTYPE field should be set to GPSTR to activate Grid Point Stress response.

Norm-based Failure Response:

Grid Point Stress Responses for Topology Optimization are available through corresponding GPSTR response RTYPE’s on the DRESP1 Bulk Data Entry.

The Response-NORM aggregation is internally used to calculate the failure Responses for groups of grids in the model. Refer to NORM Method for more information.

Static Strain of Homogeneous Material

Different strain types can be defined as responses. They are defined for components, properties, or elements. Element strains are used, and constraint screening is applied. It is also not possible to define strain constraints in a topology design space. This is a linear static subcase (loadstep, load case) related response.

Corner Strains are available by setting ATTB=CORNER. Corner strain responses are supported only for Shape, Sizing, and Free-Shape optimization.

Norm-based Strain Response:

Strain Responses for Topology and Free-Size Optimization are available through corresponding Strain response RTYPE’s on the DRESP1 Bulk Data Entry.

The Response-NORM aggregation is internally used to calculate the Strain Responses for groups of elements in the model. Solid, Shell, Bar Stresses and Solid Corner Strains are supported with the Response-Norm aggregation approach (Free-size optimization is only supported for shell strains). Refer to NORM Method for more information.

Static Stress of Composite Lay-up

Different composite stress types can be defined as responses. They are defined for PCOMP(G), PCOMPP components or elements, or PLY type properties. Ply level results are used, and constraint screening is applied. It is also possible to define composite stress constraints in a topology and/or free-size design space. This is a linear static subcase (loadstep, load case) related response.

Norm-based Stress Response:

Stress Responses for Topology and Free-Size Optimization are available through corresponding Stress response RTYPE’s on the DRESP1 Bulk Data Entry.

The Response-NORM aggregation is internally used to calculate the Stress Responses for groups of elements in the model. Refer to NORM Method for more information.

Static Strain of Composite Lay-up

Different composite strain types can be defined as responses. They are defined for PCOMP(G), PCOMPP components or elements, or PLY type properties. Ply level results are used, and constraint screening is applied. It is also possible to define composite strain constraints in a topology and/or free-size design space. This is a linear static subcase (loadstep, load case) related response.

Norm-based Strain Response:

Strain Responses for Topology and Free-Size Optimization are available through corresponding Strain response RTYPE’s on the DRESP1 Bulk Data Entry.

The Response-NORM aggregation is internally used to calculate the Strain Responses for groups of elements in the model. Refer to NORM Method for more information.

Static Failure in a Composite Lay-up

Different composite failure criterion can be defined as responses. They are defined for PCOMP(G) components or elements, or PLY type properties. Ply level results are used, and constraint screening is applied. It is also possible to define composite failure criteria constraints in a topology design space. This is a linear static subcase (loadstep, load case) related response.

Norm-based Failure Response:

Composite Failure Responses for Topology and Free-Size Optimization are available through corresponding Failure response RTYPE’s on the DRESP1 Bulk Data Entry.

The Response-NORM aggregation is internally used to calculate the failure Responses for groups of elements in the model. Refer to NORM Method for more information.

Static Failure

Different failure criteria can be defined as responses. They are supported for solid and shell elements only. Failure criteria can be defined on the MAT1 or MATT1 entries.

Static Force

Different force types can be defined as responses. They are defined for components, properties, or elements. Constraint screening is applied. It is also not possible to define force constraints in a topology design space. This is a linear static subcase (loadstep, load case) related response.

Single Point Force at a Constrained Grid Point

This response can be defined using the DRESP1 Bulk Data Entry (RTYPE=SPCFORCE). This response is defined for constrained grid points. Constraint screening is applied to this response. This is a linear static subcase (loadstep, load case) related response.

Grid Point Force

This response can be defined using the DRESP1 Bulk Data Entry (RTYPE=GPFORCE). This response defines the contribution to a specific grid point force component from a non-rigid element (which is connected to that grid). Constraint screening is applied to this response. If ATTi specify multiple elements, then multiple responses will be generated; where, each response calculates a specified element's contribution to the grid point force component at the specified grid. This is a linear static subcase (loadstep, load case) related response.

Bore Distortion

Bore Distortion can be used as an internal response when a linear or nonlinear static analysis with optimization is run. Bore distortion response is activated using RTYPE=BOREDST option. The ATTA field can be used to identify the ORDER number or can be set to CIRCUL (circularity). The ATTi field(s) can be used to identify the ID of BORE Bulk Data Entries. If ORDER is defined by setting the ATTA field to an integer value, then the bore distortion response of the specified order is used for optimization. One bore distortion response is created for each ring of the bore. Similarly, if CIRCUL is defined, then circularity response is created for each ring of the bore.
Note: Applicable to multiple subcase types.

Stress Responses for Topology and Free-Size optimization can be defined via the DRESP1 Bulk Data Entry. The Stress Responses are internally aggregated using the Stress-NORM approach to maintain the number of created responses at a reasonable number.

Heat Transfer Analysis

Temperature

Temperatures are the result of a heat transfer analysis and must be assigned to a heat transfer subcase (loadstep, load case). Temperature response cannot be used in composite topology and free-size optimization.

Thermal Compliance

Thermal compliance C is calculated using:(13) T Comp = 1 2 T T f= 1 2 T T ( K C +H )T
Where,
T
Temperature vector
f
Power vector
K C
Conduction matrix
H
Convection matrix
Thermal compliance is a global measure for structural heat transfer problem. It is calculated for the entire structure. Thermal compliance must be assigned to a linear steady-state heat transfer subcase (loadstep, load case).

When minimizing thermal compliance, temperatures at grids of flux input are minimized. The optimum structure provides maximum conduction of thermal energy. Since thermal compliance is a smooth convex function, it is typically more efficient to minimize thermal compliance than to perform a min-max of the temperature of the entire structure. During thermal-structural optimization, the temperature field is updated for each iteration. Additionally, for thermal-structural topology optimization, the density design variable affects the conductivity, and the conductivity is also penalized.

Thermal Compliance Response can only be used in Sizing, Shape, Topology, and Free-Size Optimization.

Nodal Flow Pressure (Darcy Flow Analysis)

For a Darcy Flow Analysis nodal flow pressures can be used as an optimization response. The RTYPE should be set as FLOWPRES and the ATTi fields should point to the Grid IDs of the node of interest. This is currently only supported for Topology Optimization with Steady-State Heat Transfer analysis (for which Darcy flow analysis is active).

Normal Modes Analysis

Frequency

Natural frequencies are the result of a normal modes analysis, and must be assigned to the normal modes subcase (loadstep, load case). It is recommended to constrain the frequency for several of the lower modes, not just of the first mode.

There are two ways to use Normal Mode response in an Optimization run:
  1. Set the ATTA field on DRESP1 entry equal to the Normal Mode number(s) that you want to use as a response. In this process, you will identify and provide the mode number(s) that are to be optimized.
  2. You can also source the mode number of the mode with largest modal participation at the peak loading frequency by adding a separate Modal Frequency Response Subcase, in addition to the existing Normal Modes subcase. The ATTA field should identify the number of modes and the ATTi field should be set equal to the subcase ID of the Modal Frequency Response subcase. The Modal Frequency Response Analysis subcase should contain a PEAKOUT entry that identifies peak identification criteria. OptiStruct will internally identify the modes to be optimized based on Modal Frequency Response Analysis, by picking the modes (ATTA) for each peak response which contributes the most to the corresponding response. Therefore, the maximum number of modes identified for the optimization is equal to: number of modes (ATTA) * NPEAK (on PEAKOUT).

Mode Shape

Mode shapes are the result of a normal modes analysis. Mode shapes can be selected as a response. They can be selected as vector components or as absolute measures. They must be assigned to a normal modes subcase.

Linear Buckling Analysis

The buckling factor is the result of a buckling analysis, and must be assigned to a buckling subcase (loadstep, load case).

Buckling Factor

A typical buckling constraint is a lower bound of 1.0, indicating that the structure is not to buckle with the given static load. It is recommended to constrain the buckling factor for several of the lower modes, not just of the first mode.

Linear Transient Analysis

Transient Compliance

Transient compliance, τ 2 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacqaHepaDdaWgaaWcbaGaaGOmaaqabaaaaa@3B84@ , is defined as:(14) τ 2 = 0 T f f (t) T u(t)dt T f MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaeqiXdq3aaS baaSqaaiaaikdaaeqaaOGaeyypa0ZaaSqaaSqaamaapehabaGaamOz aiaacIcacaWG0bGaaiykamaaCaaameqabaGaamivaaaaliaadwhaca GGOaGaamiDaiaacMcacaWGKbGaamiDaaadbaGaaGimaaqaaiaadsfa daWgaaqaaiaadAgaaeqaaaGdcqGHRiI8aaWcbaGaamivamaaBaaame aacaWGMbaabeaaaaaaaa@4A52@
Where,
f ( t ) T MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbb a9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr 0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaabaaaaaaaaape GaamOzamaabmaapaqaa8qacaWG0baacaGLOaGaayzkaaWdamaaCaaa leqabaWdbiaadsfaaaaaaa@3ABD@
Transpose of the time dependent applied force
u( t ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacaWG1bWaaeWaaeaacaWG0baacaGLOaGaayzkaaaaaa@3C53@
Transient displacement
T f MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaadcaWGubWaaS baaeaacaWGMbaabeaaaaa@37E7@
Final time of the analysis
Note:
  1. Adjoint method for sensitivity calculation is implemented.
  2. Enforce displacement load (SPCD) is not supported.
  3. Only MTRAN analysis is support.
  4. Currently, size, shape and topology optimization are supported.

Transient Displacement

Transient displacement, τ 3 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacqaHepaDdaWgaaWcbaGaaGOmaaqabaaaaa@3B84@ is defined as:(15) τ 3 =u( t ) | t= t i = 0 T u j δ( t t i )dt MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbb a9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr 0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaabaaaaaaaaape GaeqiXdq3damaaBaaaleaapeGaaG4maaWdaeqaaOWdbiabg2da9iaa dwhadaqadaWdaeaapeGaamiDaaGaayjkaiaawMcaaiaacYhapaWaaS baaSqaa8qacaWG0bGaeyypa0JaamiDa8aadaWgaaadbaWdbiaadMga a8aabeaaaSqabaGcpeGaeyypa0ZaaybCaeqal8aabaWdbiaaicdaa8 aabaWdbiaadsfaa0WdaeaapeGaey4kIipaaOGaamyDa8aadaWgaaWc baWdbiaadQgaa8aabeaak8qacaqG0oWaaeWaa8aabaWdbiaabshacq GHsislcaWG0bWdamaaBaaaleaapeGaamyAaaWdaeqaaaGcpeGaayjk aiaawMcaaiaabsgacaqG0baaaa@5421@
Where,
u ( t ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacaWG1bWaaeWaaeaacaWG0baacaGLOaGaayzkaaaaaa@3C53@
Transient displacement
δ( t t i ) MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbb a9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr 0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaabaaaaaaaaape GaaeiTdmaabmaapaqaa8qacaqG0bGaeyOeI0IaamiDa8aadaWgaaWc baWdbiaadMgaa8aabeaaaOWdbiaawIcacaGLPaaaaaa@3D2D@
Applied excitation
Note:
  1. Direct and adjoint method for sensitivity calculation are implemented.
  2. SPCD is not supported.
  3. MTRAN and DTRAN analysis are supported.
  4. Currently, size, shape and topology optimization are supported.

Mean Square of Displacement Difference

Mean Square of Displacement Difference Response, τ 4 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacqaHepaDdaWgaaWcbaGaaGOmaaqabaaaaa@3B84@ is defined as:(16) τ 4 = 1 T 0 T [ u i ( t )  u j ( t ) ] 2 dt MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVCI8FfYJH8YrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbb a9q8WqFfeaY=biLkVcLq=JHqpepeea0=as0Fb9pgeaYRXxe9vr0=vr 0=vqpWqaaeaabiGaciaacaqabeaadaqaaqaaaOqaaabaaaaaaaaape GaeqiXdq3damaaBaaaleaapeGaaGinaaWdaeqaaOWdbiabg2da9maa laaapaqaa8qacaaIXaaapaqaa8qacaWGubaaamaawahabeWcpaqaa8 qacaaIWaaapaqaa8qacaWGubaan8aabaWdbiabgUIiYdaakmaadmaa paqaa8qacaWG1bWdamaaBaaaleaapeGaamyAaaWdaeqaaOWdbmaabm aapaqaa8qacaWG0baacaGLOaGaayzkaaGaeyOeI0IaaiiOaiaadwha paWaaSbaaSqaa8qacaWGQbaapaqabaGcpeWaaeWaa8aabaWdbiaads haaiaawIcacaGLPaaaaiaawUfacaGLDbaapaWaaWbaaSqabeaapeGa aGOmaaaakiaabsgacaqG0baaaa@5163@

Where, u i ( t ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacaWG1bWaaSbaaSqaaiaadMgaaeqaaOWaaeWaaeaacaWG0baacaGL OaGaayzkaaaaaa@3D77@ and u j ( t ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacaWG1bWaaSbaaSqaaiaadMgaaeqaaOWaaeWaaeaacaWG0baacaGL OaGaayzkaaaaaa@3D77@ are the transient displacement of GRID ID i MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacaWGPbaaaa@39C5@ and j MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacaWGPbaaaa@39C5@ , respectively.

Note:
  1. Adjoint method for sensitivity calculation is implemented.
  2. Only MTRAN analysis is supported.
  3. Currently, size, shape and topology optimization are supported.

Frequency Response Function (FRF Analysis)

Frequency Response Displacement

Displacements are the result of a frequency response analysis. Nodal displacements, i.e. translational, rotational and normal 1, can be selected as a response. They can be selected as vector components in real/imaginary or magnitude/phase form. They must be assigned to a frequency response subcase (loadstep, load case).

Frequency Response Velocity

Velocities are the result of a frequency response analysis. Nodal velocities, i.e. translational, rotational and normal 2, can be selected as a response. They can be selected as vector components in real/imaginary or magnitude/phase form. They must be assigned to a frequency response subcase (loadstep, load case).

Frequency Response Acceleration

Accelerations are the result of a frequency response analysis. Nodal accelerations, i.e. translational, rotational and normal 3, can be selected as a response. They can be selected as vector components in real/imaginary or magnitude/phase form. They must be assigned to a frequency response subcase (loadstep, load case).

Frequency Response Stress

Different stress types can be defined as responses. They are defined for components, properties, or elements. Element stresses are not used in real/imaginary or magnitude/phase form, and constraint screening is applied. The von Mises stress for solids and shells can also be defined as direct responses. This is a frequency response subcase (loadstep, load case) related response.

Norm-based FRF Stress Response:

FRF Stress Responses for Topology and Free-Size Optimization are available through corresponding Frequency-response Stress response RTYPE’s on the DRESP1 Bulk Data Entry.

The Response-NORM aggregation is internally used to calculate the Stress Responses for groups of elements in the model. Solid and Shell FRF Stresses are supported with the Response-Norm aggregation approach (Free-size optimization is only supported with Shell FRF Stresses). Refer to NORM Method for more information.

Frequency Response Strain

Different strain types can be defined as responses. They are defined for components, properties, or elements. Element strains are used in real/imaginary or magnitude/phase form, and constraint screening is applied. The von Mises strain for solids and shells can also be defined as direct responses. This is a frequency response subcase (loadstep, load case) related response.

Norm-based FRF Strain Response:

FRF Strain Responses for Topology and Free-Size Optimization are available through corresponding Frequency-response Strain response RTYPE’s on the DRESP1 Bulk Data Entry.

The Response-NORM aggregation is internally used to calculate the Strain Responses for groups of elements in the model. Solid and Shell FRF Strains are supported with the Response-Norm aggregation approach (Free-size optimization is only supported with Shell FRF Strains). Refer to NORM Method for more information.

Frequency Response Force

Different force types can be defined as responses. They are defined for components, properties, or elements in real/imaginary or magnitude/phase form. Constraint screening is applied. It is also not possible to define force constraints in a topology design space. This is a frequency response subcase (loadstep, load case) related response.

Powerflow

Powerflow can be defined as a Response by setting RTYPE field to FRFLOW. Calculated for a SECTION entry identified via the ATTi field. Constraint screening is applied. It is supported for Topology, Sizing, and Shape Optimization.

Random Response Analysis

PSD and RMS Responses

PSD displacement, PSD velocity, PSD acceleration, PSD acoustic pressure, PSD stress, PSD strain, RMS displacement, RMS velocity, RMS acceleration, RMS acoustic pressure, RMS stress and RMS strain responses are available as global as well as subcase-dependent responses (this information is also available in the Subcase Independent responses section above).

Coupled FRF Analysis on a Fluid-structure Model (Acoustic Analysis)

Acoustic Pressure

Acoustic pressures are the result of a coupled frequency response analysis on a fluid-structure model. This response is available for fluid grids. It must be assigned to a coupled frequency response subcase (loadstep, load case) on a fluid-structure model.

Multibody Dynamics Analysis

Flexible Body Responses

For Multibody Dynamics problems, the Mass, Center of gravity, and Moment of Inertia of one or more flexible bodies are available as responses. This is in addition to other usual structural responses.

MBD Displacement

MBD displacements are the result of a multibody dynamics analysis. They must be assigned to a multibody dynamics subcase (loadstep, load case).

MBD Velocity

MBD velocities are the result of a multibody dynamics analysis. They must be assigned to a multibody dynamics subcase (loadstep, load case).

MBD Acceleration

MBD acceleration are the result of a multibody dynamics analysis. They must be assigned to a multibody dynamics subcase (loadstep, load case).

MBD Force

MBD forces are the result of a multibody dynamics analysis. They must be assigned to a multibody dynamics subcase (loadstep, load case).

MBD Expression

MBD expression responses are the result of a multibody dynamics analysis. They are the result of the evaluation of an expression. They must be assigned to a multibody dynamics subcase (loadstep, load case).

Fatigue

Life/Damage/Factor of Safety

RTYPE=FATIGUE. Life, Damage, and Factor of Safety (FOS) are results of a fatigue analysis. They must be assigned to a Fatigue subcase.

Grid Point based Factor of Safety

Factor of Safety results when RTYPE=GPFAT. They must be assigned to a Fatigue subcase.

Dynamic/Nonlinear Analysis

Equivalent Plastic Strain

Equivalent plastic strain can be used as an internal response when a nonlinear response optimization is run using the equivalent static load method. This is made possible through the use of an approximated correlation between linear strain and plastic strain, which are calculated in the inner and outer loops respectively, of the ESL method.

ESL Velocity

ESL velocity can be used as an internal response, when a nonlinear response optimization is run, using the equivalent static load method. The RTYPE=ESLV option can be used in conjunction with the velocity component value and a GRID ID specification.

Gasket Pressure

Gasket Pressure can be used as an internal response when a nonlinear static analysis with optimization is run. Gasket pressure response is activated using RTYPE=GSKP option. The PTYPE field references PGASK and the ATTi field references the corresponding PGASK ID(s).

Contact Pressure

Contact Pressure can be used as an internal response when a model with contact and optimization is run. Contact pressure response is activated using RTYPE=CNTP option. The PTYPE should be set to CONTACT and the corresponding CONTACT Bulk Data ID(s) can be referenced on the ATTi field. For Shape, Free-Shape, and Sizing optimization, the design variables can be part of the contact region.

Contact Force

Contact Force can be used as an internal response when a model with contact and optimization is run. Contact force response is activated using RTYPE=CNTF option. The PTYPE should be set to CONTACT, the ATTA field should point to the Contact Force item code of interest, and the corresponding CONTACT Bulk Data ID(s) can be referenced on the ATTi field. For Shape, Free-Shape, and Sizing optimization, the design variables can be part of the contact region.

User Responses

Functions

A function response is one that uses a mathematical expression to combine design variables, grid point locations, responses, and/or table entries. Whether the function is subcase (loadstep, load case) related or global, is dependent on the response types used in the equation. Function responses are available via DRESP1, DRESP2, and DRESP3 entries. For DRESP3, the functions are defined using external responses.

External

An external response is one that uses an external user-defined routine to combine design variables, grid point locations, eigenvectors, responses, and/or table entries. Whether the function is subcase (loadstep, load case) related or global is dependent on the response types used in the routine. Refer to External Responses for more information.

Appendix

NORM Method

The NORM method is used to approximately calculate the maximum value of a particular response of all the grids/elements included in a particular response. This is also scaled with the response bounds specified for each grid/element. Therefore, to minimize the maximum response in a particular grid/element set, the resulting NORM value ( R N O R M MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOuamaaBa aaleaacaWGobGaam4taiaadkfacaWGnbaabeaaaaa@3A49@ ) is internally constrained to a value lower than 1.0. (17) R NORM = [ 1 n i=1 n ( R i R bound ) p ] 1/p MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOuamaaBa aaleaacaWGobGaam4taiaadkfacaWGnbaabeaakiabg2da9maadmaa baWaaSaaaeaacaaIXaaabaGaamOBaaaadaaeWbqaamaabmaabaWaaS aaaeaacaWGsbWaaSbaaSqaaiaadMgaaeqaaaGcbaGaamOuamaaBaaa leaacaWGIbGaam4BaiaadwhacaWGUbGaamizaaqabaaaaaGccaGLOa GaayzkaaWaaWbaaSqabeaacaWGWbaaaaqaaiaadMgacqGH9aqpcaaI XaaabaGaamOBaaqdcqGHris5aaGccaGLBbGaayzxaaWaaWbaaSqabe aacaaIXaGaai4laiaadchaaaaaaa@51F0@
Where,
R NORM MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOuamaaBa aaleaacaWGobGaam4taiaadkfacaWGnbaabeaaaaa@3A49@
Response NORM value
n MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOBaaaa@36E9@
Number of elements
R i MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOuamaaBa aaleaacaWGPbaabeaaaaa@37E7@
Individual response value of grid/element “ i MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacaWGPbaaaa@39C5@ "
R bound MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOuamaaBa aaleaacaWGIbGaam4BaiaadwhacaWGUbGaamizaaqabaaaaa@3BAA@
Response bound for each grid/element
p MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiCaaaa@36EB@
Penalty (power) value (default = 6.0)

The Penalty or Power value ( p MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiCaaaa@36EB@ ) can be modified using the parameter DOPTPRM, PNORM. The value p MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiCaaaa@36EB@ = 6.0 is the default and higher values of p MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiCaaaa@36EB@ ( p MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiCaaaa@36EB@ MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbwvMCKf MBHbqefqvATv2CG4uz3bIuV1wyUbqedmvETj2BSbqefm0B1jxALjhi ov2DaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8 qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9 q8qqQ8frFve9Fve9Ff0dmeaacaGacmGadaWaaiqacaabaiaafaaake aacqGHEisPaaa@3A48@ ) increases the accuracy of the norm function ( R N O R M MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOuamaaBa aaleaacaWGobGaam4taiaadkfacaWGnbaabeaaaaa@3A49@ ( R max R b o u n d ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaWaaeWaaeaada WcaaqaaiaadkfadaWgaaWcbaGaciyBaiaacggacaGG4baabeaaaOqa aiaadkfadaWgaaWcbaGaamOyaiaad+gacaWG1bGaamOBaiaadsgaae qaaaaaaOGaayjkaiaawMcaaaaa@412E@ ), which can lead to instability of the optimization run. Values lower than 6 ( p MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiCaaaa@36EB@ → 1) moves the response norm function closer to the average ratio ( R N O R M MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamOuamaaBa aaleaacaWGobGaam4taiaadkfacaWGnbaabeaaaaa@3A49@ 1 n i = 1 n ( R i R b o u n d ) MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaWaaSaaaeaaca aIXaaabaGaamOBaaaadaaeWbqaamaabmaabaWaaSaaaeaacaWGsbWa aSbaaSqaaiaadMgaaeqaaaGcbaGaamOuamaaBaaaleaacaWGIbGaam 4BaiaadwhacaWGUbGaamizaaqabaaaaaGccaGLOaGaayzkaaaaleaa caWGPbGaeyypa0JaaGymaaqaaiaad6gaa0GaeyyeIuoaaaa@46EA@ ). The default value is a reasonable approximation of the maximum ratio value and reduces instability.

External Responses

The DRESP3 Bulk Data Entry, in combination with the LOADLIB I/O Option Entry, allows for the definition of responses through user-defined external functions.

The external functions may be written in Compose Open Matrix Language (OML), Fortran, C or a Microsoft Excel workbook. The resulting libraries and files should be accessible by OptiStruct regardless of the coding language, providing that consistent function prototyping is respected, and adequate compiling and linking options are used.

Write External Functions for Optimization Responses

The OptiStruct installation provides barebone functions for Fortran (dresp3_barebone.F) and for C (dresp3_barebone.c) with proper function definition, arguments, and compilation directives.

These files can be used as starting points to write your own functions. Refer to Microsoft Excel Example for information on response definition through a user-defined Microsoft Excel workbook.

Open Matrix Language (OML) functions are defined as:
integer function myfunct(iparam, rparam, nparam,
                        iresp,  rresp, dresp, nresp, isens 
                        userdata)
Fortran functions are defined as:
integer function myfunct(iparam, rparam, nparam,
                         iresp,  rresp, dresp, nresp, isens 
                         userdata)
character*32000 userdata
integer nparam, nresp
integer iparam(nparam), iresp(nresp)
double precision param(nparam), rresp(nresp), dresp(nparam,nresp)
C functions are defined as:
int myfunct(int* iparam, double* rparam, int* nparam,
            int* iresp,  double* rresp, double* dresp, int* nresp, int* 
            isens, char* userdata)
Note: The functions' arguments are identical in both languages so as to preserve compatibility. However, since Fortran always passes arguments by address, it is important to understand that external C functions receive pointers instead of variables.
In order to ensure portability, the following must be adhered to:
  • Function names should be written using either all lower-case or all upper-case characters
  • Only alphanumeric characters should be used
  • Underscore characters are prohibited
  • Names cannot be longer than eight characters

Function Return Values

External functions should return 0 or 1 for successful completion, where 1 indicates that a user-defined information message should be output by OptiStruct. External functions should return -1 in case of fatal error, in which case OptiStruct will terminate after outputting a user-defined error message. See below for more information about error and information messages.

Function Arguments

The following table briefly describes the arguments which are passed from OptiStruct to the external functions.
Argument Type Input/Output Description
iparam integer (table) Input Input parameters types (optional use)
rparam double (table) Input Input parameters values
nparam integer Input Number of parameters
iresp integer (table) Input Output responses requests (optional use)
rresp double (table) Output Output responses values
dresp double (table) Output Output sensitivity values
nresp integer Input Number of responses
isens integer Input Sensitivity output flag
userdata string Input/Output User data/Error or information message
Parameters:
  • nparam is the number of input parameters that were defined on the DRESP3 card.
  • rparam(nparam) contains the values of the input parameters as evaluated by OptiStruct.
  • iparam(nparam) indicates the types of the input parameters as described below.

Parameter values are passed in the exact order in which they were defined on the DRESP3 card, regardless of their type. Using the Parameter Types table is optional, for instance to perform verifications or code-branching.

The following types are currently supported:
Parameter Type
iparam Value
DESVAR
1
DTABLE
2
DGRID/DGRIDB
3
DRESP1
4
DRESP2
5
DRESP1L
6
DRESP2L
7
DVPREL1
8
DVPREL2
9
DVMREL1
10
DVMREL2
11
DVCREL1
12
DVCREL2
13
DVMBRL1
14
DVMBRL2
15
DEIGV
16
DGRIDB
18
Responses:
  • nresp is the maximum number of responses which the function is able to compute, as defined on the MAXRESP field of the DRESP3 card.
  • rresp(nresp) returns the values of the responses as evaluated by the external function.
  • iresp(nresp) contains the responses requests as described below.

    The responses requests table indicates which of the available responses are actually needed by OptiStruct. Entries in iresp(nresp) are flagged as 1 for requested responses and as 0 otherwise. Using that information is optional and allows for saving computational effort by not evaluating responses which OptiStruct does not need.

Userdata String

Upon entering the function, the userdata string contains data as defined in the USRDATA field of the DRESP3 card. It provides a convenient mechanism to pass constants or any other relevant information to the function. There are no restrictions regarding the contents of the string, but its length must not exceed 32,000 characters.

Upon exiting the function, the string may contain a user-defined error or information message. The updated string is then returned to OptiStruct, where it is printed to the standard output (.out file and/or screen). Here again, the contents of the string are not restricted as long as its length does not exceed 32,000 characters.

The error or information messages may be formatted by using the character "|" as a line-break indicator. Standard C escape sequences are supported, as well. It is advised, but not necessary, to format messages in such a way that each line does not exceed 80 characters, since the same convention is used in OptiStruct output files.

Sensitivity Flag

isens indicates whether sensitivities are requested in the code. It is recommended to skip the calculation of sensitivities when isens is turned off. This will avoid unnecessary computations.

Build External Libraries for Optimization Responses

Allows building shared libraries on Windows or Linux.

Refer to Build External Libraries for more information.

External Responses using Altair Compose

Invoking Compose to specify the installation path.

If Altair Compose needs to be invoked during the OptiStruct job in case of external responses (DRESP3), the installation path for Compose must to be specified by the user.

There are 2 methods to specify the installation path from the Compute Console (ACC).
  • Preferences > Edit


    Figure 2.
  • Options field

For further details, refer to -compose in Run Options.

Regarding the implementation of external, user-defined routines using Open Matrix Language (OML), refer to the documentation for Compose OML for writing scripts.

Compose is supported on Windows and Linux operating systems.

External Optimization Responses (DRESP3) Example

Fortran and C-Shared Library

All files referenced here are located in the Altair Simulation installation directory under <install_directory>/hwsolvers/demos/optistruct. Copy the files mentioned below to your working directory to run the following examples.

Simple Example

The files dresp3_simple.F and dresp3_simple.c contain source code for simple examples of external functions written in Fortran and C, respectively. Both functions are named mysum and compute two responses - the sum of the parameters and the averaged sum of the parameters.

The input deck dresp3_simple.fem contains an example problem calling both of these external functions. Two LOADLIB cards referring to the Fortran and C libraries are defined:
LOADLIB DRESP3   FLIB   dresp3_simple_f.dll
LOADLIB DRESP3   CLIB   dresp3_simple_c.dll
You have created four DRESP3 cards, which are pointing to the Fortran and C functions and requesting the first and second responses in each of those functions. Two DRESP1 responses are used as parameters:
DRESP3 6      SUMF     FLIB    MYSUM        1       2
+      DRESP1    2        3
DRESP3 7      AVGF     FLIB    MYSUM        2       2
+      DRESP1    2        3
DRESP3 8      SUMC     CLIB    MYSUM        1       2
+      DRESP1    2        3
DRESP3 9      AVGC     CLIB    MYSUM        2       2
+      DRESP1    2        3
For verification purposes, you have also defined two DRESP2 cards that are pointing to two simple equations which evaluate the sum and the averaged sum of their parameters:
DEQATN  1       F(x,y) = x+y
DEQATN  2       F(x,y) = avg(x,y)

DRESP2  4           SUME        1
+       DRESP1         2        3
DRESP2  5           AVGE        2
+       DRESP1         2        3

Running this input deck through OptiStruct shows that the Fortran external functions, the C external functions and the internal equations always return the same values, and are updated simultaneously throughout the optimization process.

Advanced Example

The file dresp3_advanced.F contains the Fortran source code of the second example, in which you are making use of advanced features of the DRESP3 functionality.

The external function is able to compute the von Mises and maximum principal stresses (strains) of an element based on its stress (strains) components. Either 3 or 6 components can be passed as parameters - 3 components for a shell element and 6 components for a solid element. The following features are used:
  • The USRDATA string is parsed to determine whether stresses or strains are requested, and an error message is returned otherwise.
  • The number of parameters is used to determine whether a shell or solid element is treated, and an error message is returned if that number is not equal to 3 or 6.
  • An error message is returned if the parameters are not of type DRESP1 or DRESP1L, since stress or strain components are expected.
  • Even though the function is able to compute two different responses, only the response(s) actually requested by OptiStruct are computed when the function is called.
  • An information message is returned indicating which responses were evaluated.

The input deck dresp3_advanced.fem gives a simple example of problem making use of this external function, for analysis only.

The DRESP1 responses 10-12 and 13-18 correspond to the stress components of a 2D and a 3D element, respectively. The DRESP1 responses 20-23 evaluate the von Mises stress and the maximum principal stress of the same two elements:
DRESP1  10     SXX2D   STRESS  ELEM           SX1         100
DRESP1  11     SYY2D   STRESS  ELEM           SY1         100
DRESP1  12     SXY2D   STRESS  ELEM          SXY1         100
DRESP1  13     SXX3D   STRESS  ELEM           SXX          50
DRESP1  14     SYY3D   STRESS  ELEM           SYY          50
DRESP1  15     SZZ3D   STRESS  ELEM           SZZ          50
DRESP1  16     SXY3D   STRESS  ELEM           SXY          50
DRESP1  17     SXZ3D   STRESS  ELEM           SXZ          50
DRESP1  18     SYZ3D   STRESS  ELEM           SYZ          50

DRESP1  20     SVM2D-1 STRESS  ELEM          SVM1         100
DRESP1  21     SMP2D-1 STRESS  ELEM          SMP1         100
DRESP1  22     SVM3D-1 STRESS  ELEM           SVM          50
DRESP1  23     SMP3D-1 STRESS  ELEM           SMP          50
In addition, you have defined DRESP3 cards which compute the same stress results through our external library. You are also using the SECOND feature to clone the parameters of similar cards:
DRESP3  30     SVM2D-3    STRLIB  GETSTR             1       2
+       DRESP1       10       11      12 
+       USRDATA STRESS
DRESP3  31      SMP2D-3   STRLIB  GETSTR             2        2
+       SECOND         30
DRESP3  32      SVM3D-3   STRLIB  GETSTR             1        2
+       DRESP1        13      14      15     16     17       18
+       USRDATA STRESS
DRESP3  33      SMP3D-3   STRLIB   GETSTR            2        2
+       SECOND         32

Microsoft Excel Example

Microsoft Excel workbooks can be referenced via the LOADLIB entry to define user-defined responses.

Both Implicit and Explicit options are available and are defined here.

Implicit Definition
This is a simple implementation wherein two columns in an Excel worksheet are used to define the input and output parameters. Column 1 can be used to list input parameters and Column 2 can be used to list output parameters.
LOADLIB DRESP3    ELIB    dresp3_excel.xlsx
DRESP3       10      SUM    ELIB   MYSUM
+        DRESP1        5       6

response_implicit
Figure 4.
Explicit Definition
In this advanced implementation, the cell input number is specified. Cells for input and output data are listed.
LOADLIB DRESP3  ELIB    dresp3_excel.xlsx

DRESP3       20   FUNC    ELIB  MYFUNC
+        DRESP1      5       6       7      8
+        DESVAR      1
+        CELLIN     B3     THRU     B6 
+        CELLIN    C10
+        CELLOUT   E10

response_explicit
Figure 5.
1 The normal at a grid point is calculated based on the normals of the surrounding elements. The normal frequency response displacement at a grid point can be selected as a response and it is the displacement in the normal's direction. The normals are also updated when shape changes occur during shape optimization.
2 The normal at a grid point is calculated based on the normals of the surrounding elements. The normal frequency response velocity at a grid point can be selected as a response and it is the velocity in the normal's direction. The normals are also updated when shape changes occur during shape optimization.
3 The normal at a grid point is calculated based on the normals of the surrounding elements. The normal frequency response acceleration at a grid point can be selected as a response and it is the acceleration in the normal's direction. The normals are also updated when shape changes occur during shape optimization.