Adams软件后置处理
ADAMS操作基础

单位设置
单 位 系 统 长 度 质 量 力
1 MMKS 毫 米 公 斤 牛 顿
2 MKS
米 公 斤 牛 顿
3 CGS 厘 米 克 达 因
4 IPS 英 寸 斯 磅 力
时 间 角 度 频 率 秒 度 弧 度 /秒 秒 度 弧 度 /秒 秒 度 弧 度 /秒 秒 度 弧 度 /秒
定义重力
15
2.10 信息管理及帮助信息
1
2.2 虚拟样机仿真分析基本步骤
机械系统建模 : 几何建模、运动副和运动约束、载荷 仿真分析 仿真结果分析 :回放仿真结果、绘制仿真结果曲线 验证仿真分析结果 :实验数据 与实验结果一致 ? 精制机械系统模型 :摩擦力 、柔性物体和连接、控制 重复仿真分析 机械系统优化分析 :可变参数 、试验设计 、最优化
菜单栏、 弹出式菜单、
• 屏幕上的各种对象,例如:构件、标记、约束、运动、力等 • 输入对话框中的文本输入栏 • 后处理图标中的各种对象,例如:曲线、标题、坐标、符号标记
等
快捷工具栏 命令窗口
8
鼠标的应用
鼠标左键和鼠标右键
左键: 选择样机模型中的各种对象、选择菜单栏中的命 令、快捷工具图标命令和对话框中的有关命令。
3-2 输入ADAMS/View命令的常用方法有哪两种?试比较各 自的优缺点。
3-3 鼠标的右键操作主要应用于哪些场合? 3-4 *
17
虚拟样机技术入门与应用--3
虚拟样机建模
3.1 几何建模预备知识
几何体类型
• 4种类型的几何体:刚性形体、柔性形体、点质量和地基形体
几何体坐标系
• 每一个新产生的几何体都设有一个参考坐标---构件机架坐标系
• 动态移动视图 • 动态旋转视图
ADAMS后处理中数据及图形导出方法

2013-04-27 13:14:45| 分类: ADAMS经验总结 |字号 订阅
ADAMS软件在进行仿真后,点击Review--Postprecesing或F8快捷键进入后处理中,按照需要数据导出分为两种情况:
(1)图形导出
把测量出的图形显示在后处理中,点file--print,print to选择file,file name可更改,native window选择导出的格式,如BMP、jpg、tiff等,考虑到分辨率问题,建议选择tiff格式。尺寸可不更改。右侧black and white为黑白色,color为彩色,可根据自己的需要更改。如果要直接放入论文中,建议选黑白色即可,彩色的打印效果偏淡。点击OK,即可在adams默认路径下找到导出的图片。
(2)数据导出
如果想根据数据重新计算、分析或绘图的话,就需要绘制图形的这些spreadsheet或table,下面以table为例进行说明
在filename中输入自己定义的文件名称,plot点击右键选择要输出的图形,format选择spreadsheet后点击OK,即可在工作路径下生产tab格式文件。该方法与直接选择spreadsheet的方法类似,只不过spreadsheet需要选择你的测量(measure)名,而不能直接选择显示的图形。
ADAMS系统测量与仿真和仿真后处理

对象 结构 关系
栏
特性 编辑 区
工具条
后处理程序窗口
后处理的绘图 区
菜单栏 页面操 作区
控制面 板区 状态 栏
2、仿真模型的调入和仿真重 现
仿真模型调入:
I)激活拟显示虚拟样机仿真过程的屏 幕视窗,然后将鼠标置于视窗上, 打开弹出式菜单。
2)选择Load Animation命令,调入 ADAMS/View的仿真计算结果,可 以在屏幕上看见已经调入的样机。
名称 测量零件 测量特征 测量分量
测 量 构Ⅰ 件 对 话 框
Selected Object参数表示构件、运 动副、力、运动、点或标记等各种对
象的测量;
Point—to—Point参数表示两点之间 的相对运动测量;
Orientation参数表示坐标系标记方向 的测量;
Range 参数表示已定义的测量的统计值 ,例如:平均值、最大值等;
页的操作
操作工具
后
前新
删
翻
翻建
除
视窗的操作
视窗布置 选择视窗 放大视窗 转移视窗内容 删除视窗内容
对象结构关系及其转性编辑
Modeling项包括与仿真样机 有关的各种对象类型,例如 :构件、运动副、作用力等
Plotting项包括与绘制 数据曲线图有关的各种 对象类型,例如:曲线
、标题等。
重现仿真过程
数据曲线自变量坐标轴的选择
在控制面板右侧 的自变量轴选择 区(Independent
Axis),选择 Data项
在弹出的自变量 轴浏览对话框, 选择自变量轴(X 轴)的变量,然
后选择OK
修改坐标轴的特性
特性:坐标轴 的范围、颜色 、坐标刻度、 坐标刻度标记 、坐标标题和
adams后处理学习资料

