MotionView User's Guide

MV-1035: Importing CAD or FE into MotionView

MV-1035: Importing CAD or FE into MotionView

Previous topic Next topic No expanding text in this topic  

MV-1035: Importing CAD or FE into MotionView

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

This tutorial introduces you to an important modeling approach: Building an MBD model from CAD data.

In this tutorial, you will learn to:

Import a CAD assembly into MotionView.
Import a CSV file to create Points
Create an MBD model using the imported data.

Import CAD or FE Utility Introduction

The Import CAD or FE utility in MotionView allows you to import CAD or FE assemblies.  CAD formats include CATIA, Parasolid, Pro E, STEP, JT, SolidWorks and Unigraphics.  FE formats  include HyperMesh, Optistruct, and Nastran.  To access this utility, from the menu bar select Tools > Import CAD or FE or File > Import > Geometry, fileImportGeometry-24.  The Import CAD or FE dialog is displayed.

CAD or FE assemblies can be imported into MotionView as graphics only to be associated with existing bodies, or as new bodies with calculated mass and inertia properties along with graphics.

The multi-body aspects of any CAD assembly that can be imported in MotionView are:

Component Mass
Component Moments of Inertia
Component Center of Gravity Location
Component Graphics

The CAD import utility calls HyperMesh in the background to write out graphic file (*.h3d) which holds the geometry information in a tessellated form.  While importing CAD or FE to create new bodies with mass and inertia, the utility uses HyperMesh to calculate mass, inertia and CG location.

Exercise

In the following exercise, we will import a CAD assembly into MotionView, simplify the model from a multi-body analysis point of view, and define constraints, model inputs and model outputs.

Please copy all of the files from the mbd_modeling\automation\CAD folder into your <working directory>.

Step 1: Loading the CAD file into MotionView.

In this step, we will focus on understanding the process of import and model simplification.

1.Launch a New session, fileNewSession-24,  of MotionView.
2.From the menu bar, select File > Import > Geometry, fileImportGeometry-24

Or

Click on the Import Geometry icon,fileImportGeometry-24, on the Standard toolbar.

The Import CAD or FE dialog is displayed.

mv1035_import_cad_fe_dialog

3.Under Import Options, select Import CAD or Finite Element Model With Mass and Inertias.
4.From the Input File pull-down menu, select STEP.
5.Click the mv-tut_file_browser icon to select the STEP file.
6.Select the file Front_Assembly.step from your <working directory>.
7.Click Open.

The Output Graphic File field is automatically filled with Front_Assembly_graphic.h3d as the H3D filename.

8.Click the plus button, mv-1035_plus_button, next to MDL Options and review the various options.

mv-1035_import_options_dialog

NoteThe MDL Options allow for flexibility while importing. The CAD file can be imported either in an existing System/Assembly or a new System can be created

For this exercise, accept the defaults.

9.Review options under Meshing Options for Surface Data

mv-1035_meshing_options_dialog

NoteThis section helps control the size of mesh (or tessellation).  When the MBD model being created is used to solve non-contact problems, use the default option under Allow Hypermesh to specify mesh options.  The Launch Hypermesh to create MDL points option allows you to select nodes in HyperMesh which can be imported into MotionView as MDL points.  This is not needed for this tutorial since you will be creating these additional points using a Macro.  For models that involves contacts, it is recommended to use Control mesh coarseness for contacts The Interactive mesh (launches HyperMesh) option can be used to mesh the surfaces manually.  This is particularly useful when a finer mesh may be needed, such as in case of contact problems, to obtain better results.
10.Click the plus button, mv-1035_plus_button, next to Locator Points (Must be in source reference frame) and review the options.

mv-1035_locator_points_dialog

NoteThe Locator Points options can be used in cases where the CAD model being imported is not in the same coordinate system as the MBD model in MotionView.  This option gives you control to specify three nodes or coordinates on the source graphic which can then be used to orient using three points in MotionView after it's imported.  This option is not needed for tutorial as the imported graphic is in the required position.  Select None from the options
11.Click OK.

The Import CAD dialog is displayed.

NoteThis dialog helps to generate mass and inertia information.  The table displays different bodies or components being imported along with the volume and mass information based on a default density of 7.83e-6.  The density value can be modified for each of the components.  Alternatively, a CAD summary file can be used to extract mass/inertia
12.Set Input file length to Millimeter.
13.Under Component, select Wheel_body1.  In the Apply density to selected components field, change the value of the density to 8.5e-7 and click Apply.

mv-1035_import_cad_dialog_red_dashed_lines

Import CAD dialog

14.Leave the default value of the density for the other components.  Click OK.
15.If the import into MotionView is successful, the message "Translating/Importing the file succeeded!" is displayed in the Message Log.
16.Clear Message log.

