running msc.adams on windows - msc software...

68
Running MSC.ADAMS on Windows Overview MSC.ADAMS products provide you with tools to model, simulate, and optimize your mechanical systems. This guide explains how to run standard MSC.ADAMS products. It also describes how to create user dynamic-link libraries that extend the functionality of MSC.ADAMS and run the libraries with the associated MSC.ADAMS products. It contains the following chapters: Getting Started 3 Running MSC.ADAMS Products 15 Creating User Libraries 33 Setting Preferences for MSC.ADAMS 47

Upload: hoangmien

Post on 24-Jun-2018

282 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

OverviewMSC.ADAMS products provide you with tools to model, simulate, and optimize your mechanical systems. This guide explains how to run standard MSC.ADAMS products. It also describes how to create user dynamic-link libraries that extend the functionality of MSC.ADAMS and run the libraries with the associated MSC.ADAMS products.

It contains the following chapters:

■ Getting Started 3

■ Running MSC.ADAMS Products 15

■ Creating User Libraries 33

■ Setting Preferences for MSC.ADAMS 47

Page 2: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

2 Running MSC.ADAMS on WindowsCopyright

The information in this document is furnished for informational use only, may be revised from time to time, and

should not be construed as a commitment by MSC.Software Corporation. MSC.Software Corporation assumes no

responsibility or liability for any errors or inaccuracies that may appear in this document.

Copyright Information

This document contains proprietary and copyrighted information. MSC.Software Corporation permits licensees

of MSC.ADAMS™ software products to print out or copy this document or portions thereof solely for internal

use in connection with the licensed software. No part of this document may be copied for any other purpose or

distributed or translated into any other language without the prior written permission of MSC.Software

Corporation.

Copyright © 2003 MSC.Software Corporation. All rights reserved. Printed in the United States of America.

Trademarks

ADAMS, EASY5, MSC, MSC., MSC.ADAMS, MSC.EASY5, and all product names in the MSC.ADAMS

Product Line are trademarks or registered trademarks of MSC.Software Corporation and/or its subsidiaries.

NASTRAN is a registered trademark of the National Aeronautics Space Administration. MSC.Nastran is an

enhanced proprietary version developed and maintained by MSC.Software Corporation. All other trademarks are

the property of their respective owners.

Government Use

Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set forth in FAR 12.212

(Commercial Computer Software) and DFARS 227.7202 (Commercial Computer Software and Commercial

Computer Software Documentation), as applicable.

Page 3: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

1 Getting Started

OverviewYou can use two interfaces to run and configure MSC.ADAMS products: the MSC.ADAMS program folder and the Selection Menu, which is a command-line interface. If you are an experienced user, you might prefer using the Selection Menu. The Selection Menu lets you enter complete selection codes or abbreviations on one line. Running MSC.ADAMS from the Selection Menu also allows you to run operations in batch.

The following sections explain how to work with the two interfaces:

■ Working with the MSC.ADAMS Program Folder, 4

■ Working with the MSC.ADAMS Selection Menu, 7

■ Using Command-Line Parameters, 11

■ Troubleshooting and Contacting Technical Support, 12

Page 4: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started4

Working with the MSC.ADAMS Program Folder The MSC.ADAMS program folder is your starting point for running and customizing MSC.ADAMS products. It provides you with access to all the MSC.ADAMS products which you installed. Note that if you are not licensed to run a product, it will not run even though it is in the program folder.

Figure 1. MSC.ADAMS Program Folder

Each of the MSC.ADAMS products is listed in the MSC.ADAMS program folder. You may have fewer items than shown in Figure 1, depending on which products you installed. The program folder also contains options for creating and running user libraries, for setting ADAMS/View defaults, and for generating problem reports. Table 1 on page 5 groups the options by their function. For example, it groups all options that run products.

Page 5: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started5

Table 1. Folder Options

The option: Does the following:

Product group: AAircraftACarADrivelineAChassisAEngineAFlexAInsightAPostProcessorARailASolverAView

■ Runs MSC.ADAMS products. The run options are described in Running MSC.ADAMS Products on page 15 and Creating User Libraries on page 33.

■ Creates user libraries of user-written subroutines to customize MSC.ADAMS products. For more information, see Creating User Libraries on page 33.

License Sets up passwords and a license server to manage access to MSC.ADAMS products. See the printed guide, Installing MSC.ADAMS on Windows, for more information.

ADAMS-Online Help

Starts the MSC.ADAMS online help.

ADAMS-Release Notes

Opens the MSC.ADAMS release notes in your default browser.

ADAMS-Settings Allows you to control the look of your screen through the graphics drivers and select the amount of memory you need for your model. For more information, see Setting Preferences for MSC.ADAMS on page 47.

Uninstall ADAMS Documentation

Allows you to uninstall MSC.ADAMS documentation files. For more information, see the printed guide, Installing MSC.ADAMS on Windows.

Page 6: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started6

Uninstall ADAMS

Allows you to uninstall MSC.ADAMS program files. For more information, see the printed guide, Installing MSC.ADAMS on Windows.

Table 1. Folder Options (continued)

The option: Does the following:

Page 7: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started7

Working with the MSC.ADAMS Selection MenuThe MSC.ADAMS Selection Menu is a command-line interface for building and running MSC.ADAMS products. It provides you with access to all the MSC.ADAMS products for which you are licensed. The following sections explain how to access the Selection Menu, enter selections codes, and exit the Selection Menu.

■ Displaying the Selection Menu, 7

■ Entering Selection Codes, 10

■ Exiting the Selection Menu, 10

Displaying the Selection Menu

Your system administrator can change the command to run the MSC.ADAMS Selection Menu to access MSC.ADAMS products. Before you begin, therefore, you need to know:

■ The command to run the software.

■ Where the software is installed.

To access the MSC.ADAMS Selection Menu:

1 From the Start menu, point to Programs, and then select Command Prompt.

The Command Prompt window appears.

2 At the prompt, enter the command to run the MSC.ADAMS Selection Menu (the standard command for MSC.ADAMS 2003 from MSC.Software is adams03).

The MSC.ADAMS Selection Menu appears. It contains a list of options, or selection codes, for the products for which you are licensed. An example is shown in Figure 2 on page 8. The selection codes are explained in Table 2 on page 9.

Page 8: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started8

Figure 2. The MSC.ADAMS Selection Menu

MSC.ADAMS 2003 Selection Menu

Action Selection Code

Create ADAMS/Solver with ADAMS User-DLL Run ADAMS/Solver with Standard ADAMS executable User executable

Pre- or Post-process with ADAMS/View ADAMS/Car

ADAMS/Engine ADAMS/Aircraft

ADAMS/RailADAMS/DrivelineADAMS/PostProcessorADAMS/InsightMSC Flex ToolkitMSC Durability ToolkitMSC Registry Shell Tool

cr-user

ru-standardru-user

aviewacaraengineaircraftarailadrivelineapptainsightflextkdurtkrtool

Enter your selection code or EXIT:

Page 9: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started9

Table 2. Selection Codes

Selection code: Does the following:

cr-user Leads you through the creation of an ADAMS/Solver user library by linking user-written subroutines to the MSC.ADAMS product libraries. It also creates libraries for ADAMS/Driver, ADAMS/Linear, and ADAMS/Tire analysis.

ru-standard Selects standard ADAMS/Solver (includes password-enabled ADAMS/Linear).

ru-user Runs ADAMS/Solver with a user library.