Getting Started UsingADAMS/PostProcessorThis guide contains a tutorial that steps you through the basics of ADAMS/PostProcessor. If you follow the steps in this tutorial, you will learn how to view the simulation results you created in other MSC.ADAMS products in ADAMS/PostProcessor.Click an entry below to begin:■Starting ADAMS/PostProcessor,3■Working with ADAMS/PostProcessor,9Getting Started Using ADAMS/PostProcessor 2CopyrightThe 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 InformationThis 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 © 2004 MSC.Software Corporation. All rights reserved. Printed in the United States of America. TrademarksADAMS, 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 UseUse, 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.Starting ADAMS/PostProcessorOverviewWe’ve provided a tutorial that steps you through the basics ofADAMS/PostProcessor. If you follow the steps in this tutorial, youwill learn how to view the simulation results you created in otherMSC.ADAMS products in ADAMS/PostProcessor. The sections inthe chapter are:■What You Will Do in the Tutorial, 4■Starting ADAMS/PostProcessor, 4■Loading the Simulation Results, 5The tutorial takes about 20 minutes to complete.Getting Started Using ADAMS/PostProcessor 4Starting ADAMS/PostProcessorWhat You Will Do in the TutorialIn the tutorial, you’ll learn how to:1View reports.2Play an animation of simulation data, including animating the results of a clearance study.3Display simulation results as both xy plots and tables.4View animations and plots simultaneously.Starting ADAMS/PostProcessorYou can run ADAMS/PostProcessor as a stand-alone product 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. It also explains how to start any add-ons or plugins to ADAMS/PostProcessor. Currently, the only plugin is for ADAMS/Durability.To start ADAMS/PostProcessor stand-alone in UNIX:1At the command prompt, enter the command to start the MSC.ADAMS Toolbar, and then press Enter. The standard command that MSC.Softwareprovides is adams x, where x is the version number, for example, adams2005represents MSC.ADAMS 2005.The MSC.ADAMS Toolbar appears.2Click the ADAMS/PostProcessor tool .For more information on the MSC.ADAMS Toolbar, see the guide, Runningand Configuring MSC.ADAMS on UNIX.To start ADAMS/PostProcessor stand-alone in Windows:■From the Start menu, point to Programs, point to MSC.Software, point to MSC.ADAMS 2005, point to APostProcessor, and then select ADAMS -PostProcessor.For more information on running MSC.ADAMS products from the Startmenu, see the guide, Running MSC.ADAMS on Windows.Getting Started Using ADAMS/PostProcessorStarting ADAMS/PostProcessor5Loading the Simulation ResultsWe’ve provided you with simulation results that you can use to learn the basics of ADAMS/PostProcessor. The simulation results are in two files:■ppt_gs.gra - Graphics file containing information that enablesADAMS/PostProcessor to animate a model of a suspension. It also containstime-dependent data describing the position and orientation of each part in themodel.■ppt_gs.req - Request file containing information that enablesADAMS/PostProcessor to create plots of simulation results. It containsinformation about the various data requested and time history of all the requestvalues.In this tutorial, you import these files through the command file ppt_gs.cmd. The command file also sets up several pages containing animations and plots. In addition, it runs a clearance study as it loads the files.The files are located in the directory /install_dir/ppt/examples, where install_dir is the directory where you installed the MSC.ADAMS products. To get the results into ADAMS/PostProcessor, you need to copy the files to your working directory and import the command file.To copy the files:■In the directory /install_dir/ppt/examples, copy the following files to your working directory:■ppt_gs.cmd■ppt_gs.req■ppt_gs.gra■ppt_gs.html■ppt_gs.pngGetting Started Using ADAMS/PostProcessor 6Starting ADAMS/PostProcessor To import ppt_gs.cmd:1From the File menu, point to Import, and then select Command File.2Right-click the File Name box, and then select Browse.3Use the Open dialog box to find the file ppt_gs.cmd, and then select OK.4In the File Import dialog box, select OK.The command file that you imported into ADAMS/PostProcessor creates several pages containing reports, animations, and plots. It also runs a clearance study.Familiarizing Yourself with ADAMS/PostProcessorADAMS/PostProcessor has four modes:animation, plotting, reports, and 3D plotting (only available with ADAMS/Vibration and ADAMS/Engine data). It switches its modes automatically depending on the contents of the active viewport. For example, the tools in the Main toolbar change if you load an animation or a plot into a viewport.Figure1 on page 7shows the ADAMS/PostProcessor window. The elements shown are common to all modes.Getting Started Using ADAMS/PostProcessorStarting ADAMS/PostProcessor 7Figure 1. ADAMS/PostProcessor WindowThe elements in the ADAMS/PostProcessor window are:■Menu bar - Contains the headings of each menu. ■Main toolbar - Displays commonly used tools for working with animations, plotting results, and reports. It changes depending on whether you are viewinganimations, plots, or reports.■Treeview - Displays a hierarchical list of the models and pages. The tree is especially useful for selecting and identifying objects.■Property editor - Lets you change the properties of selected objects.■Status toolbar - Displays information messages and prompts while you work.■Page - Displays the current page. Each page can display up to six rectangular areas or viewports in which you can place animations and plots.■Viewports - Rectangular areas that display different views of plots, animations, or reports.■Dashboard - Provides functions for controlling animations or plotting results.Status toolbarGetting Started Using ADAMS/PostProcessor 8Starting ADAMS/PostProcessorWorking with ADAMS/PostProcessor OverviewThis chapter steps you through working with three of theADAMS/PostProcessor modes: reports, animations, and plotting:■Displaying Reports, 10■Working with Animations, 10■Working with Plots, 12■Viewing Plots and Animations Simultaneously, 17■The Next Step, 17Getting Started Using ADAMS/PostProcessor 10Working with ADAMS/PostProcessor Displaying ReportsThe first page, which ADAMS/PostProcessor displays by default, is a page p1_report, which displays a report of the pages that the command file you imported created. As you can see from the report, you can use simple HTML tags and bitmapped images to display information about the animations and plots in ADAMS/PostProcessor. You can also display reports of clearance studies. For more information on displaying reports and the HTML tags that ADAMS/PostProcessor supports, see the ADAMS/PostProcessor online help.Working with AnimationsNow you’ll review the animation you loaded with the clearance study results that ADAMS/PostProcessor just performed. You’ll view the animations in different ways, including interactively setting the speed at which ADAMS/PostProcessor runs the animations.Viewing an AnimationThe animation that you will view is stored on the page named p2_clearance.To select the animation page:■In the treeview, select p2_clearance.ADAMS/PostProcessor switches to animation mode and displays the first frame of the animation. All the elements in the dashboard change to those forcontrolling animations. The pull-down menu at the top ofADAMS/PostProcessor to the right of the toolbar also changes to Animation toindicate the current mode.Notice the red and green lines in the animation:■The green line tracks the distance between the right wheel (PART_21) and the steering wheel (PART_10).■The red line tracks the distance between the left wheel (PART_22) and the steering wheel (PART_10).Working with ADAMS/PostProcessor11 To run the animation:■At the top of the dashboard, select the Play tool.Notice that ADAMS/PostProcessor continuously plays the animation. You can also set ADAMS/PostProcessor so that it plays the animation only once or plays the animation forward and then backward.To set the animation to play only once:1On the dashboard, select Animation, if necessary.2Set Loop to Once.Interactively Playing the AnimationTo help you investigate the results of a simulation, you can play animation frames forwards and backwards, rewind to an earlier frame, or play only a portion of the animation. In this tutorial, you’ll interactively play the animation by dragging the animation slider.To interactively play the animation:1To rewind the animation, select the Reset tool.2At the top of the dashboard, drag the slider bar back and forth to watch how the animation plays backwards and forwards at the speed at which you drag the slider.Working with PlotsADAMS/PostProcessor also plots the results of simulations so you can interpret the performance of your design. In this section, you’ll view pages with plots on them, modify the plots, and create your own plots.Viewing Pages of PlotsA page, called p3_plots, already exists that contains several plots that you will view. You’ll first view all the plots and then you’ll quickly zoom in on just one of the plots. Notice that p3_plots in the lower left corner is a plot that ADAMS/PostProcessor has displayed as a table. In the treeview, it is still listed as a plot.To view the plotting page:1In the treeview, select p3_plots.ADAMS/PostProcessor switches to plotting mode and displays the plots.2Click the plot in the upper right corner of the window and, from the Main toolbar,select the Expand View tool.ADAMS/PostProcessor displays only the selected plot.3To return to viewing all the plots, select the Expand View tool again.Working with ADAMS/PostProcessor13Modifying Plotting ObjectsYou can tailor the appearance of plots to help you identify the information in the plot more effectively or to make the plot ready for a presentation. In this section, you’ll turn off the grid lines and change the line style of the curves of one of the plots.Displaying the Table as a PlotBefore you begin to change the look of plots, you’ll change the plot displayed as a table (plot_4) back to being an xy plot.To change the table to a plot:1In the viewport, select plot_4.2In the property editor, clear the selection of Table.Turning Off Grid LinesIn ADAMS/PostProcessor, plots contain primary and secondary grid lines that serve as visual guides for inspecting curves. Primary grid lines appear at all major unit sections. Secondary grid lines appear at specified intervals between the primary grid lines. In this section, you’ll turn off the visibility of the grid lines in one plot. You’ll do this by selecting the plot and then editing its properties in the Property Editor.To turn off primary lines:1Click the border of the plot in the upper right corner.Notice that the viewport border turns red to indicate that you’ve selected it. Inaddition, the treeview highlights the plot. You are now ready to edit the properties of the selected plot.2In the property editor, select Grid.3Clear the selection of Visible.4In the property editor, select the right arrow key to display more tabs.5Select 2nd Grid.6Clear the selection of Visible.Changing Color and Line Style of All CurvesNow you’ll use the treeview to learn how to modify a group of common objects all at once. In this example, you’ll change the line styles of all the curves in the plots on page p3_plots.To change all curves:1To expand the treeview so it displays all plots on the page p3_plots, in the treeview, click the plus sign (+) in front of the page p3_plots.2Now click the plus sign (+) in front of each plot on the page p3_plots to see all the objects in the plots.3In the treeview, hold down the Ctrl key, and select each curve on page p3_plots.4In the property editor, from the Line Style box, select Dash.All the curves change to dashed lines.To reset the filter to show all objects:■Right-click the background of the treeview, point to Type Filter, and then select All.Creating New PlotsYou can also create your own plots as shown in the next steps.Creating a PageBefore you can create a plot, you need to create a page for it.To create a page:■On the Main toolbar, select the New Page tool.Because you are in plotting mode, ADAMS/PostProcessor displays plots onwhich to add data. If you were in animation mode, ADAMS/PostProcessorwould display empty viewports for loading animations.To set the layout of the page so it contains two viewports:■In the Main toolbar, right-click the Page Layout tool stack, and then select .Working with ADAMS/PostProcessor15Adding Data to the PlotNow that you have a new page, you can display some curves on it. In plot mode, the dashboard contains the numeric results of loaded simulation results. It displays the objects, measures, requests, and result sets from ADAMS simulations and any results from clearance studies. The results that you have available depend on the output that you requested from your MSC.ADAMS product. For information on the different results you can generate, see your MSC.ADAMS product online help.In this tutorial, you’ll use requests, which provide standard displacement, velocity, acceleration, or force information that will help you investigate the results of your simulation. Requests also let you define other quantities (such as pressure, work, energy, momentum, and more) that you want generated during a simulation.To add a curve to the plot, select the following from the dashboard:1In the dashboard, in the Request box, select REQ1080 TOE CASTER CAMBER (FRONT).2In the Component box, select X, Y, and Z.3Select Add Curves.4Now add more curves by selecting different data from the dashboard and selecting Add Curves.Surfing Through DataIn the previous section, for each request you selected, ADAMS/PostProcessor added new curves to your plot. You can also plot your data without accumulating curves on your plot. This is called surfing. It is convenient for quickly looking at different data.To quickly add data without creating new curves:1Select the plot on the right.2In the dashboard, select Surf.3Select the data that you’d like to view, as explained earlier.You’ll notice that each time you select data, ADAMS/PostProcessor replaces the existing curves with new curves.Modifying a CurveNot only can you view data in ADAMS/PostProcessor, but you can also change and enhance it. In this tutorial, you’ll change the mathematical expression that creates a curve. To change a curve:1Click a curve on the plot on the left.2At the top of the dashboard, select Math.The dashboard displays the mathematical expressions used to calculate the curve. 3In the Y Expression box, change the mathematical expression, and then select Apply.You can change it in different ways. For example, enter a negative sign(-) in front of the expression to invert the values or multiply the expression by 3.Working with ADAMS/PostProcessor17Viewing Plots and Animations SimultaneouslyYou can place plots and animations together on the same page, and you can also run the animation and see ADAMS/PostProcessor track the corresponding data on the plot as the animation plays.To view plots and animations together:1In the treeview, select the page p4_combined.ADAMS/PostProcessor displays a page containing both animations and plots.2At the top of the dashboard, select the Play tool.ADAMS/PostProcessor plays the animation and displays a line on the plot at the same data point that the animation is displaying.The Next StepYou completed a few of the most common operations in ADAMS/PostProcessor for working with simulation results. Now use the ADAMS/PostProcessor online help as a reference to the many features of ADAMS/PostProcessor.。
ADAMS软件基本操作

