Tutorial: Optimizing a Part with Motion
Learn how to optimize a part using motion analysis results.
In this lesson you will learn how to:
- Ground a part
- Create rigid groups
- Add joints and an angle motor
- Run both transient and statics motion analyses
- Apply shape controls and symmetry
- Optimize a part using motion analysis results
Open the CAD model
- Press F7 to open the Demo Browser.
-
Double-click the M04_YBracket.x_t file in the Motion
folder to load it in the modeling window.
- If not already visible, press F2 to open the Model Browser.
- Check that the display units are set to MKS.
Ground a Part
- Select the Motion tab on the ribbon.
-
Select the Ground tool from the Connections group.
-
Select the Shaft part to ground it.
The part turns red, indicating it is a ground part.
- Right-click and mouse through the check mark to exit, or double-right-click.
Create Rigid Groups
-
Select the Mounts assembly in the Model Browser.
The parts in the assembly are selected in the modeling window.
-
Select the Rigid Groups tool.
The selected parts turn red.
-
Click the floating Create New Group button to place the
parts you selected into a new group.
- From the model browser, select the Y-Bracket assembly.
-
Click Create New Group to create another rigid group that contains the Bracket
and Boss parts.
- Right-click and mouse through the check mark to exit, or double-right-click.
- Close the Model Browser and press F to fit the model in the view.
Connect Parts together with Joints
-
Select the Joints tool.
The guide bar appears with default settings (All, Auto).
-
Click the button on the guide bar.
Notice that four joints were created, two pin joints between moving parts in the model, and two cylindrical joints where the Y-Bracket is connected to ground.
- Right-click and mouse through the check mark to exit, or double-right-click.
Add an Angle Motor to Control Part Angles
-
Select the Motors tool.
- Rotate the model to see the Flywheel part.
-
For the first connection, click the inside hole of the boss on the
Flywheel.
The selected hole feature turns red. This is the shaft connection point.
-
Click on the hole a second time.
This makes the base connection for the motor react against ground. A motor appears and the microdialog has the default setting of being a speed motor.
-
In the microdialog, change the motor Type from Speed to
Angle. (This is required for running a statics
analysis, which you will do later in this tutorial.)
- Change the magnitude to 360 deg.
- Change the Profile Function to Ramp.
- Press the F3 button to open the Property Editor.
-
Under the Profile category for Motor 1, change the
Duration to 1 s.
- Right-click and mouse through the check mark to exit, or double-right-click.
- Close the Property Editor.
Set the Gravity Direction
-
Select the Right view in the view controls to view the
model from the side.
-
Select the Gravity tool.
-
Notice that a vector is displayed in the modeling window which indicates the
direction of gravity.
- Click the Move icon on the microdialog.
-
Reorient the gravity vector by clicking and dragging the rotator or by entering
15 deg in the microdialog to tilt the vector towards
the Flywheel, as shown:
- Right-click and mouse through the check mark to exit, or double-right-click.
Run a Motion Analysis to View the Mechanism's Behavior
-
Position the model as shown.
-
Click the Quick Run button on the Analyze Motion icon to
see the model in motion.
Notice that the ground parts remain stationary and the other parts move as they are being driven by the motor.
- Click the Quick Run button again to stop the analysis (if it is still running).
- Double-right-click, or click the Review Motion Results tool to exit review mode.
Change the Analysis Type to Statics and Rerun the Analysis
-
Hover over the Analyze Motion tool, then click the
Run Settings icon to open the Run Motion Analysis
window.
-
Change the End Time to 1 s and
select the Statics option.
-
Click Run to perform a pilot run.
This statics run configuration will be used for subsequent part optimization.
- Click Close to dismiss the Run Motion Analysis window.
Review the Motion Analysis Results
-
Change the Time on the animation toolbar to
0.70 s by entering a value in the field or by
dragging the slider bar.
-
Select Joint 3 in the Model Browser to plot the joint
force results.
Notice that the loading in the cylindrical joint changes as the mechanism operates.
-
Right-click on the plot and select Torque.
Notice that you also see some variation in the torques as the angle of the Y-Bracket changes with respect to gravity.
- Dismiss the plot by clicking on empty space.
- Right-click and mouse through the check mark to exit, or double-right-click.
Define the Design Space
-
Right-click on the Bracket part to open the context
menu, and select Design Space.
-
Click on empty space to deselect the Bracket part.
Notice its color has changed to reddish brown, indicating that it is a design space. The boss parts remain gray in color since they are considered non-design spaces.
Apply Symmetry and Shape Controls to the Design Space
- Click the Structure tab on the ribbon.
-
Select the Apply Symmetric Controls button from the
Shape Controls tool.
-
Make sure the Symmetric tool is selected on the
secondary ribbon.
-
Select the Bracket design space.
The default symmetry planes appear.
-
Click on the symmetry plane aligned with Global XZ plane to disable it.
The plane appears transparent, as shown.
- Right-click and mouse through the check mark to exit, or double-right-click.
-
Select the Apply Draw Directions button from the Shape
Controls tool.
-
Choose the Split Draw option from the secondary
ribbon.
-
Select the Bracket design space.
The default draw direction plane appears as shown.
- Right-click and mouse through the check mark to exit, or double-right-click.
Running an Optimization
To run an optimization, open the Run Optimization window, select a run type and objective, and click Run.
Before optimizing a part, run a static motion analysis.
(Note that transient analyses are also supported for optimization, but in this tutorial
we are going to ignore dynamic effects and just use the static solution.)
- Click the Motion tab on the ribbon.
-
Click the Quick Run button on the Analyze Motion tool
and let the model run to completion to generate the baseline motion analysis
results that will be used for part optimization.
-
Click Run Optimization
on the Optimize Part icon. The bracket is
automatically selected as it is the only design space available to
optimize.
-
Change the Name in the Run Optimization window to
Bracket_2Sym_CylCyl to indicate that you will be
optimizing the part based on having two cylindrical joints for the connections
to ground.
- Change the Minimum Thickness Constraint to .02 m.
- Click Run to perform the part optimization. A green check mark appears in the Run Status window when the optimization is complete.
-
Double-click on the name of the run in the Run Status window. (Alternatively,
you can open the M04_YBracket_run.stmod file to view the results). The optimized
shape is displayed.
Note: If you had run the model with the default minimum thickness of .011811 m, the result would have been smoother but taken significantly longer to run. -
Select Switch to Design Spaces in the Shape Explorer to
view the original design space.
Note: If you opened the .stmod file with the run results, click the Show Optimization Results tool on the Optimized Part icon to open the Shape Explorer. - Right-click and mouse through the check mark to exit, or double-right-click.
Change the Joint Type for Connections to Ground
-
Select the Joints tool.
-
Box select the two cylindrical joints from the graphics window, or multi-select
them in the Model Browser by using the Ctrl key.
- Change the joint type from Cylindrical to Ball and Socket in the microdialog.
- Right-click and mouse through the check mark to exit, or double-right-click.
Rerun the Part Optimization
-
Click Run Optimization on the Optimize Part icon.
-
Notice this time an alert box appears.
This lets you know that because you made changes to the joint connections, you will need to run a motion analysis for the current model before you can optimize a design space.
- Select the Run button to perform the motion analysis.
-
Click Run Optimization on the Optimize Part icon
again.
- Select Bracket as the design space to optimize.
- In the Run Optimization window change the Name to Bracket_2Sym_BallBall.
-
Click Run to perform the part optimization.
A green check mark appears in the Run Status window when the optimization is complete.
-
Double-click on the name of the run in the Run Status window (or open the
M04_YBracket_run.stmod file from the Demo Browser to
view the results).
The new optimized shape is displayed.
- Select Switch to Design Spaces in the Shape Explorer to view the original design space or review the optimized shape that you'd generated earlier.
- Right-click and mouse through the check mark to exit, or double-right-click.
-
To see the effect of removing a symmetry plane:
- Double-click on the symmetry planes, then click on the one aligned with Global YZ plane to disable it.
- Rerun optimization to see how the shape has changed when there is only one symmetry plane (Global XY).
-
To see the effect of closely aligning gravity vector with mechanism
travel:
- Change gravity direction to Global -Z direction.
- Rerun optimization to see how the shape has changed when gravity is aligned with the vertical movements of the model.