天洑软件 发表于 2019-11-15 15:48:47

Workbench中调用CAESES控件方法步骤

CAESES软件能够构建丰富的参数化模型,并提供稳定灵活的模型变化;Ansys Workbench平台则能够方便的构建流体及结构自动化分析流程。



为了更加方便的构建基于参数化模型的模型变化及自动化仿真优化流程,我们推出了Workbench中的CAESES控件,利用该控件可以在Workbench中直接调用CAESES,识别CAESES中模型参数,并将CAESES与其他仿真模块(如CFX)连接在一起自动进行数据传递,避免了部分脚本录制的繁琐操作。



版本要求

Caeses: 4.3.0或更高

Ansys: 17.2或更高



http://www.njtf.cn/ueditor/net/upload/2018-08-01/6613114b-a30d-4aec-85a0-5c2bc66e0121.png





一、Workbench设置



1、打开Workbench点击Extensions进入ACT Start Page



2、选择扩展管理(Extension Manager)并点击“+”号来添加扩展功能。



http://www.njtf.cn/ueditor/net/upload/2018-08-01/b1bd2ab6-7330-4a76-89f2-344b44785433.png

http://www.njtf.cn/ueditor/net/upload/2018-08-01/30794f3d-7bd6-46b1-b577-c2828d9d0483.png
http://www.njtf.cn/ueditor/net/upload/2018-08-01/aa97e877-f2d7-45f3-909c-4e66816d5541.png



3、在CAESES安装文件夹..\CAESES\etc\ansys中找到该扩展文件(CAESES_WB_APP.wbex)并点击“打开”,CAESES控件就会出现在扩展管理的界面上。



4、点击CAESES控件的Load as default选项。将CAESES控件设置为默认启动项(这样在下次打开Workbench时就不需要进行重复操作了)。设置成功后图标背景会变成绿色。


http://www.njtf.cn/ueditor/net/upload/2018-08-01/15c8dddc-f263-474b-a156-3c4243c90daf.png



http://www.njtf.cn/ueditor/net/upload/2018-08-01/c3cf49ba-b0d8-4be6-bfda-3fa048c684e8.png图片7.png

http://www.njtf.cn/ueditor/net/upload/2018-08-01/1d3c897f-98d2-4c09-aa1d-9928161583c1.png

5、关闭ACT Start Page后CAESES就会出现在工具栏中。



http://www.njtf.cn/ueditor/net/upload/2018-08-01/4bcd2d24-36d9-402d-9a39-5303d703b1f2.png



http://www.njtf.cn/ueditor/net/upload/2018-08-01/3cbfd172-b052-4bb3-8451-25ceea4fee98.png



6、为了让Workbench能够识别CAESES中模型文件中的颜色信息需要进行如下设置。

选择Tool>Options>Geometry Import,选择模型处理工具为DesignModeler,并设置成图中红框中的内容,并点击“OK”。



http://www.njtf.cn/ueditor/net/upload/2018-08-01/90d0484a-d1d9-402f-9896-89fc418faba5.png



http://www.njtf.cn/ueditor/net/upload/2018-08-01/21263f60-1d62-4588-b591-d274d4865ad1.png



http://www.njtf.cn/ueditor/net/upload/2018-08-01/40949bbd-c922-479e-993f-4cbb503192a1.png

7、在Workbench关闭的状态下,从Ansys的安装目录..\ANSYS Inc\v181\Addins\ACT\bin\Win64中找到名为“TransferTypeDirectPropertyAccessList.xml”的文件并用记事本打开。在文档中图中红框所示区域添加上语句” <TransferType>FEMSetup</TransferType>”,并保存、关闭。



http://www.njtf.cn/ueditor/net/upload/2018-08-01/b78753e0-9c12-4eff-a29c-786648639420.png



http://www.njtf.cn/ueditor/net/upload/2018-08-01/c03bc5f7-2b71-442b-92aa-55d58f8ba870.png



二、CAESES模型准备



1、在CAESES中构建好参数化模型,将需要优化的参数设置成设计变量,并将设计变量放置在根目录(baseline)下。



2、创建一个文件夹,将需要输出的模型放入文件夹中。将该文件Export>File Name设置为“geomtry.sat”,Type设置为exportSat



http://www.njtf.cn/ueditor/net/upload/2018-08-01/94f8653b-535a-47cc-a773-0e47841cb1bd.png


3、为了方便后续数据传递时,能够识别模型中不同的边界,需要将不同边界面设置为不同的颜色,如右图所示。



http://www.njtf.cn/ueditor/net/upload/2018-08-01/b34cbb4e-7605-4f23-81f0-d35472de0efe.png





4、输出CAESES脚本文件FSC。File>Export>FSC(CAESES Script).



http://www.njtf.cn/ueditor/net/upload/2018-08-01/08c8ff35-e76f-41e6-9e4c-9aa516286fa7.jpg



http://www.njtf.cn/ueditor/net/upload/2018-08-01/d9671910-35d2-47cc-8650-2dfd0cd53b23.png



三、Workbench中调用及流程构建



1、在Workbench中添加CAESES控件,选择FSC脚本文件。CAESES Geometry>Select an FSC file...



http://www.njtf.cn/ueditor/net/upload/2018-08-01/2b57d4e0-1a74-4f0b-b8cf-ae7f5ea9595d.png



2、点击Update,Workbench能够自动识别CAESES模型中的设计变量,并向下传递数据。



http://www.njtf.cn/ueditor/net/upload/2018-08-01/c56e0ba6-4402-40a0-9fe2-55909066759b.png
http://www.njtf.cn/ueditor/net/upload/2018-08-01/552578f8-eaa0-432c-80e1-07ae91617777.png


3、Workbench中的Geometry及Mesh模块能够识别出CAESES中定义的各个面的颜色信息,从而方便后续流程的边界定义。



http://www.njtf.cn/ueditor/net/upload/2018-08-01/dc424913-701a-4eff-9e11-c240b5ff6ed1.png



4、接下来,可以继续添加后续流程,如流体仿真或结构仿真等。

http://www.njtf.cn/ueditor/net/upload/2018-08-01/07f8113f-fa08-40ff-abbb-23f59b9d94c5.png
页: [1]
查看完整版本: Workbench中调用CAESES控件方法步骤