2)输入对话框中的文本输入栏,可以利用弹出式菜单 进行对象或文件名的选择、浏览、复制、修改,输入值的 复制、修改和参数化处理等操作。
3)后处理图标中的各种对象,例如:曲线、标题、坐 标、符号标记等。
自ADAMS9.0版本开始.ADAMS/View采用了Windows风格的操 作界面和各种操作习惯,使得ADAMS/View9.0版以后的程序 操作界面非常友好。
ADAMS/Solver程序模块
ADAMS/So1ver是求解机械系统运动学和动力学 问题的程序.
完成样机分析的准备工作以后,ADAMS/View程序可 以自动地调用ADAMS/So1ver模块,求解样机模型的静力 学、运动学或动力学问题,完成仿真分析以后再自动地 返回ADAMS/View操作界面。因此,—般用户可以将ADAMS /Solver的操作视为一个“黑匣子”,只需熟悉ADAMS/V iew的操作,即可完成建模和整个分析过程。
values表示命令参数,对应于命令输入对话框中 的各种输入或选择值。
命令语言示例
定义一个旋转 副。其中:“!” 以后的内容为注 释内容。在命令 行的结尾添加一 个“&”符号, 表示该行没有结 束,输入的下一 行仍然是本行的 内容。
关于使用命令窗口输入命令的详细操作方法可以参见用户手册。
使用命令浏览器
5.2 ADAMS/View命令的基本操作
5.2.1主工具箱 5.2.2命令菜单 5.2.3弹出式菜单 5.2.4对话框 5.2.5鼠标的应用 5.2.6使用命令窗口和命令浏览器
5.2.1主工具箱
位置I,J 说明
ADAMS软件操作基础精讲

