Presentation is loading. Please wait.

Presentation is loading. Please wait.

WORKSHOP 4 PARAMETERIZING AN EXISTING MODEL

Similar presentations


Presentation on theme: "WORKSHOP 4 PARAMETERIZING AN EXISTING MODEL"— Presentation transcript:

1 WORKSHOP 4 PARAMETERIZING AN EXISTING MODEL

2

3 Software Version Files Required Problem statement Adams 2012
sla_start.cmd (plus other files referenced within the mod_04_sla directory) Problem statement Parameterize the locations of points in the model, and then plot toe angle for different configurations of the given suspension model.

4 Model description The model has five parts (not including ground).
All appropriate constraints are in the model. There are markers attached to ground at each key location (see the figure on the next page). There is a point motion driving the spindle up and down 100 mm. There is one function measure that calculates toe angle, and one that calculates wheel height. Be sure to explain that Adams/View isn’t meant for suspension analysis, the vertical applications, Adams/Car and Adams/Chassis, are. The context here is to understand parametrics. Understanding parametrics will help you create better Adams/Car templates.

5 Getting Started To get started: Start ADAMS/View.
Select Existing Model and import the command file sla_start.cmd from the exercise_dir/mod_04_sla directory. Be sure to use the default options, such as Use File Directory as Working Directory = Yes. From the Settings menu, select Names. In the Default Names dialog box, select Full names. Select OK.

6 Getting Familiar with Points
To identify the parts: Simulate the model to observe its behavior: End Time: 1 Steps: 50 Get to know the part names and the locations of the reference markers in the suspension. Label the parts in the figure below. UCA has been done for you. UCA Pnt10_ref Pnt6_ref Pnt4_ref Pnt3_ref Pnt9_ref Pnt8_ref Pnt7_ref Pnt11_ref Pnt5_ref Pnt2_ref Tip: Use the Database Navigator in Browse and Highlight modes. Pnt1_ref

7 Parameterizing the Tierod
In this section, you parameterize the tierod objects (geometry and joints) to markers pnt7_ref and pnt8_ref.

8 Parameterizing the Tierod
To parameterize the location of the tierod geometry: Find out the name of the marker that is the center marker for the cylinder geometry that makes up the tierod. It is ______________. Turn on the appearance of that marker: From the Tools menu, select Database Navigator. From the option menu at the top of the Database Navigator, select Display Attribute. Expand sla and then expand tierod. Select the marker from Step 1. Set Visibility to On. Select Apply. Select Close.

9 Parameterizing the Tierod
Parameterize the location of that center marker to pnt7_ref using the location parameterization tool, f(x). From the Main Toolbar, in the Move toolstack, select the f(x) tool. Set the menu to Collapse (distance). Follow the prompts that appear in the status bar: Select the marker to have its location parameterized (tierod_geo_base). Select the marker to parameterize to (pnt7_ref). Display the modify dialog box for the marker tierod_geo_base. What is in the Location text box?__________________________ You should see a parametric expression that Adams/View just wrote for you.

10 Parameterizing the Tierod
To parameterize the orientation of the tierod geometry: Parameterize the z-axis of the center marker so it points from pnt7_ref to pnt8_ref using the orientation parameterization tool, f(). From the Main Toolbar, in the Move toolstack, select on the f() tool. Set the first menu to Along Axis. Set the second menu to Z. Following the prompts: Select the object whose orientation you want to parameterize (tierod_geo_base). Define the axis start location (pnt7_ref). Define the axis end location (pnt8_ref). Display the modify dialog box for the marker tierod_geo_base. What is in the Orientation text box? ________________________ You should see a parametric expression that Adams/View just wrote for you.

11 Parameterizing the Tierod
Move pnt7_ref upwards (as shown in the figure below), and make sure the cylinder’s loc.ation and orientation are changing accordingly. Does the length of the cylinder adjust parametrically? ____Yes  ____ No From the Edit menu, select Undo to move pnt_7_ref back to its original position (loc: 337, 1311, , ori: 0, 0, 0).

12 Parameterizing the Tierod
To parameterize the length of the tierod geometry: Parameterize the cylinder’s length to change based on the locations of pnt7_ref and pnt8_ref. The following expression now describes the cylinder’s length: DM (.sla.ground.pnt7_ref,.sla.ground.pnt8_ref) Tip: Use the DM function just as you did in the previous workshop.

