ADM740_WorkshopsWS2_Templates vs Subsystems_第1頁
ADM740_WorkshopsWS2_Templates vs Subsystems_第2頁
ADM740_WorkshopsWS2_Templates vs Subsystems_第3頁
ADM740_WorkshopsWS2_Templates vs Subsystems_第4頁
ADM740_WorkshopsWS2_Templates vs Subsystems_第5頁
已閱讀5頁,還剩13頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領

文檔簡介

1、WORKSHOP 2 TEMPLATES VERSUS SUBSYSTEMS,Templates Versus Subsystems,Problem statement Understanding the difference between a template and a subsystem in Adams/Car is a pivotal first step toward using the full power of Adams/Car. To illustrate this, consider two people working side by side, both on a

2、steering system. Looking at both computer screens, you see what appears to be the same model. However, one user is working on a template in template-builder mode, while the other is working on a subsystem in standard-interface mode. So, whats the difference? As described before, the difference is wh

3、at you can do with the models. Each part and its topology, or the way that information and parts are connected, is defined in Template Builder using parameters (variables), while the specific values of those parameters are set in Standard Interface. Additionally, analyses can only be performed in St

4、andard Interface, based on a model (specifically, a template) created in Template Builder. A good way to understand this distinction is to create a template file and a subsystem file and compare their contents.,Templates Versus Subsystems,Opening a template file In this workshop, you create an ASCII

5、 template file and compare it to a subsystem file. Template files can exist either as binary or text (ASCII) files. By default, the templates saved in Adams/Car are binary, so to view the contents, you must save this one as text. To choose the template-builder mode in Adams/Car: From the Tools menu,

6、 select Adams/Car Template Builder. Note: You can toggle between Template Builder and Standard Interface by pressing F9.,Templates Versus Subsystems,If Adams/Car Template Builder is not an option under the Tools menu, you must set your user privileges to expert: Exit Adams/Car. Modify your private .

7、acar.cfg file to include: ENVIRONMENT MDI_ACAR_USERMODE expert Tip: For information on where the .acar.cfg file is saved, see Saving Configuration Files, in Section 1.,Start Adams/Car. Set the working directory to acar, just as you did in To Set the Working Directory, in Workshop 1.,Templates Versus

8、 Subsystems,To open the MacPherson suspension template from the shared database: From the File menu, select Open. Right-click the Template Name text box, point to Search, and then select /templates.tbl. Double-click _macpherson.tpl. Select OK.,Templates Versus Subsystems,To change mass of the part i

9、n the template builder: Right-click on the empty workspace of Adams/Car template builder, and then select Front. This would set your model in the front view. Look for the general part name gel_lower_control_arm, Right-click on that part, and then select modify. Set value of mass from default value t

10、o say 10 in Modify General Part dialog box. Click OK. Note: The modification of mass value is to demonstrate the unidirectional flow of information from template file to subsystem file and that will be discussed after taking a look at the subsystem file.,Templates Versus Subsystems,To save the templ

11、ate file as a text file: From the File menu, select Save As. In the New Template Name text box, enter mac_ascii. (Note that this text box is grayed-out because it is not a required text box to perform this function. If you do not enter a name, Adams/Car saves the file with its current name.) Set Fil

12、e Format to Ascii. You need to do this to be able to read the file. Select OK. Adams/Car saves the file in the acar_training database, which you set up earlier.,Templates Versus Subsystems,To open the template file and look at the contents: Open _mac_ascii in a text editor. Depending on the platform

13、 youre working on, _mac_ascii should be located in: Windows: C:/acar/acar_training.cdb/templates.tbl UNIX: /acar/acar_training.cdb/templates.tbl If you did not set acar_training as the default writable database in Workshop 1 - Open and Run an Assembly, use Tools Database Management Database Info to

14、find out which database is the default writable database.,Templates Versus Subsystems,The file has all the information needed to define the model using markers, parts, communicators, forces, and so on. Take a look at the file to see what kind of information is stored. For example, the following is t

15、he beginning of the definition of the left lower control arm (near the top): Look at the value of mass of part lower control arm. Notice the commands to create parts, joints, markers, and so on. It is not important that you understand everything in this file, just that you get a sense of what type o

16、f information is stored here.,Templates Versus Subsystems,Creating a subsystem file Subsystem files can only exist as text (ASCII) files, so you do not need to convert from binary. To create the subsystem file: Select Adams/Car Standard Interface from the Tools menu or press F9 to return to the Stan

17、dard Interface. From the File menu, point to New, and select Subsystem. In the New Subsystem box, enter front_suspension_ascii name in the Subsystem Name field. Select front as minor role. Right-click the Template Name text box, point to Search, and then select . Double-click the directory, template

18、.tbl, and then double-click _mac_ascii.tpl. Select OK. If asked, you may choose to use the template stored in memory.,Templates Versus Subsystems,To save the subsystem file: From the File menu, select Save As. Select OK. To look at contents of the subsystem file: From the Tools menu, select Show Fil

19、e. Right-click the File Name text box, point to Search, and then select . Double-click the directory, subsystems.tbl, and then double-click front_suspension_ascii.sub. Select OK. The Information window displays the contents of front_suspension_ascii.sub.,Templates Versus Subsystems,Take a look at th

20、e file to see what kind of information it stores. The top portion of the file looks very similar to the template file, but the rest is very different, as it resets values of parameters in the template file. Notice that in the SUBSYSTEM_HEADER section, the MacPherson information is referenced for loa

21、ding into your Adams/Car session with the line: TEMPLATE_NAME = /templates.tbl/_macpherson.tpl. Also, notice that the subsystem sets the values for the parameters in the lower control arms: look at the mass value, it just get inherited from template file.,Templates Versus Subsystems,To change mass o

22、f the part in the subsystem file: Right-click on the empty workspace of Adams/Car standard interface, and then select Front. This would set your model in the front view. Look for the general part name gel_lower_control_arm, Right-click on that part, and then select modify. Set value of mass from def

23、ault value to say 20 in Modify General Part dialog box. Click OK. From the File menu, select Save As. Select OK. Note: The modified value of mass gets stored in the subsystem file and wont affect the value stored in the template file. You are going see that next.,Templates Versus Subsystems,Now, loo

24、k at contents of the template file: Open _mac_ascii in a text editor. Depending on the platform youre working on, _mac_ascii should be located in: Windows: C:/acar/acar_training.cdb/templates.tbl UNIX: /acar/acar_training.cdb/templates.tbl Search for the general part name gel_lower_control_arm, and

25、then look at the mass value. Note: Please note that the mass value does not changes in the template file. This demonstrated that flow of the information is unidirectional. That is from Template file (.tpl) Subsystem file (.sub) Assembly file (.asy).,Templates Versus Subsystems,Table 1: Comparison of Templates and Subsystems,Summary Overall, a template defines the structure/topology of a model

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論