Flexible Body Generation
This tutorial illustrates how to create an Adams Modeler flexible part representation directly within Adams Modeler by meshing geometry and running the required normal modes analysis.
Setup
The file(s) necessary for this tutorial are included within the Adams Modeler installation in the following folder:
<your installation location>\apex\mod\adams\Documentation\Examples\Flexible Body Generation
Before you begin, copy that folder to a location on your machine.
Topics
- Hook up rigid part to model via joints with generative geometric relationships to load bearing geometry
- Generate a flexible part representation without need of MNF import or direct ASET specification
- Interrogate modal content of the flexible part representation
- Modify part shape and automatically regenerate the flexible part representation
- Light-weighting hole
- Thinned section (automatically moves dependent joint)

Step 1. Edit Model Script
- This tutorial comes with a .py script and a “geometry” folder
- These files comprise the model to be used for this tutorial
- Edit the .py file (see highlighted line) with the path to where the geometry folder is located on your local system and save the .py file
- Be sure to use forward slashes /
- Be sure to include a forward slash at the end of the path as shown below

Step 2. Import Rigid-Body Model
- Launch Adams Modeler

NOTE: If the session in not already in the Modeler GUI mode, then choose New Model from the Adams View welcome screen and then click the context switch button to enter the Modeler GUI.
- Click Macro – Play Macro and browse for the “build_rigid_manipulator.py” file you edited in the previous step, then click Open
- The manipulator model should appear in the session

Step 3. Explore Model and Setup Viewport
- The manipulator model is a robotic arm which picks up a payload
- All parts are currently modeled as rigid bodies
- There are contact forces between the payload, both gripper claws and ground
- Joints and motions in place for all but one connection (you’ll create it the next)
- Use the model browser and graphics windows to explore the model further if you like
- The object “glyphs” (symbols in graphics known as “icons” in Adams View) can clutter the view somewhat
- You can use Options - Application Settings – Glyph Display to make them smaller
- Use the Object Display Manager (ODM) to suppress display of rigid part rep glyphs:
- First click the “All Adams Button” button to expand the button stack

- Then click the “Rigid Part Reps” button

- Optionally suppress more object types’ glyphs or use the model browser to hide individual objects
- First click the “All Adams Button” button to expand the button stack
Step 4. Show Only the Main Boom and Open Joint Tool
- Zoom in on the Main Boom (dark red) near where it should connect to the Arm (dark green)
- From the model browser, right click the top-level Part “Main Boom” and select Show Only

- From to Joint Tool Palette select the Revolute Joint Button

Step 5. Create the Joint
- In the Name field enter “Main Boom to Arm”
- The Joint Tool is in “lightning mode” as evidenced by the yellow at the top; so the joint will create immediately after we specify Part 1 and Part 2
- For Part 1 select the inner surface of the hole on the Main Boom and left-click
- Click the surface pick filter if you want to ensure only surfaces get selected instead of, edges, for example

- Click the surface pick filter if you want to ensure only surfaces get selected instead of, edges, for example
- For Part 2 go to the model browser and left-click the rigid part rep for the Arm
- We’re unconcerned with creating a generative geometric relationship to the Arm because we only plan to make the Main Boom flexible later on
- If we did want to make the Arm flexible too, we’d use the two bodies, two locations method instead to create a generative geometric relationship there too

Step 6. Close the Joint Tool and Inspect Model
- Close the Joint Tool by clicking the red button in the upper-right corner

- Notice that, in addition to the joint, an interface point has been created inside the hole; interface points are like Adams View markers

- The cyan-colored “spider web” indicates that the interface point has a geometric relationship to the cylindrical surface of that hole
- Re-display the rest of the model by right-clicking anywhere in the graphics window and selecting “Show All”
- Also, notice that the joint is visible the Model Browser

Step 7. Add a Motion to the Joint
- Open the Rotational Joint Motion Tool

- For the Name enter “Main Boom Motion”
- To properly drive the main boom, paste the following text into the Function field:
- step5(time, 0, 0, 2, 15d)+step5(time, 3, 0, 5, -15d)
.png)
- step5(time, 0, 0, 2, 15d)+step5(time, 3, 0, 5, -15d)
- For the Joint selection stage, pick the joint you just created by left-clicking it either in the graphics viewport or in the model browser
- Close the Motion Tool
- Observe the motion glyph in graphics and the name in the model browser