13 Parameterizing the Tierod
To parameterize the universal joint: Use the f(x) tool to parameterize the location of the universal joint, ground_tierod_uni, to pnt7_ref. Obtain information about the I and J markers associated with that joint. Do you see a parametric expression written for the location of each marker? _____Yes  _____ No The f() tool is not as useful for the orientation of the universal joint because of the complexity of the I and J marker orientations. Therefore, we will leave this joint alone for now. Tip: Select Verbose in the Information window.

14 Parameterizing the Upper Control Arm (uca)
You will now parameterize the cylindrical geometry of the UCA part. This time you will use design points as well as parametric expressions. The long and short cylinders will be treated differently in the ways they are parameterized. A marker's icon must be visible on the screen if you want to parameterize using graphical methods. Therefore, you need to turn on some marker icons. To display marker icons: Display the icons for the center_marker of each cylinder belonging to the UCA part. Tip: Turn the visibility of the center_marker on and off by using the command files ctr_mar_on.cmd and ctr_mar_off.cmd in the subdirectory utils (use the F2 shortcut key). This is a utility we've custom written for this workshop, and you can customize it for other models

15 Parameterizing the Upper Control Arm (uca)
To parameterize the location of the long cylinders: From the Bodies ribbon tab, use the Point tool to create a design point: Set its characteristics to: Add to Ground Attach Near Select ground.pnt3_ref as the point location. Rename the point to Point_1. Use the Command Window (F3 shortcut key) to review the commands issued during the point creation. How many markers were automatically parameterized? Circle the best answer:  3 Create another design point, named Point_2, this time selecting ground.pnt4_ref as the point location. Right-click here at pnt3_ref

16 Parameterizing the Upper Control Arm (uca)
To parameterize the orientation of the long cylinders: From the Main Toolbar, select the F() tool. Set the characteristic to Along Axis and Axis to Z. Right-click near the location of pnt3_ref as shown in figure on previous slide . Select the object whose orientation you want to parameterize (uca.uca_geo1_base). Define the axis start location (pnt3_ref). Define the axis end location (ground.pnt6_ref). Use the Command Window to review what commands were issued during the F() parameterization. Select F() again. Set the characteristic to Along Axis and the Axis to Z. Select the object whose orientation you want to parameterize (uca_geo3_base). Define the axis start location (pnt4_ref). Define the axis end location (pnt6_ref).

17 Parameterizing the Upper Control Arm (uca)
To parameterize the length of the long cylinders: Use an expression to define the cylinder length so that it updates parametrically as the endpoints change. To parameterize the orientation of the short cylinder: From the Main Toolbox, select the F() tool. Set the characteristic to Along Axis and Axis to Z. Right-click the location shown in image: Tip: Use the DM function (again).

18 Parameterizing the Upper Control Arm (uca)
Select uca_geo2_base. Select pnt3_ref. Select pnt4_ref. Choose F() again. Set the characteristic to Along Axis and Axis to Z. Right-click the other short cylinder's end. Select uca_geo4_base. Tip: This is the center_marker of the other short cylinder on the uca.

19 Parameterizing the Upper Control Arm (uca)
To inspect the behavior of short cylinder parametrics: It's a good idea to test the parametrics as you build them. This follows the crawl-walk-run process that we teach. You will move one of the design points and see what happens. Select the design point at pnt3_ref (Point_1). Set the view to the right. Using the Move tool, translate (10 cm) upward in the global z direction.

20 Parameterizing the Upper Control Arm (uca)
Inspect the model from different viewpoints. Do the centerlines of the short cylinders pass through pnt3_ref and pnt4_ref? ____ Yes ____ No What do you think went wrong? __________________________________________________________________________________________________________________________

21 Parameterizing the Upper Control Arm (uca)
To parameterize the locations of the short cylinders: Display the modify dialog box for marker uca.uca_geo2_base. Clear the Location text box. In the Location text box, point to Parameterize, and then select Expression Builder. In the Expression Builder, set the function category to Location/Orientation. From the Selection menu, highlight LOC_ALONG_LINE, and then select Assist. In the assist dialog box, set the options to: Object for Start Point: pnt3_ref Object for Point on Line: pnt4_ref Distance: -0.5 Tip: To quickly clear a text box, left-click the start of the text box, and then press Ctrl-k.