aview, acar, aengine, aircraft, adriveline, arail, appt, and ainsight

Displays respective product’s Selection Menu. From this menu, select options to create and run user libraries of the MSC.ADAMS product.

rtool Displays the registry shell tool.

exit Returns to the system level; exiting at any of the other prompts returns you to this menu.

Page 10: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started10

Entering Selection Codes

To perform operations through the MSC.ADAMS Selection Menu, enter a selection code (described in Table 2) after the prompt at the bottom of the screen. You can use either upper- or lower-case letters, and you can abbreviate to the shortest unique abbreviation (except when entering file names). For example, you can use e to indicate exit, ru-s to indicate ru-standard, and av to indicate aview. If you use an incorrect abbreviation and get an error message, press Enter to continue. Whenever you complete or interrupt a program, the MSC.ADAMS Selection Menu returns.

Exiting the Selection Menu

You can enter exit or its abbreviation (e) at any prompt to exit from the prompt and return to the Selection Menu. If you enter exit at the Selection Menu, it returns to the operating system prompt.

Page 11: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started11

Using Command-Line ParametersIn addition to using the MSC.ADAMS Selection Menu, you can enter command-line parameters to run MSC.ADAMS. You enter command-line parameters at the command prompt.

To enter command-line parameters, you enter the command to run MSC.ADAMS, followed by a series of strings representing prompt selections (the standard command to run MSC.ADAMS that MSC.Software provides is adams03). You can enter the complete selection codes or abbreviations. To indicate a return, use -none or its abbreviation (-n). You must use spaces to separate the various parameters. As the command executes, menus and prompts do not appear.

For example, the following command-line parameters link the ADAMS/Solver code to the object version of a subroutine (03sub.obj), build a user library in interactive mode, and name the library cam.dll:

c:> adams03 cr-u y 12sub.obj -n cam.dll

In this example, the y answers the question about working in debug mode and the -n indicates a return in response to the second subroutine file prompt. The system level returns after linking the library file. You must use spaces to separate the various parameters.

If you make an error in a command-line parameter, an error message appears and prompts you to enter exit. When you enter exit, the command aborts and displays the ADAMS Selection Menu.

Page 12: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started12

Troubleshooting and Contacting Technical SupportIf you have questions or problems with any of the MSC.ADAMS products, get help by viewing the Technical Support Web page at http://www.mscsoftware.com/support/prod_support/adams/. If the problems persist, contact Technical Support. Before contacting Technical Support, generate a problem report as explained in the next section.

Generating Problem Reports

The troubleshooting report examines your system configuration and places important debugging information in the file adams_problem_report.txt. If you have problems running MSC.ADAMS products, you can generate this report and send it to MSC.Software.

After you generate the report, you may want to save it under a different name because MSC.ADAMS overwrites the file each time you generate a report.

Note: For correct results, you must run the problem report from the license server, not the client machine.

To generate a troubleshooting report:

1 From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to License, and then select Troubleshoot - Problem Report.

A message appears informing you that the report is being created and providing the name of the report.

2 Open the adams_problem_report.txt file using a text editor and edit the first page of the report to include your name and phone and fax numbers. Add any comments in the comments section.

If you are an experienced MSC.ADAMS user, you may want to look over the report for error messages before sending it to MSC.Software.

3 Send the file using e-mail or print the file and fax it to the technical support for your area.

4 To close the window, press Enter.

Page 13: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started13

Contacting Technical Support

For technical support, contact your local service provider, which can be found at http://www.mscsoftware.com/support/contacts/.

Page 14: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Getting Started14

Page 15: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

2 Running MSC.ADAMS Products

OverviewThis chapter describes how to run MSC.ADAMS products through the MSC.ADAMS program folder and through the MSC.ADAMS Selection Menu.

■ About Running MSC.ADAMS Products, 16

■ Running ADAMS/Solver, 16

■ Running ADAMS/View, 18

■ Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, and ADAMS/Rail, 22

■ Running ADAMS/Insight, 28

■ Running ADAMS/Flex Toolkit, 29

■ Running ADAMS/PostProcessor, 29

■ Running ADAMS/Chassis, 30

■ Running the MSC.ADAMS Online Help, 31

Page 16: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products16

About Running MSC.ADAMS ProductsThe MSC.ADAMS program folder and Selection Menu provide access to many of the MSC.ADAMS major products. MSC.ADAMS also has add-on modules or plugins, which expand the functionality of the major products, such as ADAMS/AutoFlex, ADAMS/Controls, ADAMS/Durability, ADAMS/Hydraulics, and ADAMS/Vibration. You run these products from within the major products. For example, to run ADAMS/Hydraulics, you first run ADAMS/Car or ADAMS/View and then select the command to run ADAMS/Hydraulics.

For more information on running plugins, see their online help.

Running ADAMS/SolverYou can run either standard ADAMS/Solver or ADAMS/Solver with a user library, as explained in the next sections.

Running Standard ADAMS/Solver

You can select to run ADAMS/Solver without the ADAMS/View graphical interface. ADAMS/Linear, ADAMS/Tire, and ADAMS/Driver are analysis modules of ADAMS/Solver. You access them by selecting the ADAMS/Solver option, if you are licensed to do so.

To run ADAMS/Solver:

1 Do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to ASolver, and then select ADAMS - Solver.

■ From the MSC.ADAMS Selection Menu, enter ru-standard.

A window appears prompting you for information.

2 Enter the name of the MSC.ADAMS command file (.acf), if you have created one, or press Enter.

ADAMS/Solver starts running.

For more information on the commands and execution of ADAMS/Solver, see the ADAMS/Solver online help.

Page 17: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products17

Running User Libraries with Analysis Products

You can run user ADAMS/Solver libraries from either the Program Folder or the Selection Menu, as well as run user libraries with ADAMS/Tire, ADAMS/Linear, or ADAMS/Driver.

To run a user library:

1 Do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to ASolver, and then select Run Custom Solver.

■ From the Selection Menu, select ru-user.

2 Enter the name of the custom library that you want to run.

3 Enter the name of the MSC.ADAMS command file (.acf), if you have one, or press Enter.

ADAMS/Solver starts running.

For more information on the commands and execution of ADAMS/Solver, see the ADAMS/Solver online help.

Page 18: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products18

Running ADAMS/View ADAMS/View is a powerful modeling and simulating environment, which helps you solve your design problems. You can use ADAMS/View to build, simulate, and refine virtual models of any mechanical system. You can run ADAMS/View from the program folder or the selection menu, as well as run it with user libraries. Running ADAMS/View from the Selection Menu lets you select the mode in which to run ADAMS/View.

■ Running ADAMS/View from the Program Folder, 18

■ Running Standard ADAMS/View from the Selection Menu, 19

■ Running User Libraries with ADAMS/View, 21

Running ADAMS/View from the Program Folder

To run ADAMS/View from the program folder:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AView, and then select ADAMS - View.

The ADAMS/View main window appears.

For information about working with ADAMS/View, refer to its online help.

Page 19: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products19

Running Standard ADAMS/View from the Selection Menu

You use the ADAMS/View Selection Menu (Figure 3) that appears when you select aview from the main Selection Menu to run and create ADAMS/View user libraries.

Figure 3. ADAMS/View Selection Menu

When you run a ADAMS/View, you can select the following modes:

■ Interactive mode - The product starts and waits for you to enter commands. When you select interactive mode through the Program Menu, you can often enter a command file that runs when the product starts.

