Adams软件后置处理
- 格式:docx
- 大小:28.64 KB
- 文档页数:3
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.。
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。
ADAMS/PostProcessor绘制仿真结果的曲线图将仿真结果用曲线图的形式表达出来,能更深刻地了解模型的特性.ADAMS/PostProcessor能够绘制仿真自动生成结果的曲线图,包括间隙检查等,还可将结果以用户定义的量度或需求绘制出来,甚至可以将输入进来的测试数据绘制成曲线。
绘制出的曲线由数据点组成,每个数据点代表在仿真中每个输出步长上创建的输出点的数据。
在创建了曲线之后,可以在曲线上进行后处理操作,比如通过信号处理进行数据过滤,以及数学运算等。
也可以手动改变数值或者写表达式来定义曲线上的数值.7。
4。
1 由仿真结果绘制曲线图的类型ADAMS提供了由几种不同类型仿真结果绘制曲线图的功能.对象(Object)—模型中物体的特性,如某个构件的质心位置等。
如果要察看物体的特性曲线图,必须先运行ADAMS/View后再进入ADAMS/PostProcessor,或者导入一个命令文件(。
cmd)。
量度(Measure)—模型中可计量对象的特性,如施加在弹簧阻尼器上的力或者物体之间的相互作用。
也可以直接在ADAMS产品中创建量度,或者导入测试数据作为量度.要察看量度的话,需要先运行ADAMS/View后运行ADAMS/PostProcessor,或者导入一个模型和结果文件(。
res)。
结果(Result)—ADAMS在仿真过程中计算出的一套基本状态变量。
ADAMS在每个仿真输出步长上输出数据.一个结果的构成通常是以时间为横坐标的特定量(比如,构件的x方向位移或者铰链上y方向的力矩)。
请求(Request)—要求ADAMS/Solver输出的数据。
可以得到要考察的位移、速度、加速度、或者力的信息。
系统模态—察看线性化仿真得到的离散特征值.间隙分析-察看动画中的物体之间的最小距离。
7.4.2曲线图的建立在绘制曲线图模式下,用控制面板选择需要绘制的仿真结果.在选择了仿真结果以绘制曲线后,可以安排结果曲线的布局,包括增加必要的轴线、确定量度单位的标签、曲线的标题、描叙曲线数据的标注等等。
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的逆向分析。