The body, along with the associated graphics, is displayed in the graphics area.

NoteThe Extract mass/inertia data from CAD summary file: option can be used only for CATIA summary file.  Currently, summary files from other CAD packages are not supported under this option.

Step 2: Consolidate and rename the suspension assembly bodies.

1.There are three bodies with their names prefixed with Strut_rod.  These bodies in reality are joined together and hence can be represented as one body. Having these bodies separate increases the complexity of the model, and we are not interested in their interactions with each other.  We will merge these three bodies into one.
2.In the Project Browser, select these bodies: Strut_rod_1_body1, Strut_rod_body1 and Strut_rod_body2. Right-click to bring up the context menu.

mv-1035_step2_step1img

3.Select the Merge Bodies option.  This option is used to merge two or more bodies into a single body.
4.From the Merge Bodies dialog, enter Strut_rod as the label and b_Strut_rod as variable name. Click OK.

mv-1035_merge_bodies

5.The three selected bodies are deleted and replaced by a new body with the label and variable names as entered in step 4.  The mass and inertia values of this body are equivalent to the effective mass and inertia of the bodies being replaced.
6.Repeat steps 2 to 4 for merging the bodies: Strut_tube_1_body1 and Strut_tube_body1. Enter the label as Strut_tube and variable name as b_Strut_tube for the new body to be created..
7.From the Project Browser, select Wheel_body1 (Wheel part) .
8.Press F2 or right-click on Wheel_body1 and select Rename.

mv-1035_bodies_rename

9.Change the label of the selected body to Wheel.
10.Similarly, rename the following parts:

S. No

Original Label

New Label

1

Wheel_Hub_body1

Wheel_Hub

2

Lower_Control_Arm_body1

Lower_Control_Arm

3

Axle_Shaft_body1

Axle_Shaft

11.Save the model as front_susp.mdl.

mv-1035_step2

Notes on the Merge Bodies option:

oMass and inertia of the newly created body upon Merge will be equal to the effective mass and inertias of the bodies being merged.
oA new CG point is created at the effective CG location of the bodies being merged.
oPair bodies cannot be merged.
oThe Merge option works only within same container (System/Assembly/Analysis). Merging bodies which belong to different container entities is not supported. The context menu item will not appear in these cases.
oIf the bodies that are being merged are referred to in expressions, post Merge these expressions need to be corrected to point to the newly created body.
oGraphics that belong to bodies being merged are automatically resolved to the new body.
oJoints, bushings etc. that are associated with the bodies being merged if any, are automatically resolved to the new body.

Step 3: Create points.

After creating the bodies, additional points are needed that will be used to specify joint locations and joint orientations.  These points can be created using the macros available in the Macros menu.

1.From the Macros menu, select Create Points > Using Coordinates or click the Create points using Coordinates icon, create_points_using_coords_icon_mv .

mv-1035_step3_paremetric_points

2.Click folderOpen-16 to load a point table file.

mv-1035_step3_load_fr_pt_tbl_file

3.Select the file suspension_points.csv from your working directory.
4.Click Open. All the point coordinates in the CSV file are imported into the utility.

mv-1035_step3_paremetric_points2

5.Specify Varname prefix as p_susp.
6.Click OK.

The points are added to the model.  These extra points will be used for defining joints, orientations and other model inputs.

NoteTo use this macro import option, you have to create the *.csv file in the format shown below:

mv-1035_points_table

1st Column - X coordinates.

2nd Column - Y coordinates.

3rd Column - Z coordinates.

7.Save the model, fileSaveModel-24.

Step 4: Creating joints and spring damper.

In this step, we will add the joints to connect the bodies and a spring damper between Strut tube and Strut rod.

1.From the Project Browser, right-click Model and select Add > Constraint > Joint (or right-click the Joints icon, entityJoints-24, from the toolbar).

The Add Joint or JointPair dialog is displayed.

2.Specify the Label and Variable as Wheel Spindle RJ and j_whl_spindle_revj, respectively.
3.For Type, select Revolute Joint.
4.Click OK.
5.For Body1 of the joint, specify Wheel.

For Body2, specify Wheel_Hub.

For Origin, specify Point7. (Point around the Wheel center).

For Axis, specify Point19. (Point around Axle Shaft center).        

mv1035_step4_panel

6.Add the rest of the joints of the model using the table below:

S.No

Label

Type

Body 1

Body 2

Origin(s)

Orientation Method

Reference 1

Reference 2

1

Strut Hub Fix

Fixed Joint

Wheel_Hub

Strut_rod

Point8

 

 

 

2

Strut Trans

Translation Joint

Strut_rod

Strut_tube

Point23

Axis(Pt)

Point9

 

3

Strut Tube Ground UJ

