MV-2035: Solve Flexbody ADM/ACF in MotionSolve

In this tutorial, you will learn how to solve an ADM/ACF model that has flexbodies using MotionSolve, use the Add Object panel in HyperView and view the transient analysis results from MotionSolve.

Theory

You can submit ADAMS dataset language files (ADM and ACF) directly to MotionSolve, thus avoiding manual translation. The ADAMS model is first automatically translated into the MotionSolve XML format and then it is solved. If the ADAMS model has a flexible body represented by the MNF and MTX files, the MotionView Flexprep utility will be used to generate an H3D flexible body file (using the MNF file). This H3D flexbody file is the MotionSolve equivalent of the ADAMS MNF and MTX files. It holds the mass and inertia properties, as well as the flexibility properties which allow the body to deform under the application of loads. The deformation is defined using a set of spatial modes and time dependent modal coordinates.

Process

In this tutorial, an ADAMS single cylinder engine model (ADM and ACF) is provided. To improve the accuracy of the model responses, the connecting rod is modeled as a flexbody (MNF and MTX). This chapter deals with transient analysis of this single cylinder engine model using MotionSolve.

We will modify the ACF file to include an argument that would generate a flexbody H3D file. MotionSolve internally calls OptiStruct, which generates the H3D flexbody file. The ADM and ACF is translated into MotionSolve XML format and solved. MotionSolve outputs the results H3D file, which can be loaded in HyperView for animation. In HyperView, external graphics (for piston and crank) can be added for visualization.

MotionSolve supports most of the ADAMS statements, commands, functions, and user subroutines. Refer to the MotionSolve User's Guide help for additional details.

Tools

Copy the following files, located in the mbd_modeling\motionsolve folder, to your <working directory>:
  • single_cylinder_engine.adm
  • single_cylinder_engine.acf
  • connecting_rod_flex_body.h3d
  • Flexible_body.mnf
  • Flexible_body.mtx
  • piston.h3d
  • crank.h3d
    Note: Below is a table listing the flexbody files in Adams and the equivalent files for MotionSolve:
    Option Adams MotionSolve
    Flexbody file mnf and mtx H3D flexbody
    Post processing animation Gra and res H3D animation
    Plot Req plt/abf

Modify the ACF File

  1. Start a new MotionView session.
  2. Click Select Application and choose TextView .
  3. From the toolbar, click the arrow next to the Open Session icon, , and select Open document , . Select single_cylinder_engine.acf, located in your <working directory>.
  4. Add the following text in line 3:
    FLEX_BODY/1, H3D_FILE=connecting_rod_flex_body.h3d
    The ACF file should look like this:


    Figure 1.
  5. From the toolbar, click Save Document and save the file as single_cylinder_engine.acf to your <working directory>.
    Note: The connecting_rod_flex_body.h3d file that has been used in this tutorial is generated using the FlexPrep utility in MotionView. Refer to the MotionView User's Guide for more information on converting an ADAMS MNF file into a MotionView H3D flexbody.

Running the ACF file in MotionSolve

  1. Click Start > All Programs > Altair HyperWorks > MotionSolve.


    Figure 2.
  2. For Input file, click Browse and select All files (*.*) from the file type menu. Select the input file single_cylinder_engine.acf from your <Working directory>.
  3. Click Run.
    MotionSolve translates the ADAMS model (ADM, ACF) to the MotionSolve XML format and solves it. MotionSolve internally invokes OptiStruct, which converts the connecting rod flexbody MNF and MTX files to a flexbody H3D file.
    MotionSolve outputs the following files:
    • Results H3D file - single_cylinder_engine.h3d
    • Plot files - single_cylinder_engine.abf and single_cylinder_engine.plt
    • Log file - single_cylinder_engine.log
    Note: MotionSolve is completely integrated into MotionView. You can also use the Run icon from the toolbar in MotionView to perform this action. MotionSolve can also be run from the command prompt. Open a DOS command window, and at the command prompt type: [install_path]\hwsolvers\scripts\motionsolve.bat input_filename.[fem,acf,xml]

View Transient Analysis Results in HyperView by Adding External Graphics

Since the ADM file does not carry the external graphic information, the results from MotionSolve will not contain this information either. From ADAMS, you can export a Parasolid file which can be used for visualizing results in HyperView. In this step, you will attach the piston and crank external graphic for better result visualization.

  1. Start a new HyperView session.
  2. Using the Load model file browser, select: single_cylinder_engine.h3d, located in your <working directory>.
    The Load results file field will be automatically be updated with the single_cylinder_engine.h3d file.
  3. Click Apply.
    The model is displayed in the window.
  4. From the Add Object panel, , using the Add object from browser, select the piston.h3d file. If the Add Object icon is not visible on the toolbar, select the View menu > Toolbars > HyperView > Tools.
  5. For Select object, select All to add all objects to the list.
  6. Using the expansion button, , select Piston as the component with which you want the selected object to move.
  7. For Reference system, select the Global coordinate system.
  8. Click Add.
    Notice that the piston graphic is added to the model.
  9. Repeat steps 5 through 8 to add the crank object to the model.
    Note: Remember to select the crank.h3d file in the Add Object from browser and attach it to Crank using the expansion button.
  10. Click Contour on the toolbar. From the Result type drop-down menu, select the data type that should be used to calculate the contours.
  11. Select a data component from the second drop-down menu located below Result type.
    Note: If you select Mag (Magnitude), the results system is disabled (since magnitude is the same for any coordinate system).
  12. Click Apply.
    The contour is displayed.
  13. Click Start Animation to animate the model.
  14. Click Stop Animation to stop the animation.
    Note: In the Add Object from browser, you can directly select a wavefront file (*.obj) from ADAMS to add graphics. Whereas, if you have a Parasolid file (*.x_t) from ADAMS, use the Tools menu option Import CAD or FE in MotionView to generate an H3D file. You can then use this file to add the graphics.


    Figure 3.