■ Batch mode - The product runs with a command file that you specify at a specified time. It also collects information on the batch run in a batch log file that you specify.

Table 3. ADAMS/View Selection Codes

This selection code: Provides this action:

cr-user Leads you through the creation of an ADAMS/View library.

ru-standard Selects standard ADAMS/View.

ru-user Runs ADAMS/View with a user library.

ADAMS/View Selection Menu

Action Selection Code

Create User ADAMS/View executable cr-user

Run ADAMS/View with Standard ADAMS/View executable User executable

ru-standard ru-user

Enter your selection code or exit:

Page 20: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products20

To run standard ADAMS/View through the Selection Menu:

1 From the MSC.ADAMS Selection Menu, enter aview.

2 From the ADAMS/View Selection Menu, enter ru-standard.

3 Select the mode in which you want to run the executable.

■ To run in interactive mode, select i or press Enter.

■ To run in batch mode, select b.

4 If you selected batch mode, enter the name of a file containing ADAMS/View commands.

The ADAMS/View main window appears.

For a detailed explanation of using ADAMS/View, refer to its online help.

Page 21: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products21

Running User Libraries with ADAMS/View

You can run ADAMS/View with user libraries that you created, including ADAMS/Solver user libraries. For more information on user libraries, see Creating Custom ADAMS/View Library on page 39.

Note: You can also set the ADAMS/Solver user library after you’ve started ADAMS/View. For information on setting the ADAMS/Solver user library after starting ADAMS/View, select Settings → Solver → Executable, and then press F1 for help.

To run ADAMS/View with a user library:

1 Depending on whether you are using the program folder or the Selection Menu, do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AView, and then select Run Custom View.

■ From the Selection Menu, select aview. From the ADAMS/View Selection Menu that appears, select ru-user.

2 Enter the name of the ADAMS/View user library.

3 Enter the name of an ADAMS/Solver user library.

ADAMS/View begins running.

For more information on the commands and execution of ADAMS/View, refer to its online help.

Page 22: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products22

Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, and ADAMS/RailMSC.Software provides four products built on ADAMS/View, referred to as MSC.ADAMS template-based products. The products are:

■ ADAMS/Aircraft lets you create, catalogue, and analyze wheel, landing-gear, and full-aircraft assemblies.

■ ADAMS/Car lets you create, catalogue, and analyze suspension and full-vehicle assemblies.

■ ADAMS/Driveline lets you model drivelines to create and analyze virtual prototypes of driveline subsystems.

■ ADAMS/Engine lets you build valve trains, and then analyze them to understand their elasto-kinematic and dynamic behavior.

■ ADAMS/Rail lets you build complete, parameterized railway models.

You can run the template-based products alone or with different user libraries in your private, site, and standard locations. ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail runs the first user library that it finds as it searches your private, site, and, finally, the standard location. If you use the Selection Menu to run a product, you can also choose the binary (for example, acar.bin or aengine.bin) you want to use. A binary contains the database information for a customized interface.

The following sections explain how to run these products:

■ Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail from the Program Folder, 23

■ Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail from the Selection Menu, 24

For information on the different products, see the online help for that product. For information on creating user libraries, see Creating Custom ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail Libraries on page 40 of this guide.

Page 23: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products23

Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail from the Program Folder

The MSC.ADAMS program folder lets you run the template-based products through ADAMS/View or ADAMS/Solver. When you enter a command to run a template-based product, the product searches the private, site, and standard locations for a user library to run. It runs the first library it finds.

Tip: If you want to run the standard version of the product without a user library, be sure that there are no user libraries in your private or site location.

To run template-based products from the program folder:

■ Depending on whether you want to run the product through ADAMS/Solver or ADAMS/View, do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AAircraft, ACar, ADriveline, AEngine, or ARail, and then select the appropriate command. For example, select ADAMS - Car (solver) or ADAMS - Engine (solver).

The ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail (Solver) main command window appears.

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AAircraft, ACar, ADriveline, AEngine, or ARail, and then select the appropriate command. For example, select ADAMS - Car (view) or ADAMS - Engine (view).

The ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail (View) main window appears.

Page 24: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products24

Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail from the Selection Menu

The Selection Menu lets you run the template-based products and choose the binary that you’d like to use. The following sections explain how to use the Selection Menu to choose the version for the product to run:

■ Displaying the Selection Menu, 24

■ Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail with ADAMS/View, 26

■ Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail with ADAMS/Solver, 27

Displaying the Selection Menu

To display the ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail Selection Menu:

■ At the MSC.ADAMS Selection Menu, enter aircraft, acar, adriveline, aengine, or arail.

A Selection Menu appears. Figure 4 on page 25 and Table 4 on page 25 show and explain the selection codes in the ADAMS/Car Selection menu. The ADAMS/Aircraft, ADAMS/Driveline, ADAMS/Engine, and ADAMS/Rail Selection menus contain the same type of options.

Page 25: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products25

Figure 4. ADAMS/Car Selection Menu

Table 4. ADAMS/Car Selection Menu Codes

The code(s): Do(es) the following:

cr-acarprivate, cr-acarsite, cr-solverprivate, cr-solversite

Creates a user ADAMS/Car library and places it in your home (private) or site directory. The string after the cr- identifies where ADAMS/Car places the library and whether the version runs with ADAMS/View or ADAMS/Solver.

cr-privatebin, cr-sitebin

Creates a custom ADAMS/Car binary file that ADAMS/Car runs when it starts up. The string after the cr- identifies where ADAMS/Car places the binary.

Note: We strongly encourage you to review your product’s log file (acar.log, aride.log, and so on) for any warnings or error messages that may have occurred during the building of the binary file.

ADAMS/Car Selection Menu

Action Selection Code

Create

ADAMS/Car private library

ADAMS/Car site library

ADAMS/Car Solver private library

ADAMS/Car Solver site library

Private acar.bin

Site acar.bin

cr-acarprivate

cr-acarsite

cr-solverprivate

cr-solversite

cr-privatebin

cr-sitebin

Run ADAMS/Car Private, Site or Standard library with

Either the Private, Site or Std acar.bin

Private acar.bin

Site acar.bin

Standard acar.bin

ru-acar

ru-private

ru-site

ru-standard

Run ADAMS/Car Private, Site or Std Solver ru-solver

Enter your selection code or EXIT:

Page 26: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products26

Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail with ADAMS/View

When you enter a selection code to run a template-based product, the product searches the private, site, and standard locations for a library to run. It runs the first library that it finds.

Tip: If you want to run the standard version of the product without a user library, be sure that there are no user libraries in your private or site location.

The template-based product then reads the binary file that you have specified. You can specify a binary file in the private, site, or standard locations. You can also specify to search the private, site, and standard locations and read the first binary found.

To run template-based products with ADAMS/View:

1 At the MSC.ADAMS Selection Menu, enter aircraft, acar, adriveline, aengine, or arail.

2 At the Selection Menu, enter one of the selection codes depending on the binary file that you want to read. For more information on the selection codes, refer to Table 4.

ru-acar Runs the first private, site, or standard library of ADAMS/Car that it finds. It also uses the first version of the ADAMS/Car binary that it finds as it searches the private, site, and standard locations.

ru-private, ru-site, ru-standard

Runs the first private, site, or standard library of ADAMS/Car that it finds and then uses the specified private, site, or standard binary. The string after the ru- identifies which binary to use.