22 Parameterizing the Upper Control Arm (uca)
Select OK. The expression is now in the work area. You want to change the distance from -0.5 to be half of the cylinder's length so you’ll multiply the -0.5 by the cylinder length. Place your cursor after the -0.5, type the multiplier operator, for example, type asterisk, *. Use the Getting Object Data section to obtain the length of the cylinder uca_geo2. When you are done, your expression should look like: LOC_ALONG_LINE( pnt3_ref , pnt4_ref , -0.5*uca_geo2.length ) Select Evaluate to verify syntax and see the location array values. In the Expression Builder, select OK. Notice that the expression is sent to the Marker Modify dialog box, and in the process, the Expression Builder automatically wrapped the expression in the required parentheses. In the Marker Modify dialog box, select Apply. The short cylinder adjusts its location.

23 Parameterizing the Upper Control Arm (uca)
Place your cursor at the start of the Location text box. Press Shift-End to select all of the text. Then, right-click in the Location text box, and select Copy to save the expression, which you will paste later. In the Name text box, browse for uca_geo4_base. Clear the entry in the Location text box. Paste the text you saved in Step 13. Hand-edit the expression to be as follows: (LOC_ALONG_LINE(pnt4_ref, pnt3_ref, -0.5 * uca_geo4.length)) In the Marker Modify dialog box, select Ok. The short cylinder adjusts its location. Using the Table Editor, move Point_1 back to its original position (384.0, , ).

24 Parameterizing Constraints Connected to UCA
To display joint marker icons: Again you will need the marker icons visible to use the parameterization tools. Therefore, you need to turn on some joint marker icons. Display the marker icons for all the joints connected to the UCA part. Tip: Turn joint marker visibility on and off by using jnt_mar_on.cmd and jnt_mar_toggle.cmd in the subdirectory utils (use the F2 shortcut key). This is another utility we've custom written, and you can customize it for use on other models. The I and J markers for the joints are displayed, colored maize and blue, respectively.

25 Parameterizing Constraints Connected to UCA
To parameterize the location of the UCA-spindle spherical joint: Create a design point: Set its characteristics to: Add to Ground Attach Near Select ground.pnt6_ref as the point location. Rename it to Point_3. Use the Command Window (F3 shortcut key) to review what commands were issued during the point creation. Were the joint markers parameterized to pnt6_ref or to the design point? ___________________________________________________ If you dragged pnt6_ref to a new location would the spherical joint move as well? ____ Yes _____ No What do you think would happen? _____________________________

26 Parameterizing Constraints Connected to UCA
To parameterize the location of UCA_ground_rev revolute joint: Earlier in this workshop, you parameterized the tierod universal joint using the f(x) tool. That simultaneously parameterized the underlying I and J markers of the joint using a LOC_RELATIVE_TO function. In this section, you need to use the LOC_ALONG_LINE function so you parameterize the joint markers one at a time. Parameterize the location of the revolute joint's J marker uca.uca_ground_rev2 so it lies halfway between the ground markers, pnt3_ref and pnt4_ref. Use the f(x) tool to collapse the location of the I marker, ground.uca_ground_rev1, onto the J marker, uca.uca_ground_rev2 Parameterize this joint (UCA_ground_rev) Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language. Tip: Use the LOC_ALONG_LINE() function and + 0.5*DM() as your offset distances.

27 Parameterizing Orientation of UCA_ground_rev revolute joint
In this section, you want the joint markers to be oriented such that the z-axis points from pnt3_ref to pnt4_ref and the x-axis lies in the plane of the three points: pnt3_ref, pnt4_ref, and pnt6_ref. To parameterize the orientation of the J marker: Write an function expression for the orientation of uca.uca_ground_rev2 as follows: (ORI_IN_PLANE( pnt3_ref , pnt4_ref , pnt6_ref , "Z_ZX" )) To parameterize the orientation of the I marker: Use the F() tool to collapse the orientation of I marker, ground.uca_ground_rev1, onto the J marker, uca.uca_ground_rev2. Inspect the commands issued to the Command Window. Which of the following functions was used? Circle the best answer:      ORI_ALONG_AXIS ORI_LOCAL      ORI_FRAME_MIRROR ORI_RELATIVE_TO Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language.

