国产精品日韩一区二区三区-国产精品日日摸夜夜添夜夜添1-国产精品入口免费视频-国产精品三级-亚洲国产欧美另类-亚洲国产欧美日韩

【優化】Isight專業組件集成之ANSYS Workbench

2016-10-22  by:CAE仿真在線  來源:互聯網

ANSYS Workbench 組件

Ansys組件容許IsightANSYS Workbench軟件交互

關于ANSYS Workbench組件

ANSYS Workbench 組件運行IsightANSYS Workbench軟件進行數據交換,并且可以驅動ANSYS Workbench仿真模擬。ANSYS Workbench組件是一個應用程序組件,創建IsightANSYS Workbench軟件的鏈接。該組件可以讀取一個ANSYS Workbench項目文件并生成一個輸入和輸出參數列表,ANSYS Workbench組件編輯器可以修改輸入參數的值。該組件允許執行各種類型的分析(如流體流動、靜態的結構分析等等),以及與其他解算器結構在一起(Fluent等)。該組件還允許提供定制Python 腳本檢索和更新參數。可以使用Isight流程組件(如DOEOptimization)探索設計空間,并優化模型。

下圖顯示了ANSYS Workbench組件編輯頁面:

1. ANSYS Workbench組件編輯頁面

開始ANSYS Workbench組件編輯器,雙擊ANSYS Workbench組件圖標,當完成ANSYS Workbench組件編輯器配置,點擊OK關閉編輯器

ANSYS Workbench支持的版本

組件支持ANSYS Workbench軟件的12.113.0版本

前提條件

必須滿足前提條件才能運行ANSYS Workbench組件。在使用ANSYS Workbench組件之前,必須執行以下操作:1. 必須在計算機上安裝了ANSYS Workbench12.113.0版本軟件;2. 必須有一個ANSYS Workbench可執行文件的環境變量,Name為:ANSYS_WB_EXE_PATH;值為:ANSYS Workbench執行路徑。例如:D:\ANSYS Inc\v121\Framework\bin\Win32\RunWB2.exe3. 首次使用該組件,運行install.bat文件,文件在<Isight installation directory>\intel_a\reffiles\SMAFIPcomponent\AnsysWorkbench目錄中。

配置ANSYS Workbench組件

接下來詳述如何配置ANSYS Workbench組件執行ANSYS Workbench這里可以選擇被用于Isight模型的輸入和輸出參數,設置設計選項和執行選項,并查看相關組件的信息

選擇ANSYS Workbench ProjectParameters

可以選擇一個ANSYS Workbench項目文件,組件對該文件進行掃描,并顯示可的參數。然后,可以選擇想要在Isight模型中使用的參數

1. 雙擊ANSYS Workbench組件圖標,將彈出ANSYS Workbench Component Editor頁面

2. ANSYS Workbench Component Editor頁面,單擊選擇Parameters標簽。

3. 單擊Browse

4. 導航你想要使用的ANSYS Workbench項目文件(.wbpj格式),并單擊打開。如果你想要使用自定義Python腳本,選擇項目文件之前,Advanced選項卡選擇Use Custom Script

一個ANSYS Workbench項目的存檔文件(.zwp格式)其支持的文件將被創建在之前選擇的項目文件(.wbpj格式)所在目錄中。如果雙擊.zwp格式文件,將創建一個臨時目錄zwpContents,在其中提取.zwp文件內容。選中ANSYS Workbench項目將被啟動

:如果使用的是幾何進口,該幾何進口文件的副本將被添加到子目錄ImportedFilesByAnsys,子目錄將被創建在與項目文件(.wbpj)相同的目錄中。

ANSYS Workbench項目中的參數將被顯示在Available Parameters區域為了保證Isight模型能夠使用這些參數,需要將它們添加到Isight Parameters 區域

5. 如果參數很多,Isight中可以通過下列方式對參數進行分類和篩選。

a) 通過點擊相應的列標題類的參數。

第一次單擊列數據按升序排列,第二次單擊列數據按降序排序,第三單擊列數據恢復初始排列順序,列標題右邊的小箭頭圖標顯示當前排序選項。

b) 通過Mode或者Type模式

c) 篩選中輸入參數名稱,可查看參數的某些信息。

6. 通過下列方式選擇你想要Isight模型中使用的參數。

選項

描述

單擊check box

選擇一個單獨的參數

單擊

選擇所有參數

單擊

清除所有被選參數

7. Isight Parameter區域添加選中的參數

a) 單擊"+",Isight Parameter區域中添加選中的參數;

b) 單擊"-",Isight Parameter區域中移除的參數

8. 單擊OK保存設置,并返回Design Gateway界面

配置DesignExecution選項

可以使用Advanced標簽來設置設計和執行選項

1. 雙擊ANSYS Workbench組件圖標,將彈出ANSYS Workbench Component Editor頁面

2. ANSYS Workbench Component Editor頁面,單擊選擇Advanced標簽。

3.設置Design Options:

選項

描述

Create in model file paremeters

Isight模型(.zmf)保存輸入文件

Use Custom Script

通過組件使用自定義Python腳本定制組件的輸入和輸出,這些Python腳本文件應該放置在工作目錄下,與.wbpj文件同一個目錄中選擇輸入項目文件之前必須選擇該選項。

4.設置Execution Options:

選項

描述

Show ANSYS Workbench during execution

啟動ANSYS Workbench作為前臺進程,可以查看在ANSYS Workbench模型執行期間發生的變換

Time Out

輸入一個值(秒為單位)指定等待執行的時間,超出該時間則確執行失敗,默認300

5. 單擊OK保存設置,并返回Design Gataway

關于使用腳本

