Batch Mode Analysis
Overview of Batch Mode Analysis
In Adams Vibration, you can perform batch mode vibration analysis. This functionality is available in the Python scripting environment. The Python scripting language was selected for its ease of use, power, and flexibility. A basic understanding of the python language is prerequisite to using batch mode analysis. For more information on the Python scripting language see
http://www.python.org.
To perform vibration batch mode analysis, you must have an existing Adams model in the form of a dataset (.adm) file. Based on this model, you are required to create a Python script to perform the following:
1. Set up the model for vibration analysis.
a. Define vibration actuator
b. Define vibration input channels
c. Define vibration output channels
d. Define vibration analyses
2. Perform vibration analysis
a. Create a vibration model
b. Perform the vibration analysis
3. Export analysis results for postprocessing
a. Export simulation data to a stand-alone file in the .xml format. This file may be imported in third-party packages for plotting.
b. Export an
Adams View command file, which can be imported into Adams PostProcessor for postprocessing of Adams Vibration analysis data.
4. Check out and check in Adams Vibration license (optional, but good practice)
Once you've created the Python script, you can run it using one of the following commands:
■On Windows, from a command prompt:
adams2024_1 python my_model.py
■On Linux, in a Linux shell:
adams2024_1 -c python my_model.py
where my_model.py is the python script file.
Alternatively, you can also type the commands contained in this file directly into the Python interpreter to perform the same analysis.
Python Examples
Your installation directory contains many examples that use Python scripts to perform various Adams Vibration activities. The following table lists the location and description of each example.
Note: | All example directories are located in install_dir/vibration/examples, where install_dir is the directory where Adams is installed. |
Example directory: | Instructions file: | Description of example: |
|---|
mechanical_transfer_functions | Readme.txt | Illustrates the calculation of mechanical transfer functions in the frequency domain using Adams Vibration. Also saves vibration results in a .res file. |
multi_point_analysis | Readme.txt | Using a concept vehicle model, runs a batch-mode analysis in the frequency domain using Adams Vibration. The analysis calculates the compliance matrix of the model at multiple operating points during the simulation. |
python_batch_analysis | Readme.txt | Using a concept vehicle model, runs a batch-mode analysis in the frequency domain using Adams Vibration. |
python_plotting | Readme.txt | Illustrates the plotting of vibration data in Python. Each Python script produces a different kind of plot. |