MSC Adams Tutorial
MSC Adams Tutorial
MSC Adams Tutorial
This guide provides overview information and step-by-step procedures for building, simulating, and refining a model using ADAMS/View software. You will solve an actual design problem, as you construct a hand latch for closing large containers. In the process, you will learn how to use the features of ADAMS/View to solve your own design problems, from concept to finished product.
Select an entry below to get started:
Introducing the Latch Design Problem 3 Building Your Model 9 Testing Your First Prototype 27 Reviewing Results Against Physical Test Data 39 Improving Your Design 45 Iterating Your Design 51 Optimizing Your Design 59 Automating the Design Process 67 Main Toolbox 77
The information in this document is furnished for informational use only, may be revised from time to time, and should not be construed as a commitment by MSC.Software Corporation. MSC.Software Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document. Copyright Information This document contains proprietary and copyrighted information. MSC.Software Corporation permits licensees of MSC.ADAMS software products to print out or copy this document or portions thereof solely for internal use in connection with the licensed software. No part of this document may be copied for any other purpose or distributed or translated into any other language without the prior written permission of MSC.Software Corporation. Copyright 2004 MSC.Software Corporation. All rights reserved. Printed in the United States of America. Trademarks ADAMS, EASY5, MSC, MSC., MSC.ADAMS, MSC.EASY5, and all product names in the MSC.ADAMS Product Line are trademarks or registered trademarks of MSC.Software Corporation and/or its subsidiaries. NASTRAN is a registered trademark of the National Aeronautics Space Administration. MSC.Nastran is an enhanced proprietary version developed and maintained by MSC.Software Corporation. All other trademarks are the property of their respective owners. Government Use Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in FAR 12.212 (Commercial Computer Software) and DFARS 227.7202 (Commercial Computer Software and Commercial Computer Software Documentation), as applicable.
Performing simulations as you build up your model. Simulating the motion of the model as it would perform in actual operation.
Viewing the results of the simulations. Comparing physical test data with the results of the virtual simulation.
Refining your model so your virtual test data matches your physical test data. Iterating your design to assess the sensitivity of its performance to various design changes. Optimizing your design to find the best combination of design parameters to achieve maximum performance.
Finally, you can automate the design process steps so you can quickly evalutate various design options.
Construct and connect four latch parts Verify that parts and connections have been created properly
Build
Construct test environment Instrument the model with measures of clamping force and toggle angle Apply proper input loads Plot clamping force versus angle of handle Import test data to compare with simulation data
Test
Review
Refine Parameterize the critical point locations Iterate: Study the effect of moving the pivot base on the clamping force Find sensitivity of clamping force to movements in any critical point Optimize Maximize clamping force by moving critical point locations Ensure the latch toggles properly Ensure mechanism stays within envelope Create various handle force magnitudes
Improve
Automate
Operating handle
Hook
Coupling member
Design Requirements
The latch model must meet the following design requirements:
Exerts at least 800 N clamping force. Is hand-actuated by less than 80 N force. Is hand released with minimal effort. Must work within a given envelope. Clamping remains secure under vibration.
coming to rest on the top of the hook. This sets the latch near the maximum force point, but allows a reasonable release force to open the latch.
Figure 3. ADAMS/View Latch Model
Handle
Hook (L = 1cm)
POINT_2 (3,3,0)
POINT_1 (0,0,0)
Based on the description of the latch operation, the relative layout of POINT_1 through POINT_9 is important in ensuring that the latch will meet the design requirements. Therefore, when your latch model is assembled and tested, you will want to change the relative locations of the points to see their effect on the design requirements.
Building the Pivot and Handle, 11 Building the Hook and Slider, 22
Figure 4 on page 10 shows the latch as it should look when you have
finished it.
10
POINT_4 (-10,22,0)
Handle
POINT_8 (-1,10,0) Slider POINT_3 (2,8,0) POINT_2 (3,3,0) Pivot (Width = 1cm Radius = 1cm)
POINT_1 (0,0,0)
Status bar
Coordinate window
11
Starting ADAMS/View and Creating a Database, 11 Familiarizing Yourself with ADAMS/View, 13 Setting Up Your Work Environment, 15 Creating Design Points, 16 Creating the Pivot, 17 Renaming the Pivot, 18 Creating the Handle, 19 Connecting the Parts Using Revolute Joints, 19 Simulating the Motion of Your Model, 20 Seeing the Effect of Parameterization, 21
12
At the command prompt, enter the command to start the MSC.ADAMS Toolbar, and then press Enter. The standard command that MSC.Software provides is adamsx, where x is the version number, for example adams05. The MSC.ADAMS Toolbar appears.
The Welcome dialog box appears on top of the ADAMS/View main window.
To start ADAMS/View in the Windows environment:
1 2
Select Start. Point to Programs, point to MSC.Software, point to MSC.ADAMS 2005, point to AView, and then select ADAMS - View. The Welcome dialog box appears.
Select Create a new model. Replace the contents of the Model name text box with Latch. Select OK.
13
In the lower right corner of the main ADAMS/View window, select the Toolbox tool . The Main Toolbox appears on the left side of the screen.
In the Main Toolbox, right-click on one of the tools that has a small triangle in the lower right corner, as shown in the first illustration in Figure 5 on page 14. A tool stack appears.
Move the cursor over the tool you want to use, and click. The bottom half of the Main Toolbox, the container, changes depending on the tool or tool stack that you select, as shown in the second illustration in Figure 5 on page 14.
14
The Select tool is also helpful in many other situations. For example, by selecting the Select tool you can cancel an operation, such as creating an object. You can also clear the selection of any objects.
Use the online help to read overviews, procedures, and see many examples. From the Help menu, select ADAMS/View Help. Use the dialog box help to learn about entering values in a dialog box or using an ADAMS/View tool. While working in a dialog box, press the F1 key.
For more information about getting help in ADAMS/View, see the printed Release Guide that comes with your license.
15
From the Settings menu, select Units. The Units Settings dialog box appears.
2 3 4
Set the units of length to centimeter. Select OK. From the Settings menu, select Working Grid. The Working Grid Settings dialog box appears.
Set the grid size along X and Y to 25, and the grid spacing for X and Y to 1.
Note: You do not need to enter units because ADAMS/View
uses the default units if you do not specify them. However, because you set the units to centimeters earlier, ensure that you do not enter mm after the values in the Size and Spacing text boxes.
6 7
Select OK. From the Settings menu, select Icons. The Icon Settings dialog box appears.
text boxes means that the text box is optional and you do not have to enter a value to execute the command.
9 10
Near the bottom of the Icon Settings dialog box set Name Visibility to On. Select OK.
16
From the View menu, select Coordinate Window. The Coordinates window appears.
Move your cursor around the screen and notice the coordinate location labels that appear in the Coordinates window and next to the cursor.
During this tutorial, you will find it very helpful to have the Coordinates window open because you will place many objects based on their coordinate location.
From the Main Toolbox, select the Select tool, and then select the Dynamic Pick tool to zoom in on your grid. To learn how to use the Main Toolbox, see
Familiarizing Yourself with ADAMS/View on page 13.
2 3
Drag the cursor across the area of the working grid display. Right-click the Rigid Body tool stack (Link tool is on top by default) to display the tool stack containing the Point tool. Select the Point tool and click the locations shown in Table 1 on page 17 to place design points. Use the default settings for point, which are Add to Ground and Dont Attach.
Note: To create multiple points without having to select the Point tool again, double-click the tool. To deselect the Point tool, select the Select tool.
17
Table 1. Points Coordinate Locations X location: POINT_1 POINT_2 POINT_3 POINT_4 Y location: Z location:
0 3 2 -10
0 3 8 22
0 0 0 0
. Tip: Right-click the Point tool, and then select the Plate
In the Main toolbox, in the Thickness text box, enter 1, and then press Enter.
Note: Pressing Enter every time you enter text into a text box ensures that
In the Radius text box, enter 1, and then press Enter. Click the location of POINT_1, POINT_2, and POINT_3.
Note: The ADAMS/View status bar provides instructions on how to perform
operations. When you move your cursor on the screen during an operation, the status bar displays what you should do next. The status bar is located below the ADAMS/View main window. For the location of the status bar, see Figure 4 on page 10.
5
18
Point to Part: PART_2, and then select Rename. The Rename Object dialog box appears.
19
Click POINT_3, then POINT_4 to create a link between the two points.
Note: Only attach the link to a point when that point label is visible.
Rename the link part, Part: PART_3, to handle, to represent the handle part as shown in Figure 4 on page 10.
To select the parts to attach, click the pivot and ground (the background). Click POINT_1 to set the joints location. The revolute joint at POINT_1 should look like this:
20
Note: If you did not change the icon size as explained in Step 7 on page 15,
you will not see the revolute joint on the screen. Go back and change the icon size as explained in Step 7. In the Icon Settings dialog box, be careful not to accidentally turn off the display of icons.
4 5
Select the Revolute Joint tool again. Select the pivot, the handle, and POINT_3.
Set up a simulation with an end time of 1 second and 50 steps. Select the Simulation Start tool .
At this step in the creation of the latch, the model is effectively a double pendulum falling due to the influence of gravity. This illustrates one of the advantages of interactive model building. Namely, that you can interrogate the behavior of the model even though the model is not complete.
21
Point to Point: POINT_1, and then select Modify. The Table Editor appears, listing the points in your model and their locations.
3 4
Set the x location for POINT_1 to -2. Near the top right corner of the Table Editor, select Apply.
POINT_1, along with the joint and the pivot, move to the new location. Note: You can move the Table Editor out of the way by clicking and dragging its
22
Creating the Hook and the Slider, 22 Connecting the Parts Using Revolute Joints, 24 Simulating Your Model, 25 Saving Your Database, 25
Be sure that Create profile by: is set to Points and Closed is selected. Select Path: to About Center. In the Length text box, enter 1, and then press Enter. Click the locations listed in Table 2 on page 23.
23
To close the extrusion, right-click. Small boxes, called hot points, appear at the vertices of the extrusion.
Note: Sometimes ADAMS/View snaps to the nearest object instead of snapping to a coordinate value. To override this, hold down the Ctrl key and move
3 5 6 6 5 3 1 1 3 3 2
0 0 0 0 0 0 0 0 0 0 0
Note: If you make a mistake while creating the extrusion, continue creating the
extrusion, and then, at the end, use the extrusion hot points to place the points in the correct locations. You can also use the Undo tool to cancel any of the changes you made. You can undo up to 10 actions.
7 8
Right-click to stop selecting locations and create the geometry. Rename the extrusion part to hook.
24
Create two more design points, POINT_8 and POINT_9, at the locations shown in Table 3.
Table 3. Points Coordinate Locations X location:
POINT_8 POINT_9
Y location:
Z location:
-1 -6
10 5
0 0
2 3
Create a link connecting these two new design points. Again, before you click, make sure the point labels are visible. Rename the link part to slider.
Place revolute joints at the following locations using the construction method 2 Bod - 1 Loc, and Normal To Grid:
Between the handle and the slider at POINT_8. Between the slider and the hook at POINT_9. Between the hook and the pivot at POINT_2. You can see the names of objects that are in the same location by rightclicking on the objects. A shortcut menu appears with the names of all the objects at that location. This is also helpful if you have forgotten the names of objects.
Tip:
25
Select the Simulation tool. Run a .2 second, 200-step simulation. Select the Reset tool to return to the initial model configuration.
From the File menu, select Save Database As, and then save the file as build.
26
Creating the Ground Block, 29 Adding a Three-Dimensional Contact, 29 Adding a Spring, 31 Creating a Handle Force, 32 Creating a Measure on the Spring Force, 33 Creating an Angle Measure, 34 Creating a Sensor, 36 Saving Your Model, 37 Simulating Your Model, 37
If you choose not to work through the tutorial in sequential order and want to start here, import the file build.cmd from install_dir/aview/examples/Latch/, where install_dir is the directory where MSC.ADAMS is installed.
28
Figure 6 shows how your model should look at the end of the test phase.
Figure 6. Latch Model in Test Phase
Handle
POINT_3 (2,8,0)
Hook (L = 1cm)
POINT_2 (3,3,0)
POINT_1 (0,0,0)
29
2 3
Click at location (-2, 1, 0) and drag to (-18, -1, 0). Alternatively, you can click at the start location and then click again at the end location. Rename the part ground to ground_block.
From the Force (Connector) tool stack, select the Contact tool The Create Contact dialog box appears.
2 3 4
Right-click the I Solid text box, point to Contact_Solid, and then select Pick. Select the hook (EXTRUSION_7). Now do the same for the J Solid text box, selecting the ground_block (BOX_11). Because you will use the default values for the contact force, select OK.
30
Select the Select tool, and then select the Fit tool
ADAMS/View fits your entire model into the current window. It should look similar to the one shown here:
31
Adding a Spring
The spring between the hook and ground represents the clamping force when the hook engages the container. The spring should have a stiffness coefficient of 800 N/cm and a
s - , so that a hook movement of 1.0 cm gives a large clamping ---------damping coefficient of 0.5 N cm
force. As you create the spring, ADAMS/View automatically creates markers to define the location and orientation of the spring. Because the hook vertex is not in the plane of the model, after you create the spring, you should modify the marker at the vertex so the spring is in the plane of the model.
To add a spring:
1
to move your model to the right, to give yourself to create a spring between
Select the Translational Spring-Damper tool the ground and the hook.
3 4 5
In the Spring container of the Main Toolbox, select the toggle for spring stiffness coefficient, K, and for damping coefficient, C. Set K to 800 and C to 0.5. To add the spring, click at the following locations:
Hook vertex, .HOOK.EXTRUSION_7.V16, near location (-14, 1, 0), making sure to select the vertex and not a point near it.
Tip:
To ensure that you select the hook vertex, right-click with the cursor near the vertex location (-14,1,0). A select list appears with all the vertices in the area. Select vertex 16.
(-23, 1, 0)
32
To modify a marker:
1
Point to Marker: MARKER_24, and then select Modify. The Marker Modify dialog box appears.
In the Location text box, change the location to (-14.0, 1.0, 0.0). ADAMS/View puts the spring in the plane of the model.
4 5
Select OK. Use the View Fit tool to fit your model to the screen.
Select the Force (Single-Component) tool and do the following in the Force container on the Main Toolbox:
Set Run-time Direction to Space Fixed. Set the Characteristic to Constant. Select Force, and then set it to 80.
The handle A marker near POINT_4, the handle end point The location -18, 14, 0
33
Right-click the spring, point to Spring: SPRING_1, and then select Measure. The AssemblyMeasure dialog box appears.
2 3
Set Characteristic to force. Select OK. The spring measure strip chart appears.
Run a 0.2 second, 50-step simulation. A graph of the clamping force appears during the simulation, as shown next:
34
From the Build menu, point to Measure, point to Angle, and then select New. The Angle Measure dialog box appears.
2 3 4
In the Measure Name text box, enter the measure name as overcenter_angle. Right-click the First Marker text box, point to Marker, and then select Pick. Pick the markers to enter in your measure as shown in row 1 of Table 4 on page 35 and illustrated in Figure 7 on page 35.
Note: Do not pick markers that belong to ground, because markers used in the
35
Repeat the above two steps for the Middle Marker and Last Marker.
Table 4. overcenter_angle Measure Markers Angle points: Marker location: Coordinate values:
Any marker at POINT_8 Any marker at POINT_3 (angle vertex) Any marker at POINT_9
POINT_3 (2,8,0)
POINT_9 (-6,5,0)
36
Creating a Sensor
You now create a sensor to detect when overcenter_angle goes below zero, meaning that the latch has toggled properly. When this condition is met, the sensor automatically stops the simulation.
To create a sensor:
1
From the Simulate menu, point to Sensor, and then select New. The Create Sensor dialog box appears.
Modify the Create Sensor dialog box as shown next, and then select OK:
Sensor name (SENSOR_1) Type of expression to use (Run-Time Expression) Measure you already have (overcenter_angle)
Use angular values Set sensor so when overcenter_angle becomes less than or equal to 0, the simulation stops Displays the allowed error between the targeted value and the actual sensed value Select to stop the simulation when event sensed
Note: If you get an error when trying to create the sensor, type in a new name for the sensor, press Enter, and then continue filling in the dialog box as shown above.
37
From the File menu, select Save Database As, and then save this file as test.
Select the Simulation tool and run a 0.2-second simulation with 100 steps. As the simulation proceeds, ADAMS/View updates the strip charts for the spring force and angle measures to show that the sensor stopped the simulation. A message window also appears alerting you that ADAMS/View stopped the simulation because of the sensor. These strip charts show that ADAMS/View stopped the simulation as the latch reached the toggle point:
38
Importing Physical Test Data, 40 Creating a Plot Using Physical Test Data, 41 Modifying Your Plot Layout, 43 Creating a Plot Using Virtual Test Data, 44 Saving Your Model, 44
If you choose not to work through the tutorial in sequential order and want to work through it starting here, import the file test.cmd from install_dir/aview/examples/Latch/, where install_dir is the directory where MSC.ADAMS is installed. After importing test.cmd, simulate your model as shown on page 37.
40
Getting Started Using ADAMS/View Reviewing Results Against Physical Test Data
From the File menu, select Import. The File Import dialog box appears.
2 3 4 5 6
Set the File Type to Test Data. Make sure that the Create Measures option is selected. Right-click the File to Read text box, point to Search, and then select $aview_dir/examples/Latch. From the File Selection dialog box, select test_dat.csv. In the text box to the right of the Model Name menu, enter .Latch. Select OK. data.
Note: Because this is test data, nothing appears on the screen when you import the
Getting Started Using ADAMS/View Reviewing Results Against Physical Test Data
41
On the Review menu, select Postprocessing or press F8. ADAMS/View launches ADAMS/PostProcessor (see Figure 8), a post-processing tool that lets you view the results of simulations you performed. ADAMS/PostProcessor has several modes, including plotting (default), animation, and report, as shown in the first pull-down menu on the menu toolbar. Take a minute to familiarize yourself with ADAMS/PostProcessor. For more information, see the ADAMS/PostProcessor online help.
Figure 8. ADAMS/PostProcessor
Viewports
Page Treeview
Property editor
Dashboard
Status toolbar
42
Getting Started Using ADAMS/View Reviewing Results Against Physical Test Data
2 3 4
At the bottom left of the dashboard, set Source to Measures. From the Simulation list, select test_dat. At the bottom right of the dashboard, set Independent Axis to Data. A browser, named Independent Axis Browser, appears. It lets you select data for the horizontal axis.
5 6 7 8
.
Select MEA_1. Select OK. From the dashboard, from the Measure list, select MEA_2, for the vertical axis data. Select Add Curves to add the new data to the plot. ADAMS/PostProcessor displays the plot of x against y as shown next:
Getting Started Using ADAMS/View Reviewing Results Against Physical Test Data
43
From the treeview, double-click page_1. Select plot_1. In the property editor, under the tab General, clear the selection of Auto Title. In the Title text box, enter Latch Force vs. Handle Angle. Press Enter. From the treeview, double-click plot_1. From the treeview, select haxis. In the property editor, select the tab Labels. In the Label text box, enter Degrees, and then press Enter. Repeat the procedure for vaxis, labeling it Newtons.
From the treeview, select curve_1. In the Legend text box, enter Physical Test Data, and then press Enter. Your plot should look similar to the one shown next:
44
Getting Started Using ADAMS/View Reviewing Results Against Physical Test Data
In the dashboard, from the Simulation list, select Last_Run (...). Set Independent Axis to Data. The Independent Axis Browser appears.
3 4 5 6 7
Select overcenter_angle, for the horizontal axis data. Select OK. From the Measure list, select SPRING_1_MEA_1, for the vertical axis data. Select Add Curves. Change the legend text for this curve (curve_2) to Virtual Test Data.
From the File menu, select Save Database As, and then save the file as validate.
If you choose not to work through the tutorial in sequential order and want to work through it starting here, import the file test.cmd from install_dir/aview/examples/Latch/, where install_dir is the directory where MSC.ADAMS is installed.
46
Right-click the design point POINT_1 (0, 0, 0), point to Point: POINT_1, and then select Modify. The Table Editor appears.
2 3 4
To set the display of the Table Editor, click any cell other than the top left cell. Now, double-click the Loc_X cell for POINT_1. Right-click the input box at the top of the Table Editor, point to Parameterize, point to Create Design Variable, and then select Real. This creates a design variable named .Latch.DV_1 with the value of 0.
5 6
47
Repeat the above procedure for the x and y locations of POINT_2, POINT_3, POINT_8, and POINT_9. Your Table Editor dialog box should look like the one shown here:
Note: Make sure your design variable names map to the design point locations,
as shown above. This becomes important later on as you perform your design study and optimization.
8
Select Apply. Design variables now control the locations of your design points, with the exception of the POINT_4 location.
48
At the bottom of the Table Editor, select the Variables option. Select Filters. The Variables Table Editor Filters dialog box appears.
Select Delta Type. The delta type lets you know if the range value is absolute or percent relative.
49
Select OK. The Table Editor changes to show you the range of the design variables.
6 7
50
Performing a Manual Study, 52 Running a Design Study, 53 Examining the Results of Design Studies, 57
If you choose not to work through the tutorial in sequential order and want to work through it starting here, import the file refine.cmd from install_dir/aview/examples/Latch/, where install_dir is the directory where MSC.ADAMS is installed.
52
From the Build menu, point to Measure, and then select Display. The Database Navigator appears.
2 3 4
Select SPRING_1_MEA_1. Select OK. Run a .2 second, 100-step simulation and then return to the initial model configuration. ADAMS/View updates the spring measure strip chart.
Right-click the spring force curve in the strip chart. Point to Curve: Current, and then select Save Curve.
From the Build menu, point to Design Variable, and select Modify. The Database Navigator appears.
3 4
53
Run a .2 second, 100-step simulation. This new plot shows a comparison of the spring force measure for the two cases. The new curve shows better draw on the spring.
From the Simulate menu, select Design Evaluation. The Design Evaluation Tools dialog box appears.
54
Fill out the dialog box that appears so it matches the one shown here. Leave the dialog box open.
Name of current model Script of your last simulation Study a measure that you already have Name of measure Select Minimum of, because you need to look at the maximum tension force on the spring, which is negative Type of study to run Look at DV_1 Number of cases to review
In the Design Evaluation Tools dialog box, select Display. The Solver Settings dialog box appears.
4 5 6 7 8
To see all the options, select More. Set Time Delay to 0.0. Set Chart Variables and Show Report to Yes. In the Solver Settings dialog box, select Close. In the Design Evaluation Tools dialog box, select Start.
55
Spring force plot, with five curves for the five different cases:
56
overcenter_angle plot, with five curves for the five different cases:
Note: Your results might vary slightly (about 1%) from those shown here due to
computational differences.
9
Close the Information window, the Message window, and the Design Evaluation Tools dialog box.
57
DV_1 DV_2 DV_3 DV_4 DV_5 DV_6 DV_7 DV_8 DV_9 DV_10
(POINT x) (POINT y) (POINT_2 x) (POINT_2 y) (POINT_3 x) (POINT_3 y) (POINT_5 x) (POINT_5 y) (POINT_6 x) (POINT_6 y)
0 0 3 3 2 8 -1 10 -6 5
Parameterization lets you see which design variables have the greatest effect on the clamping force. In this case, design variables DV_4, DV_6, and DV_8 have the greatest sensitivity.
58
If you choose not to work through the tutorial in sequential order and want to work through it starting here, import the file refine.cmd from install_dir/aview/examples/Latch/, where install_dir is the directory where MSC.ADAMS is installed.
60
Minimum value:
Maximum value:
1 6.5 9
6 10 11
61
On the Build menu, point to Design Variable, and then select Modify. The Database Navigator appears.
Double-click the first design variable you need to modify, in this case, DV_4. The Modify Design Variable dialog box appears:
Variable name Variable type
ADAMS/View automatically enters this value Look at Absolute Min and Max Values Values shown in table Design Variable Limits
3 4 5 6 7 8 9 10
Set the Min. Value and Max. Value, which are the minimum and maximum values for your first design variable, DV_4, as shown in Table 6 on page 60. Select Apply. Right-click the Name text box, point to Variable, and Browse for DV_6. Double-click on DV_6. Type in the minimum and maximum values for DV_6. Make sure the Absolute Min and Max Values option is selected. Select Apply. Repeat the above three steps for DV_8. After youve modified the last design variable, DV_8, select OK.
62
Running an Optimization
At this point youll run an optimization to find the best design configuration. Before you run an optimization, display the spring force measure. If you imported refine.cmd, the spring force measure will already be displayed.
To display the spring force measure:
1
On the Build menu, point to Measure, and then select Display. The Database Navigator appears.
2 3
On the Build menu, point to Measure, and then select Display. The Database Navigator appears.
2 3 4
To run an optimization:
1
On the Simulate menu, select Design Evaluation. The Design Evaluation Tools dialog box appears.
63
Fill in the dialog boxes as shown below and select Start after selecting Close from the two Solver Settings dialog boxes.
Name of current model Script of your last simulation Use Measure, since you already have one Measure name Select Minimum of, because you need to look at the maximum tension force on the spring, which is negative Type of study to run List of variables to be changed in optimization (DV_4, DV_6, and DV_8)
Find optimal clamping force by minimizing the spring force (largest negative value)
64
Note: The optimization may take several minutes to complete, and will take
several iterations. Look in the status bar for status information. The spring force measure plot shows the optimal clamping force as a function of time. Note that the limits on the strip chart may be different if you worked through the entire tutorial or you loaded a command file and started from a particular chapter.
The SPRING_1_force versus iteration plot shows how the spring force changed with each iteration.
The overcenter_angle plot shows the cases in which the angle reached the toggle point.
65
To see the final variable values and the optimized clamping force value:
1
At the bottom of the Design Evaluation Tools dialog box, select the Tabular Report tool . The Design Evaluation Results Table dialog box appears.
2 3
In the Result Set text box, enter .Latch.Multi_Run_001.Optimization_Results. Select OK. In the Information window that appears, you see all the data obtained from the optimization, including the initial and final values of the spring force and DV_4, DV_6, and DV_8.
66
Creating Design Variables, 68 Creating a Custom Dialog Box, 68 Modifying Force Values, 73
If you choose not to work through the tutorial in sequential order and would like to work through it starting here, import the file optimize.cmd from install_dir/aview/examples/Latch/, where install_dir is the directory where MSC.ADAMS is installed.
68
From the Build menu, point to Design Variable, and then select New. The Create Design Variable dialog box appears.
2 3 4 5 6 7
Set Standard Value at 80. Set Value Range by to Absolute Min and Max Values. Set the minimum value at 60, and the maximum at 90. Select Apply. Repeat Steps 2 through 4 for DV_12. Set the standard value to 10, the minimum value to 0, and the maximum to 20. Select OK.
Adding Objects to Your Dialog Box, 69 Assigning Commands to the Sliders, 71 Testing the Dialog Box, 72 Saving Your Dialog Box, 72
69
From the Tools menu, point to Dialog Box, and then select Create. The Dialog-Box Builder appears.
From the Dialog Box menu, select New. The New Dialog Box appears.
3 4 5
In the Name text box, enter Force_Control. From the Create Buttons option, select OK and Close. Select OK. ADAMS/View displays your custom dialog box:
Activate the Dialog-Box Builder. From the Dialog-Box Builder Create menu, select Slider. Inside your dialog box, click near the top center area of your dialog box, which is where the slider should appear, as shown in Figure 9 on page 70. Double-click on the slider to select it. Drag the reshape handles to resize the slider.
70
Reshape handles
6 7
Create another slider underneath the first one. Resize this slider to match the size of the first slider.
From the Dialog-Box Builder Create menu, select Label. Inside your dialog box, click to the left of the first slider, which is where the label should appear, as shown in Figure 9. Double-click on the label, to select it. Set the Dialog-Box Builder Attributes option menu to Appearance. Replace the contents of the Label Text text box, with Down Force Value. Select Apply to make the change in your dialog box. Use the reshape handles to resize your label. Create another label, Up Force Value, to the left of the second slider.
Figure 9. Force Control Dialog Box
Label Slider Button
71
Double-click the Down Force Value slider, and then from the Dialog-Box Builder Attributes pull-down menu, select Commands. At the bottom of the Dialog-Box Builder, select Execute commands while sliding. In the command window, enter variable modify variable=.Latch.DV_11 real=$slider_1. The command sets the variable value of DV_11, the variable assigned to the down force value, to be equal to the slider selection.
4 5 6
Select Apply. From the Dialog-Box Builder Attributes option menu, select Value. Set the Value of the slider to 80, the Min. Value of the slider to 60, and the Max. Value to 90. This matches the range of values that was automatically set for DV_11 when you created it. If you want to open up the range to different values, you need to first modify the set of allowable values for the design variable.
7 8
Select Apply. Repeat the above seven steps for the Up Force Value slider, replacing the command for this slider with variable modify variable=.Latch.DV_12 real=$slider_2. Make sure you use the numerical values you assigned when creating the design variable used for this slider (Value = 10, Min. Value = 0, Max. Value = 20).
Select Apply.
72
To enter edit mode, double-click on your dialog box background. From the Dialog-Box Builder, select Dialog Box, point to Export, and then select Command File. Your dialog box is saved in the command file Force_Control.cmd in the current working directory.
73
Click the background to ensure that nothing is selected. From the Edit menu, select Deactivate. The Database Navigator appears.
Right-click the single-component force (SFORCE) icon, point to Force:SFORCE_1, and then select Modify. The Modify Force dialog box appears.
Next to the Function text box, select the More tool The Function Builder appears.
3 4
Clear the function text area located at the top of the Function Builder. In the function text area, enter the STEP function as shown next:
74
Select Apply.
From the Function Builder, select Plot Limits. The Function Builder Plot Limits dialog box appears.
2 3 4
Change the End Value to 0.2. Select OK. Select Plot. The Function Builder Measure plot displays the force function. This is the handle force you apply to the latch. The Down Force Value slider sets the clamping force. The Up Force Value slider sets the release force.
75
76
Main Toolbox
Rigid Body
Measure
Undo/Redo
1 3 5 7 4 6 8
Joint
Object Color
Move
Create Forces
10
Motion
11
12
13 9
Dynamic Rotation
10
Dynamic Translation
11
View Front/Back
14
15
16 12
View Right/Left
13
16
Window Layouts
14
Background Color
15
Toggle