3.7 定义操作环境
定义地面坐标系
默认:笛卡儿坐标系作为地面坐标系, 313旋转系列
单位设置
单 位 系 统 长 度 质 量 力 时 间 角 度 频 率
1 MMKS 毫 米 公 斤 牛 顿 秒 度 弧 度 /秒
2 MKS
米 公 斤 牛 顿 秒 度 弧 度 /秒
3 CGS 厘 米 克 达 因 秒 度 弧 度 /秒
设置工作栅格、图标对话框
显示 设定
选择显 示对象
设置栅 格方向
设置栅格 类型、尺 寸、间隔
设置栅 格位置
设置不 同类型 对象的 图标
设置图 标尺寸
显示方式设置
显示视图辅助信息: View Accessories, 坐标窗口操作
设置屏幕和打印字体 Settings --- Fonts 保存和重新设置 Save/Restore Settings
3.1 ADAMS软件包
ADAMS/View(基本环境)* ADAMS/Solver (求解器)* ADAMS/PostProcessor(后处理)*
ADAMS/Car(轿车模块)、 ADAMS/Rail(机车模块)、 ADAMS/Driver(驾驶员模块)、 ADAMS/Tire(轮胎模 块)、ADAMS/Linear (线性模块)、ADAMS/Flex (柔性模块)、ADAMS/Controls(控制模块)、 ADAMS/FEA(有限元模块)、ADAMS/Hydraulics(液压 模块)、ADAMS/Exchange(接口模块)、 Mechanism/Pro (与Pro/Engineer 的接口模块)、 ADAMS/Animation(高速动画模块)
4 IPS 英 寸 斯 磅 力 秒 度 弧 度 /秒
3-第三章 ADAMS软件操作

