Phase 1: Reference Design Synthesis (Free-Size Optimization)

In free-size optimization, the thickness of each designable element is defined as a design variable. Applying this concept to the design of composites implies that the design variables are the thickness of each Super-ply (total designable thickness of a ply orientation) per element.

The following optimization setup is defined in the concept design phase to identify the stiffest design for the given fraction of the material. To obtain more meaningful results, manufacturing constraints are incorporated and carried through all design phases automatically.
Objective
Minimize the weighted compliance of the two load cases.
Constraints
Volume fraction < 0.3
Design Variables
Element thicknesses of each ply orientation.
Manufacturing Constraints
Ply percentage for the 0s no more than 80% exist.
The manufacturable ply thickness is 0.1.
A balance constraint that ensures an equal thickness distribution for the +45s and -45s.

Launch HyperMesh and Set the OptiStruct User Profile

  1. Launch HyperMesh.
    The User Profile dialog opens.
  2. Select OptiStruct and click OK.
    This loads the user profile. It includes the appropriate template, macro menu, and import reader, paring down the functionality of HyperMesh to what is relevant for generating models for OptiStruct.

Import the Model

  1. Click File > Import > Solver Deck.
    An Import tab is added to your tab menu.
  2. For the File type, select OptiStruct.
  3. Select the Files icon files_panel.
    A Select OptiStruct file browser opens.
  4. Select the fairing.fem file you saved to your working directory.
  5. Click Open.
  6. Click Import, then click Close to close the Import tab.

Set Up the Optimization

Create Free-size Optimization Design Variables

  1. From the Analysis page, click the optimization panel.
  2. Click the free size panel.
  3. Create the design variable fairing.
    1. Select the create subpanel.
    2. In the desvar= field, enter fairing.
    3. Set type to PCOMP(G).
    4. Using the props selector, select fairing_ply.
    5. Click create subpanel.
    The design variable fairing is created for the free-size optimization.
  4. Define the manufacturing constraints on ply percentage and ply balance.
    1. Select the composites subpanel.
    2. Verify fairing is selected in the desvar= field.
    3. Click edit.
    4. In the DSIZE card image, select PLYPCT.
    5. Set Ply Percentage Options to BYANG.
    6. In the DSIZE_NUMBER_OF_PLYPCT = field, enter 1.
      A PLYPCT continuation line is added to the DSIZE Data Entry.
    7. Select PLYMAN.
      A PLYMAN continuation line is added to the DSIZE Data Entry.
    8. Select BALANCE.
    9. In the DSIZE_NUMBER_OF_BALANCE= field, 1.
      A BALANCE continuation line is added to the DSIZE Data Entry.
    10. Define the PLYPCT, BALANCE and PLYMAN constraints as shown in Figure 1.

      3200card
      Figure 1. DSIZE Data Entry Fields
    11. Click return to go back to the Composites panel.
    12. Click update.
  5. Click return and go back to the Optimization panel.

Create Optimization Responses

  1. From the Analysis page, click optimization.
  2. Click Responses.
  3. Create the volume fraction response.
    1. In the responses= field, enter Volfrac.
    2. Below response type, select volumefrac.
    3. Set regional selection to total and no regionid.
    4. Click create.
  4. Create the weighted component response.
    1. In the responses= field, enter wcomp.
    2. Below response type, select weighted comp.
    3. Click loadsteps, then select all loadsteps.
    4. Change the weighting factors for gravity and pressure to 1.0.
    5. Click return.
    6. Click create.
  5. Click return to go back to the Optimization panel.

Create Design Constraints

  1. Click the dconstraints panel.
  2. In the constraint= field, enter con_vol.
  3. Click response = and select volfrac.
  4. Check the box next to upper bound, then enter 0.3.
  5. Click create.
  6. Click return to go back to the Optimization panel.

Define the Objective Function

  1. Click the objective panel.
  2. Verify that min is selected.
  3. Click response= and select wcomp.
  4. Click create.
  5. Click return twice to exit the Optimization panel.

Define the Output Request

In this step you will define the output control on composite strain and stress results. OUTPUT,FSTOSZ (free size to size) is used to output a ply-based input deck for size optimization.
  1. From the Analysis page, click the control cards panel.
  2. Define the GLOBAL_OUTPUT_REQUEST card.
    1. In the Card Image dialog, click GLOBAL_OUTPUT_REQUEST.
    2. Select CSTRAIN and CSTRESS.
    3. Define the options shown in Figure 2 to output all composite strain and composite stress results for all elements to the H3D file.
    4. Click return.

      3200cstrain
      Figure 2. Request CSTRAIN and CSTRESS Results Output to the .h3d File
  3. Define the OUTPUT card.
    1. Click OUTPUT.
    2. In the number_of_outputs field, enter 1.
    3. Set KEYWORD to FSTOSZ.
    4. Set FREQ to YES.
    5. Click return.
    OptiStruct automatically generates a sizing model after free-size optimization.

    os3200_output
    Figure 3. Request the Free-size to Size (FSTOSZ) Optimization Output File for Phase 2

Run the Optimization

  1. From the Analysis page, click OptiStruct.
  2. Click save as.
  3. In the Save As dialog, specify location to write the OptiStruct model file and enter fairing_freesize for filename.
    For OptiStruct input decks, .fem is the recommended extension.
  4. Click Save.
    The input file field displays the filename and location specified in the Save As dialog.
  5. Set the export options toggle to all.
  6. Set the run options toggle to optimization.
  7. Set the memory options toggle to memory default.
  8. Click OptiStruct to run the optimization.
    The following message appears in the window at the completion of the job:
    OPTIMIZATION HAS CONVERGED.
    FEASIBLE DESIGN (ALL CONSTRAINTS SATISFIED).
    OptiStruct also reports error messages if any exist. The file fairing_freesize.out can be opened in a text editor to find details regarding any errors. This file is written to the same directory as the .fem file.
  9. Click Close.