ru-solver Runs the ADAMS/Car version of ADAMS/Solver that it finds as it searches your private, site, and standard locations.

Table 4. ADAMS/Car Selection Menu Codes (continued)

The code(s): Do(es) the following:

Page 27: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products27

Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail with ADAMS/Solver

You can run the standard version of a template-based product with ADAMS/Solver or run user libraries that are in the private or site locations. The Selection Menu searches the private, site, and standard locations and runs the first user library that it finds.

Tip: If you want to run the standard version of the product without a user library, be sure that there are no user libraries in your private or site location.

To run template-based products with ADAMS/Solver:

1 At the MSC.ADAMS Selection Menu, enter aircraft, acar, adriveline, aengine, or arail.

2 Enter ru-solver.

3 At the command file prompt, do one of the following:

■ Press Enter.

A main command window appears.

■ To launch the product with a command file, type the name of the command file and press Enter.

The product reads in your command file and its main command window appears.

Page 28: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products28

Running ADAMS/InsightADAMS/Insight lets you design sophisticated experiments for measuring the performance of your mechanical system model. It also provides a collection of statistical tools for analyzing the results of your experiments so that you can better understand how to refine and improve your model. For more information on ADAMS/Insight, refer to its online help.

To run ADAMS/Insight, do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AInsight, and then select ADAMS - Insight.

■ At the MSC.ADAMS Selection Menu, enter ainsight.

ADAMS/Insight appears.

Page 29: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products29

Running ADAMS/Flex ToolkitYou can run the ADAMS/Flex toolkit from the program folder or Selection Menu. The ADAMS/Flex toolkit is different from the product ADAMS/Flex, which is an optional and separately licensed module that runs inside of ADAMS/View and ADAMS/Solver. The ADAMS/Flex toolkit only includes translators and the graphical tool for running the translators. For more information on the ADAMS/Flex toolkit and the ADAMS/Flex product, see the ADAMS/Flex online help.

To run ADAMS/Flex toolkit, do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AFlex, and then select ADAMS - Flex Toolkit.

■ At the MSC.ADAMS Selection Menu, enter flextk.

The ADAMS/Flex toolkit appears.

Running ADAMS/PostProcessorADAMS/PostProcessor is a powerful tool that lets you view the results of simulations performed using other MSC.ADAMS products. You can run it as a stand-alone product, if you have a license, or from within other MSC.ADAMS products, such as ADAMS/View, ADAMS/Car, or ADAMS/Engine. The following instructions explain how to start ADAMS/PostProcessor in stand-alone mode.

To run ADAMS/PostProcessor from the program folder:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to APostProcessor, and then select ADAMS - PostProcessor.

To run ADAMS/PostProcessor from the Selection Menu:

■ At the MSC.ADAMS Selection Menu, enter appt.

Page 30: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products30

Running ADAMS/ChassisADAMS/Chassis is a complete analysis environment for performing automotive analyses. You can run the following ADAMS/Chassis components:

■ ADAMS/Chassis Command, which runs an ADAMS/Chassis command window. From this window, you can enter achassis to run different ADAMS/Chassis modules, such as the LeafSpring PreProcessor. For more information on these modules, see the ADAMS/Chassis online help.

■ ADAMS/Chassis Online Help, which starts the online documentation for ADAMS/Chassis.

■ Standard ADAMS/Chassis, which runs ADAMS/Chassis analysis environment. For more information, see the ADAMS/Chassis online help.

■ ADAMS/Chassis Status, which displays information about your Windows environment and available ADAMS/Chassis licenses.

To run ADAMS/Chassis from the program folder:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AChassis, and then select the version of ADAMS/Chassis that you’d like to run.

To run ADAMS/Chassis from the Selection Menu:

■ At the MSC.ADAMS Selection Menu, enter achassis.

Page 31: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products31

Running the MSC.ADAMS Online HelpThe MSC.ADAMS online help is in HTML format and opens in a browser. Many tutorial guides are linked from the online help, and are in PDF format (displayed in Adobe Acrobat Reader with the browser). If you installed the MSC.ADAMS online help, you can start the online help from the MSC.ADAMS 2003 project menu just like you start MSC.ADAMS products. You can also run the MSC.ADAMS online help directly from the MSC.ADAMS CD.

For more information on using the online help, see the Online Help FAQs link in the header of any help window.

To run the installed MSC.ADAMS online help:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, and then select ADAMS - Online Help.

Your default browser starts and displays the home page for MSC.ADAMS online help.

To get help on a dialog box:

■ From the active dialog box, press F1.

Your default browser starts and displays the help file for the dialog box.

To run the MSC.ADAMS online help from the CD:

1 Insert the MSC.ADAMS documentation CD into your CD drive.

The CD asks you if you want to install the help.

2 Exit the installation program.

3 In Windows Explorer, right-click the CD labeled Adams2003 help, and then select Open.

A list of files on the CD appear.

4 Double-click help, then common, and then products.htm.

Your default browser starts and displays the home page for MSC.ADAMS online help.

Page 32: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Running MSC.ADAMS Products32

Page 33: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

3 Creating User Libraries

OverviewCreating your own libraries enables you to run user-written subroutines with standard MSC.ADAMS products. By creating libraries, you can tailor the MSC.ADAMS products to meet your individual needs. This chapter describes how to create libraries. It contains the sections:

■ About User Libraries, 34

■ Products for Which You Can Create User Libraries, 36

■ About Language and Compiling, 37

■ Creating User Libraries for Analysis Products, 38

■ Creating Custom ADAMS/View Library, 39

■ Creating Custom ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail Libraries, 40

■ Debugging User Libraries, 45

Page 34: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries34

About User LibrariesUsing either the program folder or the Selection Menu, you can create user libraries and run them with your MSC.ADAMS products. There are two types of user libraries:

■ MSC.ADAMS Interface or ADAMS/View libraries - These libraries let you change the definition of your model by adding compiled design-time functions for use in ADAMS/View expressions. You can also change post-processing by adding or changing functions that determine how simulation results are computed. You can use these functions in the same way you would use the built-in design-time functions. For more information, see Compiled Functions in the guide, Using the ADAMS/View Function Builder.

■ ADAMS/Solver libraries - These libraries let you add run-time functions for motion or force magnitudes to directly define the behavior of your model and change the way the simulation is performed. They let you take advantage of existing software to define complex modeling relationships, such as hydraulic actuators or tire forces. For more information on writing user-written subroutines, refer to the ADAMS/Solver online help.

Many products, such as ADAMS/View, ADAMS/Car, ADAMS/Engine, and ADAMS/Rail, can run both an interface library and an ADAMS/Solver library because they run ADAMS/Solver internally, as shown in Figure 5.

Figure 5. Types of Libraries

Once you create a library, you need to set up your modeling entities, such as motions or forces, to reference these subroutines and use the library whenever you perform a simulation on models referencing these subroutines. For information on using the subroutines in your model definition, refer to the ADAMS/Solver and ADAMS/View online help.

.dll

Interface

.dll

ADAMS/Solver LibraryLibrary

.dll

ADAMS/Solver Library

ADAMS/View Executable ADAMS/Solver Executable

Page 35: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries35

When you run an ADAMS/Solver library, the associated MSC.ADAMS product only loads the library when a user triggers it, such as when a user selects a command that executes the subroutines in the library. This is because ADAMS/Solver libraries are demand-loaded. When you run an interface library, the associated MSC.ADAMS product loads the library at startup so that design-time functions can be registered and available for immediate use.