3个最基本的核心的模块是: ADAMS/View(基本环境) ADAMS/Slover(求解器) ADAMS/PostProcessor(后处理)
附加专业程序模块:
ADAMS/Car ADAMS/Rail ADAMS/Drive ADAMS/Tire ADAMS/Linear ADAMS/Flex ADAMS/Controls ADAMS/FEA ADAMS/Hydraulics ADAMS/Exchange Mechanism/Pro ADAMS/Animation
方向坐标类型
采用3个方向角来确定坐标系的旋转。
space—fixed: 定位于空间旋转,旋转过程 中坐标轴固定不动; Body—fixed: 定位于机构旋转,坐标轴与构 件一同旋转;
坐标轴旋转 ( Euler Angles)
•以 Euler角 系統定义物件的旋转方式,同時区分为Body-fixed, Space-fixed •ADAMS/View內定值为Body[3,1,3] 1 -- X axis 2 -- Y axis 3 -- Z axis
设置工作栅格
工作栅格可以…
设定工作平面以建立物件 自动捕捉栅格点以便绘制移动, 改变尺寸, 改变几何外形 两种类型:矩形或极坐标。 四种显示方式: Dots:显示栅格交点 Axes:显示栅格轴线 Lines:显示栅格线 Triad:设置坐标图标
启动方法: 单击Setting→Working Grid, 或主工具箱Move工具箱中 ,可以显示工作栅格设置对话框。
ADAMS/PostProcessor
可以完成仿真分析的后处理。 1. 它可以回放仿真结果; 2. 绘制各种分析曲线; 3. 对仿真分析曲线进行一些数学和统计计算; 4.可以输入实验数据绘制试验曲线,同仿真结 果进行比较; 5.可以进行分析结果曲线图的各种编辑。
Matlab与adams联合仿真仿真结果动画的保存与后处理