The default files that get written to your run directory include:
fairing_freesize.out
OptiStruct output file containing specific information on the file setup, the setup of the optimization problem, estimates for the amount of RAM and disk space required for the run, information for all optimization iterations, and compute time information. Review this file for warnings and errors that are flagged from processing the fairing_freesize.fem file.
fairing_freesize_des.h3d
HyperView binary results file that contain optimization results.
fairing_freesize_s#.h3d
HyperView binary results file that contains from linear static analysis, and so on.
fairing_freesize_sizing.*.fem
A ply-based sizing optimization input file generated during free-sizing phase. This resulting deck contains PCOMPP, STACK, PLY, and SET cards describing the ply-based composite model, as well as DCOMP, DESVAR, and DVPREL cards defining the optimization data. The * sign represents the final iteration number.
fairing_freesize_sizing.*.inc
An ASCII include file contains the same ply-based modeling and optimization data as in the input deck. The * sign represents the final iteration number.

View the Results

View the Element Thickness Results

  1. From the OptiStruct panel, click HyperView.
    HyperView launches and opens the fairing_freesize.mvw session file, which contains three pages with the results from three H3D files.
    Page 1
    Optimization results in fairing_freesize_des.h3d.
    Page 2
    Analysis results of subcase 1 in fairing_freesize_s1.h3d.
    Page 3
    Analysis results of subcase 2 in fairing_freesize_s2.h3d.
  2. Verify that you are on page 1.
  3. On the Results toolbar, click resultsContour-16 to open the Contour panel.
  4. In the Results Browser, select the last iteration.

    os3200_iteration9
    Figure 4. Select the Final Iteration
  5. Click Apply.
  6. On the Standard Views toolbar, click viewAxisOrientationYXTop-24 to view the results in the X-Y plane.
The element thickness results from the free-size optimization are shown in Figure 5. The regions indicated in red or in colors tending towards red (from the legend) can be interpreted as thicker regions, while those in blue or tending towards blue are thinner regions. The contour plot indicated above is the total thickness distribution that includes contributions from each ply orientation, that is, a thickness contribution from the 0s, +/-45s and the 90s. It also indicates the shape and layout of plies per orientation as can be seen in the ply thickness plot.

3200_elem_thickness
Figure 5. Element Thicknesses Contour Plot after Free-size Optimization

View the Ply Thickness Results

  1. From the Contour panel, set the Result type to Ply Thicknesses (s).
  2. Select the other plot options as indicated in Figure 6.

    3200ply_thick
    Figure 6. Ply Thicknesses Contour Plot
  3. In the Results Browser, select the last iteration.
  4. Click Apply.
    The thickness distribution of 0 degree super ply is generated. It represents the ply shapes and patch locations of the 0 degree ply bundles.

    3200_ply_thickness
    Figure 7. Ply Thickness Contour Plot . of the 0 degree super-ply
  5. Create the ply thickness contours for super-ply 2 (45°), 3 (-45°), and 4 (90°) by selecting Layers 2, 3 and 4, respectively in the Contour panel.
    Due to the balance constraint applied, the thickness distribution of the +45° and the -45° super ply are the same.

    3200_ply_45
    Figure 8. Ply Thickness Contour Plot. of the -45/+45 degree super-plies

    3200_ply_90
    Figure 9. Ply Thickness Contour Plot . of the 90 degree super-ply

View the Ply Bundles through Element Sets

The optimized 'Super-ply' thickness is subsequently represented as 'Ply Bundles'. Four ply bundles per fiber orientation (Super ply) are output by default, based on an intelligent algorithm in OptiStruct. These ply bundles represent the shape and location of the plies per fiber orientation through element sets. In this case, a total of 16 ply bundles are created after free size optimization converges: element sets 1 through 4 represent the ply bundles for 0 degree super-ply; element sets 5 through 8 represent ply bundles for +45° super-ply; element sets 9 through 12 represent ply bundle -45° super-ply; element sets 13 through 16 represent ply bundles for 90° super-ply.
  1. Go back to the HyperMesh session.
  2. Import the solver deck fairing_freesize_sizing.*.inc, located in the same directory where the file fairing_freesize.fem, into the current session.
  3. In the Model Browser, right-click on the Load Collectors folder and select Hide from the context menu.
    The display of all load collectors is turned off.
  4. From the Analysis page, click the entity sets panel.
  5. Click review and select set 5.
    set 5 represents the ply bundle 1 of the +45° orientation super-ply.
    Tip: You can review ply bundles in the Model Browser, Plies folder. Click any ply to view it's corresponding card data in the Entity Editor.

    3200_ply_bundle
    Figure 10. Element set 5 representing ply bundle 1 of the +45 degree super ply
  6. Review the element sets 6 though 8.

    3200_ply_bundle2
    Figure 11. Element set 6 representing ply bundle 2 of the +45 degree super ply

    3200_ply_bundle3
    Figure 12. Element set 7 representing ply bundle 3 of the +45 degree super ply

    3200_ply_bundle4
    Figure 13. Element set 8 representing ply bundle 4 of the +45 degree super ply
The shapes of the plies as indicated through the element set can be used as-is in design Phase 2: Design Fine Tuning (Size Optimization), or modified easily by updating the element sets in HyperMesh to improve the manufacturability. In this case, the element sets are used as-is.