Page 36: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries36

Products for Which You Can Create User LibrariesYou can create user libraries for the products listed in Table 5. Table 5 also lists the type of user library you can create (interface or ADAMS/Solver) for that product and where you can place the user library.

You can input C or FORTRAN source files to create ADAMS/Solver user libraries and only C source files to create ADAMS/View user libraries. The libraries are platform-dependent.

For ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, and ADAMS/Rail, you can only specify either your home (private) directory or the site location, to which all users have access.

Table 5. Products for Which You Can Create User Libraries

For the product: You can create the user library: Its location:

ADAMS/Aircraft Interface and ADAMS/Solver Private or site

ADAMS/Car Interface and ADAMS/Solver Private or site

ADAMS/Driveline Interface and ADAMS/Solver Private or site

ADAMS/Engine Interface and ADAMS/Solver Private or site

ADAMS/Rail Interface and ADAMS/Solver Private or site

ADAMS/Solver ADAMS/Solver Any directory

ADAMS/View Interface and ADAMS/Solver Any directory

Page 37: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries37

About Language and CompilingYou can input C or FORTRAN source files to create ADAMS/Solver user libraries and only C source files to create ADAMS/View user libraries. You must compile these subroutines before linking them with an MSC.ADAMS product. See the hardware and software specifications that come with your MSC.ADAMS product for the type of compiler you need. Also refer to your compiler documentation for further instructions. You must use the following C and FORTRAN compiler command and options for your user subroutines. The options are explained in Table 6 on page 37.

For FORTRAN, the command and options are:

df /c /architecture:pn3 /MD /Ob2 /Z7

For C, the command and options are:

cl /c /G6 /Ox /MD /Z7

The linking procedure allows you to supply FORTRAN or C object files (depending on the MSC.ADAMS product).

Table 6. Compiler Options

This variable: Provides the following:

c No linking

G6 Pentium Pro or better optimization (C compiler)

/architecture:pn3 Pentium III or better optimization (FORTRAN compiler)

MD Multi-threaded applications (MSC.ADAMS is a multi-threaded application)

Ob2 or Ox Automatic inlining

Z7 Adds debugging information

Page 38: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries38

Creating User Libraries for Analysis ProductsYou can create user libraries for the MSC.ADAMS analysis products, which include ADAMS/Solver, ADAMS/Driver, ADAMS/Controls, and ADAMS/Tire. You can also run the user libraries from within ADAMS/View when running ADAMS/View with an integrated ADAMS/Solver.

Sample user FORTRAN subroutines are in the following files in the directory c:\install_dir\solver\usersubs\, where install_dir is the directory in which you installed MSC.ADAMS software:

■ driver.f

■ tire.f

You must compile the source files with the options listed in About Language and Compiling on page 37. This procedure only accepts object files.

Note: You can also use a list file (.lst) to enter the names of several object files at once. You must place an @ sign before the name of the list file (for example, @names.lst).

To create a user library:

1 Depending on whether you are using the program folder or the Selection Menu, do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to ASolver, and then select Create Custom Solver.

■ From the Selection Menu, select cr-user.

2 Enter the name of the first object file containing your subroutines (for example, mysubs.obj) or a .lst file (for example, @names.lst).

3 Repeat Step 2 as many times as necessary, by either:

■ Entering an object file containing one or more user-written subroutines.

■ Pressing Enter to end the list of subroutines linked to ADAMS/Solver.

4 Enter a name for the ADAMS/Solver library you want to create and press Enter to begin the linking process.

Page 39: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries39

Creating Custom ADAMS/View LibraryYou can add your own C routines to create a user ADAMS/View library. Sample C functions are in the file vc_init_usr.c in the directory \install_dir\aview\usersubs\, where install_dir is the directory in which you installed MSC.ADAMS software.

Note: You can also use a list file (.lst) to enter the names of several object files at once. You must place an @ sign before the name of the list file (for example, @names.lst).

To create an ADAMS/View library:

1 Depending on whether you are using the program folder or the Selection Menu, do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AView, and then select Create Custom View.

■ From the Selection Menu, select aview. From the ADAMS/View Selection Menu that appears, select cr-user.

2 Enter the name of the first ADAMS/View object file containing your routines (for example, vc_init_usr.obj) or a .lst file (for example, @names.lst).

3 Repeat Step 2 as many times as necessary by either:

■ Entering an object file containing one or more user-written subroutines.

■ Pressing Enter to end the list of subroutines linked to ADAMS/View.

4 Enter a name for the ADAMS/View user library that you want to create.

You’ve now created a user library that ADAMS/View can run.

Page 40: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries40

Creating Custom ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail LibrariesFor ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, and ADAMS/Rail, you can create user interface or ADAMS/Solver libraries.

You can create the libraries in your private (home) directory where only you can access them or place them in the site location for all users to access.

The next sections explain how to create libraries.

■ Directory Structure for Libraries and Binary Files, 41

■ Creating Libraries for ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail, 42

For information on running the libraries, see Running ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, and ADAMS/Rail on page 22. For more information on customizing these products, see their online help.

Page 41: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries41

Directory Structure for Libraries and Binary Files

Before creating a site library, you need to create a site directory and specify its location, as explained in the online help for your template-based product. If you are creating a private library, ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail uses the private directory that it creates when you first run the product. You must have permission to write to the directories. If you do not have write permission, the product returns an error.

The product stores the binaries and libraries in the directory at the same level. The following shows an example directory for ADAMS/Car.

Figure 6. Example Directory Structure for Binaries and Libraries

My_site

acar.bin acariface.dll

Page 42: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries42

Creating Libraries for ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail

The following steps explain how to create interface or ADAMS/Solver user libraries that run with ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail.

You can choose to place any of the libraries in your private or site location. If you are creating a library in your site location, be sure to set up the directory, as explained in Directory Structure for Libraries and Binary Files on page 41.

To create an interface user library:

1 Depending on whether you are using the program folder or the Selection Menu, do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AAircraft, ACar, ADriveline, AEngine, or ARail, and then select Advanced.

■ At the Selection Menu, enter aircraft, acar, adriveline, aengine, or arail.

A Selection Menu appears.

2 Enter the code to create a private or site library (for example, cr-acarprivate or cr-acarsite).

3 At the debug prompt, enter one of the following options:

■ To run in debug mode, enter y.

■ To run in standard mode, enter n or press Enter.

4 Enter the name of the first ADAMS/View object file containing your routines (for example, vc_init_usr.obj) or exit.

5 Repeat Step 4 as many times as necessary by either:

■ Entering an object file containing one or more user-written subroutines.

■ Pressing Enter to end the list of subroutines linked to ADAMS/View.

Page 43: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries43

To create an ADAMS/Solver library:

1 Do one of the following:

■ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AAircraft, ACar, ADriveline, AEngine, or ARail, and then select Advanced.

■ At the Selection menu, enter aircraft, acar, adriveline, aengine, or arail.

A Selection Menu appears.

2 Enter the code to create a private or site library (for example, enter cr-solverprivate or cr-solversite).

3 At the debug prompt, enter one of the following options:

■ To run in debug mode, enter y.

■ To run in standard mode, enter n or press Enter.

4 Enter the name of the first object file containing your subroutines (for example, mysubs.obj). This procedure only accepts object files.

5 Repeat Step 4 as many times as necessary, by either:

■ Entering an object file containing one or more user-written subroutines.