28 Defining Marker Location with Design Variables
The model is parameterized, but you need to take it one step further. You should use design variables to define the x, y, and z locations of the marker pnt7_ref. To define a location in terms of design variables: Display the Table Editor and select Markers. Set up a filter for the markers: Select Filters. Set Scope to .sla.ground. Set Name Filter to *pnt*. Clear the selection of Adams ID. Select Location and Location and Ori. Components in Individual Columns. Select OK. Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language.

29 Defining Marker Location with Design Variables
Select the cell in the Loc_X column for pnt7_ref. Right-click the input box at the top of the Table Editor, point to Parameterize, point to Create Design Variable, and then select Real. Repeat for the Loc_Y and Loc_Z cells, creating new design variables for each. Select Apply. Close the Table Editor. Adjust the value of DV_3 to see what effect it has on the SLA geometry: In the model tree, expand Design Variables, and then right-click on DV_3 and select Modify. In the dialog box, set Standard Value to 500, and then select Apply. Notice that pnt7_ref moved upwards, and the geometry and constraint adjusted parametrically. Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language.

30 Running Simulations of Different Model Configurations
To run different simulations: Display the toe angle measure, if necessary. Simulate the model: End time: 1.0 Steps: 50 Save the curve on the strip chart. Change DV_3 to 480 and simulate again, and observe the effect on the toe angle measurement. Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language.

31 Optional Tasks Parameterize the outline geometry on ground so it adjusts as you move key points. Parameterize the lower control arm (lca). You should parameterize the lca geometry similar to how you parameterized the rest of the model. In general, the steps are: Create design points at pnt1_ref and pnt2_ref. Use the F() tool to parameterize: Orientation of first long cylinder Orientation of second long cylinder Parameterize the following: Long cylinder lengths using DM. Short cylinder orientations using F() tool. Short cylinder locations using LOC_ALONG_LINE. LCA-to-spindle spherical joint using design points. LCA_ground_rev J marker orientation to lie in plane using F() tool with Same As/Collapse options. Tip: Use the f(x) tool to collapse ground geometry markers onto corresponding cylinder center markers. Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language.

32 Optional Tasks Preview what can be achieved with optimization in Adams/View. Start a new database and change directories to the completed subdirectory. Import the model mod_04_completed.cmd from the completed subdirectory. This will build the fully parameterized SLA model. Import the command file prep_model_for_opt.cmd. This file puts the SLA model into a configuration that needs to have its toe angle optimized. It prepares the model for optimizing by defining design variables and an optimization objective. Simulate using SIM_SCRIPT_1 to see the design performance of the SLA before optimization. Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language.

33 Optional Tasks Plot Wheel Height versus Toe Angle as shown next:
Initiate the optimization by importing the command file run_opt.cmd. You will have to wait a while as it will run several simulations. Use Reload Simulations tool in Adams/PostProcessor to update the plot with the optimized design. Mention that the completed .sla model is a command file written by hand. They might want to review it as an intro to what command language looks like. Command language will be covered in Workshop 9 – Understanding the Command Language.

34 Answer Key Step 2, page 6: Step 1, page 8: .sla.tierod.tierod_geo_base
Step 4, page 9: (LOC_RELATIVE_TO({0,0,0},.sla.ground.pnt7_ref)) Step 3, page 10: (ORI_ALONG_AXIS(.sla.ground.pnt7_ref, .sla.ground.pnt8_ref,”z”)) SPINDLE UCA Pnt10_ref Pnt6_ref Pnt4_ref Pnt3_ref Pnt9_ref Pnt8_ref Pnt7_ref Pnt11_ref Pnt5_ref Pnt2_ref Pnt1_ref GROUND TIEROD LCA

35 Answer Key Step 5, page 11: No Step 3, page 13: Yes Step 4, page 15: 3
Step 6, page 20: The center_marker location parametrics were incorrectly defined for the short cylinders. This occurred during the attach-near operation in Step 1 on page 15. You need to locate the center_marker along the line-of-sight from pnt3_ref to pnt4_ref. Step 3, page 25: The markers for the spherical joint were parameterized to the design point. Step 4, page 25: No Step 5, page 25: A warning message would be issued saying that you were breaking a parametric relationship. Step 3, page 27: ORI_RELATIVE_TO

36


Download ppt "WORKSHOP 4 PARAMETERIZING AN EXISTING MODEL"

Similar presentations


Ads by Google