Flexible Body Import
This tutorial illustrates how to create an Adams Modeler flexible part representation by importing an existing modal neutral file (MNF).
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 Import
Before you begin, copy that folder to a location on your machine.
Topics
- Connect rigid part to model via joints with generative geometric relationships to load bearing geometry
- Import a flexible part representation that was previously created into an existing part
- Transfer the constraints
- Interrogate modal content of the flexible part representation
.png)
Step 1. Edit Model Script
- the files referenced above in the Setup step 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 (for example, D:/Adams Modeler/2021_2_xxxxxx/apex/mod/adams/Documentation/Examples/) 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
Step 2. Import Rigid-Body Model
- Launch Adams Modeler
- Click Macro – Play Macro and browse for the “Piston.py” file you edited in the previous step, then click Open

- The piston model should appear in the session

Step 3. Explore Model and Setup Viewport
- The model is a simple single piston
- All parts are currently modeled as rigid bodies
- All joints and motions in place
- 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

- First click the “All Adams Button” button to expand the button stack
- Optionally suppress more object types’ glyphs or use the model browser to hide individual objects
Step 4. 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 following 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 5. 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 100
- Click the “Run” button to launch the simulation

Step 6. 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 7. 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 piston cycle animate

- Exit the Post tab by clicking here in the lower-right corner of the animator

Step 8. Import the MNF
- Right Mouse on the conrod part container
- Select Create Part Rep -> Flexible Part (Import)

- Select the conrod.mnf from the MNF directory
Step 9. Modify the constraints to reference the flexible body
- Notice that the Rigid Part Rep for the conrod and the dependent joints have been deactivated and the flexible part rep is the active part rep
- Double click on the conrod_to_crankshaft Spherical Joint to launch the object properties panel
- Notice that Part 1 still references conrod which is the rigid part rep
- Open the Interface Points container under the conrod Part and you will notice 2 Interfaces
- INT_NODE_1 – conrod to crankshaft attachment node
- INT_NODE_2 – conrod to piston attachment node
- Select INT_NODE_1 for Part 1 from Graphics or from the Model Browser
- Select the Green Apply checkmark to apply the changes
- Double click on the conrod_to_piston Revolute Joint
- Repeat the reparenting of conrod to conrod_2 by selecting INT_NODE_2
- Select the Green Apply checkmark to apply the changes
- Multi-select the conrod_to crankshaft and conrod_to piston joints
- Right mouse and select Activate.
- You can verify by selecting the Information for each joint that the joint has been redefined to attach to the flexible part rep
.png)
Step 10. Launch Flexible Part Rep Property Editor
- Right-click the flexible part rep and select Properties to launch the flexible part rep bar
- Animate mode shapes
- Enable/disable modes

Step 11. 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.
.png)
Step 12. Simulate with the Flexible Conrod
- 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 following dialog:
- For Name enter “Flex”
- Make sure…
- Simulation Type is “Dynamic”
- End Time is 5.00
- Steps is 100
- 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 13. 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 14. Animate the Flex Scenario with Deformation
- In the Results section of the left pane click the Fringe Plot button next to Flexible Body Deformation

- You may choose to move the animation speed control bar to the right for maximum playback speed
- Click Play

- Note the legend values may update the first time through the animation as Adams Modeler reads all the result data
Step 15. 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 0.23 MPa

Step 16. Switch to Adams Post Processor
- For more in-depth review of analysis results, you can choose to switch to Adams Post Processor
- Click the Context Switch button to launch Adams Post Processor

- Log in to post comments