組件允許提供定制的Python腳本檢索和更新組件參數。如果你選擇Use Custom Script標簽,則ANSYS Workbench組件執行兩個特定用戶提供Python模塊。這些模塊的名稱必須是userscript_dt.py(設計界面腳本)和userscript_rt.py(運行腳本)。可以使用這些腳本執行ANSYS Workbench組件不支持,但是必須參數類型的操作。

可以定義一個兩個這種模塊,也可以兩個都不定義組件執行完designtime模塊(userscript_dt.py)之后打開ANSYS Workbench項目文件,在runtime模塊(userscript_rt.py)特定功能運行之前和之后,執行更新ANSYS Workbench項目。

Designtime腳本(userscript_dt.py)示例

import os

def runUserScript(projPath):

"""

Before this function is called, the ANSYS Workbench project is already

open and the user should not reopen or close it.

This function gets called after fetching the PIDO parameters.

This function will accept a single parameter containing the path of the

user's work directory where the .wbpj file is located.

This function is required to create two text files, user_input_params.txt

&

user_output_params.txt, in the user's work directory. As the name suggests,

these two files must contain custom input & output parameter name-value

pairs

separated by "::". Each pair should be written on a separate line.

In the following code we are creating two dummy parameters - inputParam1 &

outputParam1.

Note: The decimal point character should be ".", irrespective of the locale.

"""

with open(projPath + os.path.sep + "user_input_params.txt", "w") as

inputFile:

inputFile.write("inputParam1::1.2")

with open(projPath + os.path.sep + "user_output_params.txt", "w") as

outputFile:

outputFile.write("outputParam1::2.3")

Runtime腳本(userscript_rt.py)示例:

import os

def runSetUserValues(projPath, custInputParamsDict):

"""

Before this function is called, the ANSYS Workbench project is already

open and the user should not reopen or close it.

This function accepts two parameters.

1. projPath -> It contains the runtime directory path where the .wbpj

file gets copied.

2. custInputParamsDict -> It is a Python dictionary object, and it

contains the updated custom input param name-value pairs.

273

In this function, the user needs to update the values for the custom

input parameters of the ANSYS Workbench project, located at the provided

projPath to get the updated values of the custom output parameters.

Below is an example of how to get the custom input parameters created

by the user.

"""

if (custInputParamsDict.__len__() > 0):

for k, v in custInputParamsDict.iteritems():

# You should write code here to update value of parameter

# 'k' in ANSYS Workbench model with a new value 'v'

def runUserScript(projPath):

"""

This function gets called after solving the ANSYS Workbench project.

It accepts a single parameter containing the user's runtime directory

path where the .wbpj file gets copied.

From this function, the user should fetch the custom output parameters

from the ANSYS Workbench project, and they should be written in a text

file (user_output_params.txt) with name and value separated by "::".

Each parameter is written on a separate line, as shown in the following

code.

Note: The decimal point character should be ".", irrespective of the

locale.

"""

with open(projPath + os.path.sep + "user_output_params.txt", "w") as

outputFile:

outputFile.write("outputParam1::2.4")

查看關于ANSYS Workbench組件的信息

1. 雙擊ANSYS Workbench組件圖標,將彈出ANSYS Workbench Component Editor頁面

2. ANSYS Workbench Component Editor頁面,單擊選擇About標簽。About標簽提供關于組件信息,如版本和描述等。

3. 單擊More查看診斷信息。


開放分享:優質有限元技術文章,助你自學成才

相關標簽搜索:【優化】Isight專業組件集成之ANSYS Workbench Ansys有限元培訓 Ansys workbench培訓 ansys視頻教程 ansys workbench教程 ansys APDL經典教程 ansys資料下載 ansys技術咨詢 ansys基礎知識 ansys代做 Fluent、CFX流體分析 HFSS電磁分析 Abaqus培訓 

編輯
在線報名:
  • 客服在線請直接聯系我們的客服,您也可以通過下面的方式進行在線報名,我們會及時給您回復電話,謝謝!
驗證碼

全國服務熱線

1358-032-9919

廣州公司:
廣州市環市中路306號金鷹大廈3800
電話:13580329919
          135-8032-9919
培訓QQ咨詢:點擊咨詢 點擊咨詢
項目QQ咨詢:點擊咨詢
email:[email protected]




主站蜘蛛池模板: 青娱乐手机在线 | 精品无人区一区二区三 | 69视频免费观看l | 久在线精品视频 | 久久亚洲精品视频 | 亚洲国产品综合人成综合网站 | 日本精品高清一区二区不卡 | 免费视频 久久久 | 欧美猛性 | 99视频网| 国产网站在线免费观看 | 久久精品一区二区三区不卡 | 国产在线高清一级毛片 | 九九热在线视频观看这里只有精品 | 免费jjzz在线播放国产 | 国产精品久久久久毛片真精品 | 日日操夜夜添 | 黄色片视频在线观看 | 永久免费看毛片 | 日本免费一级视频 | 毛片一级做a爰片性色 | 青娱乐视觉盛宴在线视频 | 国产高清不卡一区二区 | av在线影院 | 人人看人人爽 | 中文日本在线 | 久热草视频 | 欧美高清在线精品一区二区不卡 | 国产老肥熟一区二区三区 | 久久久久免费精品视频 | 青青国产在线播放 | 日本高清不卡网站免费 | 久久国产热这里只有精品8 久久国产午夜精品理论片34页 | 欧美最早期老录像片 | 一级毛片毛片毛毛片毛片 | 天天操天天摸天天曰天天干天天弄天天干 | 99re在线播放视频 | 亚洲高清视频网站 | www.youjizz.com中文版| 国产精品尹人在线观看免费 | 欧美shemale人妖老妇 |