Introduction to MotionView - Part 1
This tutorial will help users who are new to Multi-body modeling become familiar with the MotionView interface and the process of model building, solution, and results review.
Before you begin, copy the file(s) used in this tutorial to your
working directory.
In this tutorial, you will:
- Invoke MotionView
- Import CAD Geometry
- Set up the Model
- Solve the Model
- Review the Results
Invoke MotionView
In this step, you will learn how to invoke MotionView.
-
In Windows, click
OR using the Altair ConnectMe app (if installed).Once invoked, the launcher window appears as shown in the image below.
- Select MotionView and create a new session.
-
In Linux, invoke
~hw_install/altair/scripts/mview
in an open terminal (where~hw_install
is the location of the installation).
- The MotionView Interface
-
A new session is launched with a page/window displaying MotionView as the active client.Note: A session can consist of one or more pages. Each page can have multiple window layouts, with each window having a different client serving different modeling and result review needs. The following clients are available:
- HyperGraph - Plotting
- HyperMesh - Finite Element Modeling
- HyperView - Animation
- MotionView - Multibody Modeling
- TableView - Table Processing
- TextView - Text Processing
MotionView is organized into these various areas:- The Title Bar displays the name of the session file as well as the active product version.
- The Menu Bar provides access to Ribbons, standard functions such as file management operations, system preferences, help, and configuring the visibility of various areas of the interface. You can also change the active product from the menu bar.
- The Pages and Windows can be changed to control the main display area. Each page can have up to 16 windows.
- The Search allows you to quickly find various tools and functionalities that are also available from the ribbons.
- The Ribbon allows you to quickly access tools and standard functions and is located along the top of MotionView. Click on an icon to open the related tool. Hovering over a group of icons may reveal additional tools.
- The Model Browser lists various entities of a model in a tree-based format. A context sensitive menu allows you to perform various actions like copy/paste, hide/show, and so on, on each node of the tree.
- The Entity Editor lists all the properties of the selected entity.
- The Modeling Window displays the model while it is being setup, as well as animates the same during a solver run (MotionSolve only) and results review. This also contains other interactive areas like the Guide Bar, Microdialog, Toolbelt, and Entity Selection Filter.
- The Client Window allows you to work with other clients like HyperGraph, HyperView, and so on, side by side.
- The Status Bar about the currently loaded model and lists the status of MotionView at any point of time like Ready, Importing Geometry, and so on.
- The View Controls allows you to control the view and display of the model in the modeling window.
- The Animation Controls allows you to review the animation of a model after a run.
Import CAD Geometry
In this step, you will learn how to import a CAD geometry file in MotionView.
-
Observe the default contents of the model from the Model Browser.
Note: Each entity folder in Model Browser can be expanded or collapsed to see its content and has a count of entities contained in the same within the () parenthesis. For example, there is a Ground Body by default in the Bodies folder. Ground Body does not move during a simulation.
-
Import the CAD geometry using one of the following methods:
- Drag and drop PistonCylinderAssembly.x_t from your working directory into the modeling window of the MotionView client.
- From the Menu Bar, click PistonCylinderAssembly.x_t, and click Open. , select
The geometry is imported.Observe the Model Browser. It shows eight Bodies (other than Ground Body) and eight Graphics entities. When a geometry is imported, each CAD component is represented with a Body entity and a corresponding Graphic entity of type CADGraphics.- A Body entity represents mass and inertia.
- A Graphic entity is a geometrical object used for visualization and while solving a contact problem.
-
Use the following mouse controls to manipulate your model in the modeling window:
- Pan the model by holding down the right mouse button while dragging the mouse.
- To Rotate, hold down the middle mouse (or Shift + right mouse) button while dragging the mouse.
- Use the scroll wheel to Zoom centered on the mouse cursor.
-
In the modeling window hover on the
Piston (component in green in the image below). The
object is highlighted along with the object label appearing in a bubble text.
Click on the object and notice that the body gets selected.
-
Change the Entity Selection filter (available on the top
left of the modeling window) from
All to Graphics and again
click the same “Piston” object on the screen.
Note: This time the Graphics entity has been selected (indicated in the Model Browser).
- Double-click the empty space in the modeling window to deselect everything.
- Revert the Entity Selection filter to All.
Set up the Model
In this step, you will learn how to set up your model.
-
Ground the Bearing and Cylinder bodies.
Note:
- Using a Ground Context can be useful when there are multiple bodies to be grounded or un-grounded.
- A body can also be grounded using the Ground option in the right-click context menu of the body.
- Observe the Ground Group in the Model Browser. Selecting this group highlights all the bodies that have been grounded.
- When a body is grounded, the entities that have the grounded body as a parent are moved to the Ground Body during solution.
-
Set up the PistonHead Rigid Group.
A Rigid Group is a collection of bodies that are assumed to be rigidly connected with each other. The concept is like Ground Group, except that a Rigid Group is collectively represented and treated as one rigid body during solution.
-
Set up another RigidGroup containing the following three bodies:
CrankWeb, CrankPin, and
CrankShaftNose. Rename the
RigidGroup to ‘Crank’.
Note: Refer to the previous step - Step 2(2) for detailed instructions.
-
Exit the Rigid Group context by clicking Finish Editing twice.
OR
Right-click in the modeling window to select the green check mark to exit the RigidGroup context.
-
Save the model.
- Click on the Save Model icon in the Home group.
- Using the Save As Model dialog that appears, browse to your working directory and name the file MV_intro1.mdl.
- Click Save.
Note: The model can also be saved using . -
Create a revolute joint between Bearing and Crank.
-
Create a revolute joint with CrankPin as Body 1,
PistonRod as Body 2, and the inner surface center of
Crank Boss as Origin of the joint. Choose
Global X as orientation direction for the
joint.
Note: Follow the same procedure for orientation as in the previous joint.
-
Create another revolute joint with PistonRod as Body 1,
PistonPin as Body 2, and the surface center of the
PistonRod hole as Origin of the joint.
-
Create a cylindrical joint with Piston as Body 1, Cylinder as Body 2, and the
outer surface center of the Piston as Origin of the joint. Choose Global Z as
orientation direction for the joint.
- Exit the Joint context by using the Cancel button on the guide bar.
- Save the model.
-
Fit the model to screen by clicking the Fit icon on the
View Controls toolbar.
Tip: Keyboard shortcut "F" can also be used to fit the model to screen.
Solve the Model
In this step, you will learn how to solve a model.
-
Run a transient analysis for 1 second.
-
From the Ribbon Bar, select Analyze and click on the
Quick Start/Stop Motion Analysis button from the
Solution group.
Note: MotionView performs a model check and then submits a run to MotionSolve. The motion of the model can be viewed in the MotionView window as the solution progresses. There are no forces defined in the model, still the parts move as they fall under default gravity.The Run Status dialog opens showing the status of the current run in progress.Note: Once the run is finished, a blue check mark appears near the Run icon in the ribbon indicating that run has been completed successfully and a result is available with the model. After the run, the mode is set automatically into Results Review Context indicated by the blue highlight on the Run icon.
Review the Results
In this step, you will learn how to post-process your model results.
-
Use the Play/Pause button or drag the slider to review a
specific animation time frame.
Note: Animated post-processing features in the MotionView client are limited.
-
Create a plot.
- Click on the Plot button available on the Run status dialog (or right-click on the run entry and select “Plot Results on HyperGraph” from the context menu).
A new page with HyperGraph client is added to the session and Create Curves by File dialog appears. The MotionSolve result file (*.mrf) is pre-selected. -
Plot a curve that represents displacement of a Piston along the Cylinder.
- Select Body from the list of Types.
- Select the Part/76000000 PistonHead from the list of Requests.
- Select Z from the list of Components.
- Click Plot and then Cancel.
- Navigate to the first page using the page navigation icons in the top right corner of the application .
-
From the Menu Bar, click
.
- Select the working directory and save the session file as MV_Getting_Started.mvw.
Note: Saving a session automatically triggers the save of MotionView models within the session.