■ Pressing Enter to end the list of subroutines.

Creating Binary FilesYou can create a binary file, aircraft.bin, acar.bin, adriveline.bin, aengine.bin, or arail.bin, that contains database information for the customized menus, dialog boxes, and buttons that appear in template-based products (ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, or ADAMS/Rail). When you start a template-based product with your binary file, the product reads in your customized interface instead of the standard binary file.

You can create the binary files in your private (home) directory where only you can access them or place them in the site location for all users to access.

Page 44: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries44

To specify the interface changes that you want in the binary file, you create a command file containing ADAMS/View commands for modifying the interface. For example, the following commands create a new menu named New Menu and a button named DO IT under the menu:

interface menu create &menu_name=.gui.main.aca_sta_mbar.new_menu &enabled=yes &label =“New Menu”

interface push_button create &push_button_name = .gui_man.aca_sta_mbar_new_menu.do_it &enabled = yes &label = “DO IT” &command = “list_info entity=.ACAR”

The name of the command file must be acar_build.cmd or aengine.cmd and must be in your private or site directory.

For information on directory structure for storing binary files, see Directory Structure for Libraries and Binary Files on page 41. For more on creating acar_build.cmd, see the Customize tab in your template-based product’s online help. For more on command files, see the ADAMS/View online help.

To create a binary file:

■ Depending on whether you are using the program folder or the Selection Menu, do one of the following:

❖ From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, point to AAircraft, ACar, ADriveline, AEngine, or ARail, and then select Advanced. In the Selection Menu that appears, enter the code to create the binary (for example, enter cr-privatebin or cr-sitebin).

❖ From the Selection Menu, enter aircraft, acar, adriveline, aengine, or arail, and then enter the code to create the binary (for example, enter cr-privatebin or cr-sitebin).

Note: We strongly encourage you to review your product’s log file (acar.log, aride.log, and so on) for any warning or error messages that may have occurred during the building of the binary file.

Page 45: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries45

Debugging User LibrariesTo debug an ADAMS/Solver user library:

1 Compile your source code using the /Z7 compiler flag, such as:

df /c /MD /Z7 user.f

2 Create a library file with debugging information as explained in Creating User Libraries for Analysis Products on page 38. From the command window, you would enter:

adams03 cr-user y user.obj -n mysolver.dll

3 Run the library file in debug mode as explained in Running ADAMS/Solver on page 16. From the command window, you would enter:

adams03 ru-user mysolver.dll user.acf

Microsoft Visual Studio automatically starts up.

4 In MS Visual Studio, point to Project, point to Settings, and then select Debug. Browse for:

install_dir/solver/solver.exe

5 Open user.f and set a breakpoint on a line in your user subroutine.

6 Run the project, using:

Build → Start Debug → Go

A command window appears, showing ADAMS/Solver initialization commands. The program execution then halts in the debugger at the breakpoint that you’ve specified.

Page 46: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Creating User Libraries46

To debug an ADAMS/View interface library:

■ Follow the instructions above for ADAMS/Solver libraries, except:

■ Make sure the environment variable MSDEV_EXE in install_dir/common/mdi.bat points to the location of the debugger (msdev.exe).

■ The command to create the library is:

adams03 aview cr-user y user.obj -n myview.dll

■ The command to run in debug mode is:

adams03 aview ru-u i myview.dll

■ You browse for:

install_dir/aview/aview.exe

Page 47: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

4 Setting Preferences for MSC.ADAMS

OverviewThis chapter describes how to set up ADAMS/View and ADAMS/Solver.

■ Setting the MSC.ADAMS Environment, 48

■ Setting a Custom Memory Model Size, 53

■ Setting the MSC.ADAMS Search Paths, 56

■ Modifying MSC.ADAMS Files, 58

■ Setting Up Pausing for ADAMS/Solver, 60

Page 48: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS48

Setting the MSC.ADAMS EnvironmentYou can set the following options for the ADAMS/View and ADAMS/Solver environment:

■ Current Graphics settings - The options are:

❖ Native OpenGL either hardware or software-assisted - OpenGL with hardware assistance uses the hardware acceleration to render overlay planes. The overlay planes are used for the:

❖ Rubber band box drawn for selection or zoom.

❖ Temporary geometry (arrows) displayed when creating joints.

❖ Temporary geometry when sketching curves, extrusions, and revolutions.

❖ Object names when in selection mode.

Some graphics cards do not offer hardware acceleration for overlay planes. If you have one of these graphics cards, then you should use Native OpenGL with software assistance. Software assistance simply means that ADAMS/View draws the overlay plane geometry instead of relying on the hardware.

Native OpenGL with software assistance is slower because the screen refresh rate for the overlay plane will be affected by the other geometry in the view.

❖ HOOPS OpenGL and MSW driver

Page 49: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS49

■ Miscellaneous graphics settings - The options are:

❖ Double buffering - Turns on/off double buffering.

❖ Overlay background - Controls whether or not a background appears behind pop-up text, such as the names of modeling elements and position coordinates. Because some graphics cards do not fully support OpenGL with overlay planes, which the background is, you may not be able to see the text. If this occurs, disable this option to remove the background and leave the text.

■ Memory model size - You can set the memory model size for when ADAMS/View is loading a model or when ADAMS/Solver is solving the equations of motion. You can also define a custom memory model as explained in Setting a Custom Memory Model Size on page 53. Table 7 on page 50 shows the variable and array size for the memory options. Table 8 on page 51 explains each variable and array.

■ Current product settings - The option is:

❖ Hardcopy Resolution - Specifies the resolution for shaded images written to a postscript file. Hardcopy Resolution does not affect wireframe images, such as xy plots.

The default setting is 300 dots per inch (DPI). Note that earlier versions of ADAMS/View (10.1 and earlier) used a default resolution of 75 DPI. We do not recommend that you use a resolution lower then 75 or higher then 600 DPI.

Note also that larger values produce larger postscript files, and will likely increase processing time for the printer.

■ MSC.ADAMS home directory - Specify a default MSC.ADAMS working directory by entering it directly, or by browsing your file system.

■ MSC.ADAMS editor - Specify a text editor. Select the standard Windows Notepad editor, or enter another editor in the Other text box (for example, vi.exe). Note that if you enter the name of another editor, it must be found by the PATH environment variable in Windows.

Page 50: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS50

Table 7. Memory Model Sizes

Variable MDSIZE OSSIZ CDSIZ LDSIZE LCEXPR FPSIZE NINSIZ MXSTAK

Array MD OPRM CD LDSIZE CEXPR FPVARS NINSTR MSTAK1

Standard 1100000 10000 4000 2000 100 250 1000 50

Large 3000000 10000 4000 2000 200 250 1000 100

Extra Large 10000000 100000 8000 2000 300 500 2000 100

Huge 20000000 100000 8000 5000 300 1000 5000 300

Page 51: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS51

Table 8. Array and Variable Functions

This array or variable: Is used as:

MD array The main storage array for ADAMS/Solver analysis.

OPRM array The memory section for interactive modification of function expressions, user-written subroutines, arrays, splines, and so on.

CD array Storage for column titles and spline types.

LD array Storage for character strings, request comments, function expressions, and so on.

LCEXPR variable The maximum number of lines in any function expression.

FPSIZE variable The maximum number of constant values in all functions.

NINSIZ variable The maximum number of RPN instructions in all function expressions.

MXSTAK variable The maximum size of the RPN stack.

