150 likes | 164 Views
Learn how to create sensors, design variables, and single component forces in a billiards game simulation using MSC.ADAMS 2005 r2 GUI.
E N D
Billiards GUI Familiarity Level Required: Higher Estimated Time Required: 30 minutes MSC.ADAMS 2005 r2
Topics Covered In this tutorial you will learn how to: • Create a sensor • Create design variable • Create single component force To start this example you must first download “billiards_start.bin“ file If you have any difficulties, import the “billiards_shortcut_1.bin” file and proceed from pg 19 If you have any difficulties, import the “billiards_shortcut_2.bin” file and proceed from pg 24 If you have any difficulties, import the “billiards.cmd” file and proceed from pg 24
Problem Create a sensor between the ball and the pocket so that when the ball hits the pocket it trigger the sensor.
What You Should Accomplish When you complete this tutorial you will have a Adams simulation of a billiards game
Getting Started • Start Adams • Select Open an existing database radio button • Click OK • Search for file billiards_start.bin • Click Open b d e c
Create a Sensor b a c d e • Click Simulate menu Sensor New • Enter DM(PART_1.main, MAR26) in Expression text field • Verify that the Non-Angular Values radio button is on and that the pull down menu is set to less than or equal • Enter 50.0 in Value text field • Enter 1.0E-03 in Error Tolerance text field • Turn on Terminate current simulation step and check box and verify that the stop radio button is on • Click OK f g
Create Sensors Create 3 more sensors, with the same values as show below: DM(PART_1.main,MAR27 Value = 50.0 Error Tolerance = 1.0E-03 DM(PART_1.main,MAR_5 Value = 50.0 Error Tolerance = 1.0E-03 DM(PART_1.main,MAR28 Value = 50.0 Error Tolerance = 1.0E-03
Create Design Variable • Click Build menu Design variable New • Enter .billiards.hard in Name text field • Enter 1.0 in Standard Value text field • Select +/- Delta Relative to Value from Value Range by pull down menu • Enter -1.0 in –Delta text field • Enter 1.0 in +Delta text field • Click OK b c d e f a g
Creating Design Variables Create 2 more design variables with the following values: Name = .billiards.x Standard Value = (PART_2.main.loc_x) Value Range by = Absolute Min and Max Values Min. Value = Max. Value = Name = .billiards.radius Standard Value = 75.0 Value Range by = +/- Delta Relative to Value -Delta = -1.0 +Delta = +1.0
Create Single Component Force • Select Force (Single Component) from Forces tool stack • Select Two Bodies from Run-time Directions pull down menu • Click PART_3 PART_2 PART_3.main PART_2.main a c b
Modify Single Component Force b c • Rename SFORCE_3 to SPHERE_SPHERE_1 • Right-click force, select FORCE: • SPHERE_SPHERE_1 Modify • Click button • Enter • impact(dm(PART_2.main, PART_3.main),vr(PART_2.main, PART_3.main), 35.0, hard*1.4, 1.2, 2.7/(hard*hard), 0.35) • In define a runtime function text field • Click OK d e
Create Single Component Force Create a second single component force between the cue ball (white) and the 9 ball (yellow) with a function: impact(dm(PART_1.main, PART_2.main), vr(PART_1.main, PART_2.main), 50.0, 2.6, 1.2, 5.1E-004, 0.5)
Model This is what your screen should look like when your model is complete
Topics Covered In this tutorial you will learn how to: • Create a sensor • Create design variable • Create single component force
Best Practices • Make sure sensors are set correctly • Make sure that the design variable are set correctly • Check the forces to see if there are acting on the right parts • Check the single component force functions