Step 8. Simulate the Rigid Body Model (Create Scenario)
- Click the Studies tab
- Optionally right-click and delete the “Static Scenario1” default item if it is present
- Right-click Study and choose “Create Scenario”
- In the displayed dialog:
- For Name enter “Rigid”
- Make sure…
- Type is “Multi Body Dynamics”
- Simulation Method is “Standard”
- Simulation Type is “Dynamic”
- Select “Start at Static Simulation”
- Click OK

Step 9. Simulate the Rigid Body Model (Simulation Settings and Run)
- Under the Rigid scenario, right click “Simulation Settings” and select “Properties”

- In the Simulation Settings dialog, ” pick “Dynamic 1” and set End Time to 5 seconds and Steps to 2500
- Click the “Run” button to launch the simulation

Step 10. Simulate the Rigid Body Model (Running)
- The Adams Solver output will be displayed in the Simulation Status window along with other progress trackers
- Close the Simulation Status window

Step 11. Animate the Rigid Body Scenario
- Launch Adams Modeler Post mode via the right-click menu from the Rigid scenario on the Studies tab

- Suppress display of all Adams glyphs via the ODM

- Click the play button to animate the simulation
- Use the playback speed bar to animate faster if you like
- You should see the manipulator reach down, grip the payload and lift it up

Step 12. Mesh the Main Boom
- Exit the Post mode tab

- From the Meshing Tools tool palette, select the Solid Mesh tool

- Keep the default settings in the dialog, select the Main Boom geometry in the graphics window and left-click to auto-mesh it

- Close the Solid Mesh Tool
- Main Boom’s mesh is now present in the graphics window and model browser
- Because we associated the Main Boom’s joints with load bearing geometry on the Main Boom, the interface points playing the role of Adams View markers can define the attachment nodes in the finite element model used in the normal modes analysis
- The attachment node is located where the joint is
- The dependent nodes are the nodes the Meshing Tool created on the surface we picked when defining the joint
- Below shows the interface point for the joint you created here. There’s another on the other end of the Main Boom that was already built via the script you imported at the beginning of the exercise

Note: Depending on your session settings at the moment, you may need to use the ODM to display Adams objects so you can see this.
Step 13. Launch the Flexible Part Rep Generation
- From the model browser, right-click the Apex Part Main Boom and select Create Part Rep – Flexible Part (Native)

- In the Generate Flexible Part Rep dialog specify:
- Number of Normal Modes = 12
- Grid Point Results choose Stresses and Strains

- Execute the tool by clicking the green checkbox in the upper right corner

- This launches the MSC Nastran normal modes scenario that produces the modal neutral file (MNF) upon which the flexible part rep is based
Step 14. Launch Flexible Part Rep Property Editor
- The progress meter and status bar at the bottom of the window will inform you of the flexible part rep generation progress

- When it completes you should see a flexible part rep in the model browser
- Right-click the flexible part rep and select Properties to launch the flexible part rep bar

Step 15. Examine the Flexible Part Rep
- The flexible part rep property editor bar can be used to manage the modal content of the flexible part rep among other things as shown below.

Step 16. Simulate with the Flexible Main Boom
- Close the flexible part rep property editor with the red button in the lower-right

- Click the Simulation tool palette and select the Simulation tool
- In the displayed dialog:
- For Name enter “Flex”
- Make sure…
- Simulation Type is “Dynamic”
- End Time is 5.00
- Steps is 2500
- Start at Static Equilibrium is selected
- At the bottom of the tool, click the calculator icon “Simulate the Model”

- This is an alternate means to launch Adams MBD Scenarios. It is a shortcut that creates what’s needed on the Studies tab.
Step 17. Launch the Post Tab and Setup for Animation
- You will be taken to the Studies tab while the simulation runs
- When the simulation completes, right click the “Flex” study and select Post Process

- This will automatically take you to the Adams Modeler Post tab and load the Adams MBD Scenario “Flex”
- Use the ODM to hide the glyphs

Step 18. Animate the Flex Scenario with Deformation
- In the Results section of the left pane click the Fringe Plot button next to Flexible Body Deformation

- Move the animation speed control bar to the right for maximum playback speed
- Click Play and you will see the manipulator arm again reach down and grab the payload
- Note the legend values may update the first time through the animation as Adams Modeler reads all the result data

Step 19. Animate the Flex Scenario with Modal Stress
- Use either the Result area on the left pane again or hover over the legend, expand it and use the dialog to change the fringe plot to show Modal Stress – Von Mises