Universal Joint

Strut_tube

Ground Body

Point9

Shaft(Pt)

Shaft(Vect)

Point23

Global X

4

Axle Hub Fix

Fixed Joint

Axle_Shaft

Wheel_Hub

Point19

 

 

 

5

Hub Control Arm Ball

Ball Joint

Lower_Control Arm

Wheel_Hub

Point3

 

 

 

6

Control Arm Ground Rev

Revolute Joint

Lower_Control Arm

Ground Body

Point1

Axis(Pt)

Point2

 

7.From the Project Browser, right-click Model and select Add > Force Entity > Spring Dampers (or right-click the Spring damper icon, entitySpringDampers-24, from the toolbar).
8.Specify the Label and Variable as Strut-SpringDamper and sd_strut, respectively.
9.Check Create explicit graphics check-box to create an explicit graphic for the spring damper entity.
10.Click OK.
11.For Body1 and Body2, specify Strut_tube and Strut_rod, respectively.
12.For Point1 and Point2, specify Point9 and Point0, respectively.
13.Click the Properties tab and specify a stiffness (K linear) of 10 and damping (C linear) of 0.1.
14.Save the model.

Step 5: Add a Jack to the model.

1.Next, add a jack to this model and use the jack exercise the wheel through a vertical motion.  From the Project Browser, right-click Model and select
Add  >Reference Entity > Body (or right-click the Bodies icon,entityMultibodies-24, from the toolbar).  Add a body with Label and Variable as Jack and b_jack, respectively.
2.Click the body Properties tab and specify the Mass and the three principle inertia values of the body as 0.01, 100, 100, and 100, respectively.
3.Click the CM Coordinates tab and select the Use CM Coordsys check box.
4.Pick Point10 (bottom of Wheel body)as the CM Origin point for the Jack body.
5.From the Project Browser, right-click Model and select Add > Reference Entity > Graphic (or right-click the Graphic icon,entityGraphics-24, from the toolbar) to add a graphic. Specify the Label of the graphic as Jack Plate and select the Type as Cylinder from the drop-down menu.
6.Accept the default variable.
7.From the Connectivity tab, select the Parent Body as Jack.
8.Pick Point10 as the Origin.  For Direction, toggle to Vector and select Global Z.
9.Click the Properties tab.  Specify a value of -30 in the field next to it.
10.Specify a value of 250 for Radius 1.

Notice that the Radius 2 field is updated with the same value as Radius 1.

11.From the Project Browser, right-click Model and select Add > Constraint > Joint (or right-click the Joints icon,entityJoints-24, from the toolbar).  Specify the Label and Variable as Jack Wheel Inplane and j_jack_wheel, respectively.  For Type, select Inplane Joint from the drop-down menu.
12.Click OK.
13.From the Connectivity tab, select Wheel as Body1, select Jack as Body2, pick Point10 as Origin and Vector Global Z as Normal.
14.Add another joint and specify the Label and Variable as Jack Ground Trans and j_jack_grnd, respectively. For Type, select Translational Joint.
15.Click OK.
16.From the Connectivity tab, select Jack as Body1, Ground Body as Body2, pick Point10 as Origin and Vector Global Z as the Alignment Axis.
17.All the joints required to complete the model are now in place.
18.Save the model.

mv1035_front_suspension

Front suspension

Step 6: Specifying motion inputs and running the model in MotionSolve.

In this step, we will create a motion that is applied to the jack and solve the model.

1.From the Project Browser, right-click Model and select Add > Constraint > Motion (or right-click the Motion icon, entityMotions-24, from the toolbar) to add a motion.  For Label, specify Jack Motion.  For Variable, specify mot_jack.
2.From the Connectivity tab, select Jack Ground Trans (the translation joint between Jack and Ground Body) as the Joint.
3.From the Properties tab, change the property type to Expression from the pull-down menu.  Type in the expression `50*sin(TIME)` as the displacement Motion expression.
4.Add another motion to arrest the free spinning of the wheel.  Add a motion and specify the label and variable name as Wheel Spindle and mot_wheel, respectively.
5.From the Connectivity tab, select Wheel Spindle RJ as the Joint.
6.From the Properties tab, verify that the value of the Motion is 0.0.

This motion of 0.0 radians keeps the Wheel body from spinning freely about its axis.

7.Save the model.
8.Click Check Model check-24 toolbar.  In the Message Log that is displayed, verify that there are no warnings or errors. Clear the message log.
9.Go to the Run panel, run-24.
10.Specify a name for the MotionSolve input XML file by clicking the Save and run current model icon, file_open_icon_new_mv.
11.From the Simulation type: drop-down menu, select Static+Transient.
12.Click Run.
13.Once the run is complete, click Animate to view the animation of the simulation.