Page 52: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS52

To set preferences:

1 From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2003, and then select ADAMS - Settings.

The MSC.ADAMS Graphics/Memory Settings dialog box appears.

2 Set the options, as necessary.

3 Select OK.

Page 53: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS53

Setting a Custom Memory Model SizeMSC.Software provides several standard memory models for you to use as explained in Setting the MSC.ADAMS Environment on page 48. Often, when you are simulating very large models, however, you receive the following message:

! ERROR: ***** ADAMS MEMORY OVERFLOW *****! A larger MD array is required.! The error occurred in subroutine "OPMAIN" while allocating "DOUB" space! from "TEMP" for the "IZ".! Space Available: 348496 Space Requested: 7651872

In the message, Space Available is the amount of space that is left to run with the current memory model. Space Requested is the space that is needed for the simulation to continue. Therefore, the space needed to run the simulation is:

Space Requested - Space Available + Current Memory Model

For example, if you are running with the memory model set to HUGE and you get the following error message:

! ERROR: ***** ADAMS MEMORY OVERFLOW ***** ! A larger MD array is required. ! The error occurred in subroutine "OPMAIN" while allocating "DOUB" space ! from "TEMP" for the "IZ". ! Space Available: 348496 Space Requested: 7651872

The amount of memory necessary to run the simulation is:

7651872-348496 + 20000000 = 27.4e6

If you already have your memory model set to HUGE, you need to create a custom memory model to accommodate the large memory requirements.

Remember that selecting a memory size affects the machine and every user. Consult with other users before decreasing the allocated size.

Page 54: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS54

By default, MSC.ADAMS places the custom memory model in the directory install_dir\win32\uconfg_user. When MSC.ADAMS starts, it searches the following locations in the following order for a custom memory model:

■ The location where the user executable is found, if used.

■ install_dir\win32\uconfg_user directory.

To set a custom memory size:

1 Set the memory size to userdefined, as explained in Setting the MSC.ADAMS Environment on page 48.

2 Start MS Visual Studio.

3 Open the project file.

install_dir\win32\uconfg_user\uconfg.dsw

The default location for install_dir is c:\Program Files\MSC.ADAMS 2003.

Page 55: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS55

4 Edit the file uconfg.f.

The customizable settings are in the following lines:

47: MDSIZ

69: OSSIZ

82: CDSIZ

97: LDSIZ

108: LCEXPR

119: FPSIZE

120: NINSIZ

129: MXSTAK

5 Select F7 to build uconfg.dll.

Your memory model size is set.

Set the custom memory setting as the default as explained in Setting the MSC.ADAMS Environment on page 48.

Page 56: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS56

Setting the MSC.ADAMS Search PathsAt installation, MSC.ADAMS products, including ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, ADAMS/Rail, and ADAMS/View, create a default aview.pth file. It is in the aview subdirectory, beneath the installation directory, install_dir.

The aview.pth file allows you to specify search paths for the different types of files that can be opened in ADAMS/View. This is useful for files that are shared with other users, and are not in your current working directory. Below is an example of an aview.pth file:

.bin c:/install_dir/aview/

.adm c:/install_dir/datasets/

.cmd c:/aview/cmd_files/

.dat c:/adams/test_data/

.gra c:/staff/my_home_dir/adams/output/

.req c:/staff/my_home_dir/adams/output/

.res c:/staff/my_home_dir/adams/output/

.igs c:/staff/my_home_dir/adams/iges_files/

.dct c:/usr/install_dir/aview/

Each line in the file specifies a search path for a specific file extension. The first line in the example file above specifies a search path for files with an extension of .bin. You can have multiple paths for each extension by adding another line with the same file extensions and an alternate path. Remember that each line must begin with a file extension.

Any file extension can be put in the ADAMS/View path file. Therefore, you do not have to name your files with the standard ADAMS/Solver and ADAMS/View extension. Use the following conventions to add a file extension to the path file:

■ Begin each line in column one with the desired file extension.

■ Begin each file extension with a . (period).

■ Separate the extension and search path for the extension with space. You can use a single space, tab, or a combination of these.

■ Complete each search path, starting from the root (/) of the file system.

■ End each search path with a trailing / (forward slash).

■ Ensure that each line is less than 255 characters in length.

Page 57: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS57

If you want to make the changes to the ADAMS/View path file affect all ADAMS/View users, edit the default aview.pth file mentioned above.

If you want to make the changes affect only your files, follow these steps:

1 Copy the default ADAMS/View path file to your working directory.

2 Add, delete, or modify the file to specify your file search paths.

3 From the Start menu, select Run.

A dialog box appears.

4 Enter regedit and press OK.

The registry file window appears.

5 Edit the Registry Key, HKEY_LOCAL_MACHINE/SOFTWARE/MSC.SOFTWARE CORPORATION/MSC.ADAMS/ADAMS Common/2003, and include the following line:

MDI_AVIEW_SRCH_PATH=/your/pwd/aview.pth

You must specify the full path to your local aview.pth file, including the file name. For example, the line might look like the following:

MDI_AVIEW_SRCH_PATH=/staff/jdoe/aview.pth

Page 58: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS58

Modifying MSC.ADAMS FilesYou can set up the following files to change the way in which the interface products, including ADAMS/Car, ADAMS/Engine, ADAMS/Rail, and ADAMS/View work:

■ Modifying MSC.ADAMS Command Files at Startup, 58

■ Modifying the MSC.ADAMS Log File, 59

■ Modifying the ADAMS/View Binary File, 59

Modifying MSC.ADAMS Command Files at Startup

The three files that interface products read when they start up, where product is the name of the product, are:

■ product.cmd

■ productBS.cmd

■ productAS.cmd

In the file names, BS stands for Before Startup, meaning that MSC.ADAMS reads it before it reads other setup files, and AS stands for After Startup, meaning that MSC.ADAMS reads it after it reads other setup files.

The startup files contain ADAMS/View commands that MSC.ADAMS executes on startup. You can edit any of the files to execute MSC.ADAMS as desired when it starts up. Note that many products overwrite the BS and AS files when you select to save options, so you may lose the edits you make. For more information on the content of command files and how to create them, see the ADAMS/View online help.

MSC.ADAMS first searches for the command files in the current working directory. If a command file does not exist locally, MSC.ADAMS searches for it in the directories specified for .cmd files in the aview.pth file.

The command file names are hard-coded, and you cannot change them.

Page 59: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS59

Modifying the MSC.ADAMS Log File

The aview.log file is a text file containing a log of your commands for an MSC.ADAMS session. MSC.ADAMS creates the file in your local directory.

While running ADAMS, you can change the name of the log file for that session with the command:

FILE LOG_FILE FILE_NAME = "filename"

Each time ADAMS/View starts, it overwrites any existing aview.log file.

For more information on the content of log files and how to create them, refer to the ADAMS/View online help.

Modifying the ADAMS/View Binary File

Note: When changing binary files for the template-based products, ADAMS/Aircraft, ADAMS/Car, ADAMS/Driveline, ADAMS/Engine, and ADAMS/Rail, we recommend that you follow the instructions in Creating Binary Files on page 43.

The aview.bin file is a binary file containing the ADAMS/View database. ADAMS/View reads it on startup. ADAMS/View first searches for aview.bin in the current working directory. If aview.bin does not exist locally, ADAMS/View searches for it in directories specified for .bin files in the aview.pth file.