- Animate as before and note the peak value is around 31 MPa
(again, note that this value may change somewhat after the animation is initially played because, only then, will Adams Modeler have read all the stress results)
Step 20. Prepare to Make a Hole in the Main Boom
- Close the postprocessor and return to the Model tab
- In the model browser under the “Main_Boom” Part:
- Under the flexible part rep, “Main_Boom_Flex”, Right-click “Mesh 1” and Hide
- Under the rigid part rep, “Main_Boom”, right-click geometry body “Main_Boom” and Show
- Right-click the overall Part “Main_Boom” and Set Current

- From the Geometry Create Tool Palette select the Ellipse Tool

Step 21. Define Ellipse on the Main Boom
- With the Ellipse Tool now launched, select the outer face of the Main Boom as shown in yellow (this is the surface on which we want the ellipse)

- In the ellipse tool make the grid spacing a little smaller and set to 100mm

- Follow the on-screen prompts to make the ellipse, left-clicking after each:
- Center at x = -20.0, y = 0.0
- First radius (narrow direction) = 10.00mm
- Second radius (long direction) = 60.00mm

- Close the Ellipse tool
- You now should see an elliptical surface on the Main Boom

Step 22. Make a Hole in the Main Boom
- From the Geometry Create Tool Palette select the Push/Pull Tool

- Left-click on the ellipse surface in the graphics window

- Now press the “X” key on your keyboard to cut a hole in the Main Boom with this selected ellipse


Step 23. Narrow the Main Boom
- If its not already, hide the Main Boom’s mesh and show the Main Boom’s solid geometry

- From the Geometry Create Tool Palette select the Push/Pull Tool

- Optionally, set the pick filter to Face (might help in picking a face instead of an edge, for example)
- Left-click on the Main Boom’s inner face shown below

- Click and drag the arrow such that you reduce the thickness of the Main Boom (no need to necessarily match the exact -6.30mm shown here, just try to reduce it by about half)

Step 24. Inspect the Narrowed Main Boom and Update the Flexible Part Rep
- Note that the joint between the Main Boom and Arm and the Main Boom’s interface point (and corresponding attachment node) were automatically relocated too because the center of the Main Boom’s hole moved (you may need to again show the mesh and hide the geometry body)

- Because we made changes to the Main Boom’s geometry, Adams Modeler automatically updated the mesh. This means the flexible part rep no longer reflects the current state of the mesh. So, Adams Modeler has marked it “stale” in the model browser
- In the model browser, right-click the flexible part rep, Main_Boom_Flex and click Update Flexible Part Rep to regenerate it

Step 25. Simulate with the Altered Flexible Main Boom
- Click the Simulation tool palette and select the Simulation tool
- In the displayed dialog:
- For Name enter “flex hole narrow”
- Make sure…
- Simulation Type is “Dynamic”
- End Time is 5.00
- Steps is 2500
- Start at Static Equilibrium is selected
- At the bottom of the tool, click the calculator icon “Simulate the Model”

Step 26. Animate the Flex Narrow Hole Scenario with Modal Stress
- When the simulation completes, right click the “flex hole narrow” study and select Post Process to launch Adams Modeler postprocessing again

- Fringe plot the Main Boom and select Modal Stress – Von Mises
- Animate the scenario (optionally hide the Arm to better see some stresses)
- Notice the peak value is significantly higher than the ~30 MPa we had in the “flex” scenario (your value may vary from what’s shown here depending on how much you thinned the Main Boom section)

Step 27. Switch to Adams Post Processor
- Another way to verify the changes made in this model is to examine the modal stress results from each of the simulations in Adams Post Processor. Pause any animation you may have running in Adams Modeler Post.
- Click the Context Switch button to launch Adams Post Processor

Step 28. Load the Adams Durability Plugin
- Load the Adams Durability plugin via Tools – Plugin Manager or via the Durability icon on the Plugins tab of the Adams View ribbon.
- Select Adams Durability and click OK

Step 29. Chart the Load in the Main Boom to Arm Joint
- Create a chart of the load in the Main Boom to Arm joint in each of the simulations as shown below

- We’ll notice that as we added flexibility the load in the joint reduced, especially when we narrowed the Main Boom
Step 30. Further Investigate Modal Stress for Final Run
- Click Durability – Hot Spots Table

- Complete the dialog as shown below:
- Flex Body: “Main Boom_Flex_1”
- Analysis: “flex_hole_narrow”
- Radius: 10
- Count: 5

- Click Report
- This shows us the top 5 Von Mises stress instances throughout the simulation we ran with the modified main boom (counting instances within a 10mm radius as a single instance)
- Log in to post comments