Matlab与adams联合仿真实例本实例以matlab为外部控制程序,使用PID算法控制偏心杆的摆动,使偏心杆平衡到指定位置。
1.在adams/view中建立偏心杆模型图1 偏心杆模型1)新建模型如图所示,将Units设置为MMKS。
设置自己的Working Directory,这里设置为C:\adams\exercise。
点击OK按钮。
图2 新建模型对话框2)创建连杆设置连杆参数为Length=400,Width=20,Depth=20,创建如图所示的连杆。
图3 创建连杆3)创建转动幅在连杆质心MARKER点处创建转动幅,旋转副的参数设置为1Location和Normal To grid将连杆与大地相连。
图4 创建转动幅4)创建球体球体选项设置为Add to part,半径设置为20,单击连杆右侧Marker点,将球体添加到连杆上图5 创建球体5)创建单分量力矩单击Forces>Create a Torque(Single Component)Applied Forces,设置为Space Fixed,Normal to Grid,将Characteristic设置为Constant,勾选Torque并输入0,单击连杆,再点击连杆左侧的Marker点,在连杆上创建一个单分量力矩。
图6 创建单分量力矩2.模型参数设置1)创建状态变量图7 新建状态变量点击图上所示得按钮,弹出创建状态变量对话框,创建输入状态变量Torque,将Name 修改为.MODEL_1.Torque。
图8 新建输入状态变量Torque再分别创建状态变量Angel和Velocity(后面所设计控制系统为角度PID控制,反馈变量为Angel,Velocity为Angel对时间求导,不需要变量Velocity,这里设置Velocity是为了展示多个变量的创建)。
设置Angel的函数AZ(MARKER_3,MARKER_4)*180/PI,Velocity的函数为WZ(MARKER_3,MARKER_4)*180/PI。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Adams后处理中测量曲线数据的查看与导出
作者:Simwe 来源:MSC发布时间:2012-05-29 【收藏】【打印】复制连接【大中小】我来说两句:(1) 逛逛论坛
你知道可以以列表的方式查看Adams/PostProcessor中显示的曲线图吗?另外,你可以将一个曲线以数据表的形式导出,也就是说,你能够利用曲线绘图来分类或创建用户自
定义的输出文件。
1.Adams/PostProcessor中利用数据列表方式显示测量曲线
左键选择一个曲线绘图边框,注意不要点击在曲线、图例或坐标轴上。
另一个方法是可以在Adams/Postprocessor左侧窗口的模型树中选择对应的曲线绘图,在这个过程中可能需要点击一个page前的+号以将page中的内容扩展开显示对应的曲线绘图。
当选择了一个曲线绘图后,注意在窗口左下角的属性编辑窗口中的Table复选框。
选择Table复选框后对应的属性编辑窗口将变为观察图表显示的控制窗口。
在视窗中原来的曲线绘图变为了HTML格式的图表数据。
下图例子中显示了单摆的X向和Y向位移。
2.Adams/PostProcessor中曲线数据导出方式
在Adams/PostProcessor中,导出数据有三种方式:Numeric Data,Spreadsheet 和Table。
Numeric Data和Spreadsheet方式导出数据会导出整个结果集中包含的数据,Table方式导出数据只会导出在你所选择的曲线视图中显示的曲线数据。
例如,如果整个仿真时间为2秒,那么Numeric Data,Spreadsheet方式会导出完整的2秒钟内所有的数据点;那么如果你只想导出1秒钟的数据,那么你可以设定坐标横范围为0至1秒,如下
图所示,然后利用Table方式导出数据。
File->Export->Table弹出对话框,在File Name中指定文件名称,将以后缀名".Tab"输出该文件,Plot域中指定那组数据需要输出;你可以直接输入曲线绘图的名称或通过Pick/Browse/Guess工具来找到对应的曲线绘图。
另外有两种数据格式供选择:spreadsheet和HTML格式。
在spreadsheet格式中,每一列数据是通过Tab字符分隔开,模型的名称及每列的标签都以双引号的字符串形式包含在输出文件中。
大部分spreadsheet格式数据可以直接读取,当你导入这些数据报错时,你可以去编辑或删除标
签行。
我们经常需要将adams中的图像数据或轨迹数据导入到matlab进行分析,关于测量曲线数据和轨迹数据的导出方法如下:
1.测量曲线数据的导出
我常用的方法是在postprocessor中,file-export-numeric data,然后以“*.txt”的形式输入文件名,并在result data中browser出想要的数据,点OK。
这样就将图像的x,y的数据以txt 的形式输出。
当然也可以在输入文件名时不加txt后缀,这样生成的文件没有后缀名,只是二进制数据,可以用excel打开,并保存为.xls的格式。
后面会解释要保存为.txt的格式,而不是保存为excel的格式。
2.轨迹数据的导出
我还没发现怎么在postprocesor中找到轨迹曲线的数据,只有在view界面下导出数据了。
利用create trace spline 生成轨迹曲线后,在轨迹曲线上右击-modify-value后的省略号-write,然后以“*.txt”的形式输入文件名,OK。
当曲线和轨迹数据导出后,就可以将其导入到matlab中进行分析。
在网上找到了很多中方法。
1、其中有一种是将.xls格式的文件导入到matlab中的方法,也是很常用的方法,可是我按
照网上的方法使用后出现了matlab XLS File contains unicode text which is not yet
supported的错误,网上的解释说是因为matlab与wps兼容性不好的缘故,我用的是wps 的表格生成的.xls文件,因此这个方法就不行了。
2、如果直接读取txt文件,发现多处了好多无用的数据,也未找到解决方法。
3、在matlab下,用file-import data,打开.txt文件,并选出自己需要的数据存入某个变量。
这里可以自动去掉文件中的字符,只保留数字。
我感觉这种方法导入数据还是挺快的。
导入后就可以直接对生成的变量进行操作以对数据进行分析了。
•c++编程遇到问题总结
•adams的逆向分析。