The aview.bin provided with ADAMS/View contains database information for the standard menus, panels, and buttons. You can create your own copy of aview.bin to save a customized interface (menus, panels, and buttons you have modified). When you start ADAMS/View again in the directory containing your version of aview.bin, ADAMS/View reads in your customized interface and ignores the standard aview.bin file.

You can also create an aview.bin to save the state of your modeling session. If you use the name aview.bin for the file, the next time you start ADAMS/View in that directory ADAMS/View automatically reads the aview.bin file and restores your modeling session. Alternatively, you can use a different name for the binary file you save. To restore the state of you modeling session, issue the following command in the command window inside ADAMS/View:

FILE BINARY READ FILE_NAME = "filename"

Page 60: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

Running MSC.ADAMS on Windows

Setting Preferences for MSC.ADAMS60

The name aview.bin is hard-coded in ADAMS/View as the default binary file read upon startup. You cannot change it.

For more information on the content of binary files and how to create them, refer to the ADAMS/View online help.

Setting Up Pausing for ADAMS/SolverYou can set the variable MDI_PAUSE to set a pause after ADAMS/Solver starts running in interactive mode. The default setting is 0 for no pause.

To activate the pause:

1 From the Start menu, point to Settings, and then select Control Panel.

2 From the Control Panel folder, double-click System, and then select the tab Environment.

3 Enter the variable MDI_PAUSE and set it to 1.

4 Select OK.

Page 61: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index61

Index

A - Bacar selection code 9

Accessing, online help 31

ADAMS analysis productsrunning 16

ADAMS help, running 31

ADAMS/Aircraftcreating libraries for 42running from program folder 23running through Selection Menu 26what you can create 40, 43

ADAMS/Carcreating binary file for 43creating libraries for 42modifying startup files 58running from program folder 23running through Selection Menu 26what you can create 40, 43

ADAMS/Chassis, running 30

ADAMS/Drivelinecreating libraries for 42running from program folder 23running through Selection Menu 26what you can create 40

ADAMS/Drivercreating library for 38running 16

Page 62: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index62

ADAMS/Enginecreating binary file for 43creating libraries for 42modifying startup files 58running from program folder 23running through Selection Menu 26what you can create 40, 43

ADAMS/Flex, running 29

ADAMS/Hydraulics, running 16

ADAMS/Insight, running 28

ADAMS/Linearrunning 16running user library with 17

ADAMS/PostProcessor, running 29

ADAMS/Railcreating binary file for 43creating libraries for 42modifying startup files 58running from program folder 23running through Selection Menu 26what you can create 40, 43

ADAMS/Solvercreating library for 38creating library for ADAMS/Aircraft, Car, Driveline, Engine, or

Rail 42running 16running ADAMS/Aircraft, Car, Driveline, Engine, or Rail

version 27running with library 9setting up pausing 60

ADAMS/Solver library, described 34

Page 63: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index63

ADAMS/Tirecreating library for 38running 16

ADAMS/Viewcreating library for 39modes 19modifying startup files 58running through program folder 18running through Selection Menu 19running with user libraries 21selection menu 19

Add-on modules, about running 16

adriveline selection code 9

aengine selection code 9

ainsight selection code 9

aircraft selection code 9

appt selection code 9

arail selection code 9

aview selection code 9

aview.bin 59

aview.cmd, modifying 58

aview.log 59

aview.pth 56

Background, setting display of for text 49

Batch mode, described 19

Binary filecreating for ADAMS/Car, Engine, or Rail 43directory structure for 41modifying for ADAMS/View 59

Page 64: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index64

C - DCommand files

entering 19modifying 58

Command line parameters, using 11

CreatingADAMS/Aircraft libraries 42ADAMS/Car libraries 42ADAMS/Driveline libraries 42ADAMS/Engine libraries 42ADAMS/Rail libraries 42ADAMS/Solver library 38ADAMS/View library 39binary files 43library for MSC.ADAMS analysis products 38

cr-user selection code 9

Directory structure, for Aircraft, Car, Driveline, Engine, or Rail 41

DisplayingADAMS/Aircraft, Car, Driveline, Engine, or Rail Selection

Menu 24ADAMS/View Selection Menu 19Selection Menu 7

DPI, setting for postscript 49

Dynamic link library, See Library

E - FEditor, setting 49

exit selection code 9

Exiting the Selection Menu 10

Files, creating binary 43

Page 65: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index65

G - HGenerating reports 12

Hardcopy resolution, setting 49

Help, getting online 31

Home directory 49

HOOPs, setting OpenGL or MSW driver 48

I - JInteractive mode, described 19

Interface library, described 34

Interfaces, types of 3

K - LLibrary

creating for ADAMS/Aircraft 42creating for ADAMS/Car 42creating for ADAMS/Driveline 42creating for ADAMS/Engine 42creating for ADAMS/Rail 42creating for MSC.ADAMS analysis products 38described 33, 34directory structure for in Aircraft, Car, Driveline, Engine, or

Rail 41running ADAMS/Aircraft with 23running ADAMS/Car with 23running ADAMS/Driveline with 23running ADAMS/Engine with 23running ADAMS/Insight with 28running ADAMS/Rail with 23running with ADAMS/Solver 9

Log file, modifying for ADAMS/View 59

Page 66: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index66

M - NMDI_PAUSE 60

Memoryarrays 49setting amount 49setting custom size 53variables 49

Modes, product 19

ModifyingADAMS/View binary file 59ADAMS/View log file 59command files 58

MSC.ADAMS analysis products, creating library for 38

MSW Hoops driver, setting 48

O - POnline help, running 31

OpenGL, setting driver 48

Overlay background, setting 49

Path file, modifying for ADAMS/View 56

Pausing ADAMS/Solver 60

Plug-ins, about running 16

Postscript, setting DPI of 49

Problem reports 12

Page 67: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index67

Q - RRegistry key 57

RunningADAMS/Aircraft 23, 26ADAMS/Car 23, 26ADAMS/Chassis 30ADAMS/Driveline 23, 26ADAMS/Engine 23, 26ADAMS/Flex 29ADAMS/Hydraulics 16ADAMS/Insight 28ADAMS/PostProcessor 29ADAMS/Rail 23, 26ADAMS/Solver 16ADAMS/View using Selection Menu 19modes for 19plug-ins, about 16user libraries with MSC.ADAMS analysis products 17user library with ADAMS/View 21

ru-standard selection code 9

ru-user selection code 9

S - TSearch path, setting for ADAMS/View 56

Selection codes 19entering 10for ADAMS/Car Selection Menu 25for ADAMS/View Selection Menu 19for MSC.ADAMS Selection Menu 9

Page 68: Running MSC.ADAMS on Windows - MSC Software …web.mscsoftware.com/support/prod_support/adams/... · 2003-06-09 · ADAMS/View ADAMS/Car ADAMS/Engine ADAMS/Aircraft ADAMS/Rail ADAMS/Driveline

A - B

U - V

W - Z

C - D

E - F

G - H

I - J

K - L

S - T

Q - R

O - P

M - N

Running MSC.ADAMS on Windows

Index68

Selection Menudescribed 7displaying 7displaying ADAMS/Aircraft, Car, Driveline, Engine, or

Rail 24entering selection codes in 10exiting 10selection codes 9

Startup files, modifying 58

Technical Supportcontacting 12generating report for 12

Text, setting display of 49

Troubleshooting report 12

U - VUser library, See Library

Using command line parameters 11

W - Zworking directory 49