24小时热门版块排行榜    

查看: 3018  |  回复: 4

zhaomanaman

铁虫 (初入文坛)

[交流] 基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI 已有1人参与

本文介绍一个基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI。SwiftComp是AnalySwift公司的软件,可以用于复合材料仿真。
本文运用UIDL和APDL,在ANSYS里为SwiftComp创建了用户界面,如下图所示:(新创建的菜单由红色方框框出)(没有显示的图片通过附件上传了)

新创新的菜单有:Common SGs, Homogenization, Dehomogenization
它们在Main Menu里的显示由UIDL控制,对应的UIDL文件如下图所示:

新创建的功能有:1D SG: Fast Generate, Advanced Generate, Input File. 2D SG: Beam Section, Square Pack, Hexagonal Pack. 3D SG: Square Pack, Spherical Inclusion, Honeycomb. Homogenization: Beam Model, Plate/Shell Model, Solid Model. Dehomogenization: Beam Model, Plate/Shell Model, Solid Model. 它们功能的实现由APDL控制,对应的APDL文件如下图所示:

ANSYS-SwiftComp GUI可以用于多尺度结构仿真,对复合材料仿真特别合适。
这个二次开发所有的文件和说明,均可以在cdmHUB上免费下载(需要注册):https://cdmhub.org/resources/1136
ANSYS-SwiftComp GUI的介绍和实例可以在我的领英上查看:https://www.linkedin.com/pulse/a ... deling-banghua-zhao

下面通过一个实例介绍ANSYS-SwiftComp GUI:
Example Problem
ANSYS-SwiftComp GUI in principle can be used for multiscale constitutive modeling of any structures. We are using a simple example to demonstrate some of its features. As shown in Figure 2, an artificial, unidirectional fiber reinforced composite is made of graphite fiber and epoxy matrix. The fiber can be assumed to be transversely isotropic with E1 = 276 GPa, E2 = E3 = 19.5 GPa, G12 = G13 = 70 GPa, ν12 = ν13 = 0.28, ν23 = 0.70. The epoxy matrix can be assumed to be isotropic with E = 4.76 GPa and ν = 0.37. A laminate is made of a 0-degree ply on the bottom and a 90-degree ply on the top. Assuming the bottom layer contains 10 fibers and the top layer contains 50 fibers. The microstructure can be assumed as square packing with fiber volume fraction equal to 60%. Note the lines between unit cells in Figure 2 are artificial and they are used to show the unit cell. The length of the laminate is 25 mm, and the width is 5 mm, and the thickness of each layer is 0.5 mm. It is clamped at one end and free at the other end. It is subject to 100 Pa pressure on the top surface.

Figure 2 Example problem

ANSYS-SwiftComp GUI is used to solve this problem. There are two ways to attack this problem by MSG and its companion code SwiftComp™: Classical Plate Model and Classical Beam Model. For each way, the detail steps of modeling and analysis are given.

Classical Plate Model:

Using MSG, the original problem is decoupled, as shown in Figure 3, into a constructive modeling over a 3D SG (left) and a structural analysis of a plate (right).

Figure 3 3D SG and structural analysis for classical plate model

The detailed steps are given in the following:

First, create the 3D SG.

Then, use ANSYS-SwiftComp GUI to performed homogenization: Solution → Homogenization → Plate/Shell Model. Use default parameter. A screenshot is shown in Figure 4.

Figure 4 Homogenization for Plate/Shell Model

Next, create plate model and read result from homogenization to perform the plate analysis

Next, use ANSYS-SwiftComp GUI to performed dehomogenization: Solution → Dehomogenization → Plate/Shell Model. Input global response from the previous step. A screenshot is shown in Figure 5.

Figure 5 Dehomogenization for Plate/Shell Model

The contour plot for the nodal solution of Von Mises stress result is shown in Figure 6.

Figure 6 Contour Plot of Nodal Von Mises Stress

Classical Beam Model:

Using MSG, the original problem is decoupled, as shown in Figure 7, into a constructive modeling over the 3D SG (left) and a structural analysis of a beam (right).

Figure 7 3D SG and structural analysis for classical beam model

The detailed steps are given in the following:

First, create the 3D SG.

Then, use ANSYS-SwiftComp GUI to performed homogenization: Solution → Homogenization → Beam Model. Use default parameter. A screenshot is shown in Figure 8.

Figure 8 Homogenization for Beam Model

Next, create beam model and read the result from homogenization to perform global beam analysis.

Next, use ANSYS-SwiftComp GUI to performed dehomogenization: Solution → Dehomogenization → Beam Model. Input global response from the previous step. A screenshot is shown in Figure 9.

Figure 9 Dehomogenization for Beam Model

The contour plot for the nodal solution of Von Mises stress result is shown in Figure 10.

Figure 10 Contour Plot of Nodal Von Mises Stress

Results and Discussion

The comparisons of stress sigma11, sigma22 and sigma33 (along the path (12.75, 0.25, x3) in DNS) are shown from Figure 11 to Figure 13.

As we can see, both MSG plate and MSG beam agree very well with DNS.

Note, the current model for DNS has around 8 million DOFs, which needs 1 day for calculation with 16 CPUs. However, both MSG plate and MSG beam only take less than a minute for computation.

Figure 11 Comparison of sigma11 along path (12.75, 0.25, x3)

Figure 12 Comparison of sigma22 along path (12.75, 0.25, x3)

Figure 13 Comparison of sigma33 along path (12.75, 0.25, x3)



如果大家觉得这个二次开发有帮助,请给我的领英文章点个赞吧:https://www.linkedin.com/pulse/a ... deling-banghua-zhao
大家有什么问题,欢迎和我讨论,我会及时予以回答,问题也可以提在这里:https://cdmhub.org/groups/yugroup/forum
基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI
Figure 1.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-1
Figure 2.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-2
Figure 3.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-3
Figure 4.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-4
Figure 5.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-5
Figure 6.PNG


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-6
Figure 7.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-7
Figure 8.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-8
Figure 9.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-9
Figure 10.PNG


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-10
Figure 11.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-11
Figure 12.png


基于UIDL和APDL的ANSYS二次开发实例:ANSYS-SwiftComp GUI-12
Figure 13.png
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

何不归居幽南

新虫 (初入文坛)

2楼2017-10-24 16:48:29
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

何不归居幽南

新虫 (初入文坛)

★
小木虫: 金币+0.5, 给个红包,谢谢回帖
请问,您对复合材料刚度退化的二次开发有做研究吗?

发自小木虫Android客户端
3楼2017-10-24 16:49:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhaomanaman

铁虫 (初入文坛)

引用回帖:
2楼: Originally posted by 何不归居幽南 at 2017-10-24 16:48:29
顶一个

谢谢!抱歉现在才看到你的回复。
4楼2019-04-06 22:04:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhaomanaman

铁虫 (初入文坛)

引用回帖:
3楼: Originally posted by 何不归居幽南 at 2017-10-24 16:49:44
请问,您对复合材料刚度退化的二次开发有做研究吗?

我们目前正在做这方面的研究,以后可能会加入刚度退化的功能,但我不是很熟悉。
5楼2019-04-06 22:06:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zhaomanaman 的主题更新
普通表情 龙 兔 虎 猫 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +4 YpGmINmR5fp3 2026-11-21 5/250 2026-11-22 17:42 by 4xQThdVkmqn8
[考研] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +5 K2uSGhxsSAvH 2026-11-21 5/250 2026-11-22 17:20 by 4xQThdVkmqn8
[论文投稿] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +5 K2uSGhxsSAvH 2026-11-21 7/350 2026-11-22 17:10 by 4xQThdVkmqn8
[公派出国] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +7 YLsF7OSIoYU4 2026-11-21 7/350 2026-11-22 16:48 by 4xQThdVkmqn8
[基金申请] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +4 Xoz0hXWi9tT1 2026-11-21 5/250 2026-11-22 16:25 by 4xQThdVkmqn8
[考研] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 Xoz0hXWi9tT1 2026-11-20 5/250 2026-11-22 16:03 by 4xQThdVkmqn8
[硕博家园] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +4 Xoz0hXWi9tT1 2026-11-20 5/250 2026-11-22 15:53 by 4xQThdVkmqn8
[公派出国] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 Gt0XhENGW3Q3 2026-11-21 4/200 2026-11-22 11:27 by HAlUgI97lcPc
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 Gt0XhENGW3Q3 2026-11-21 4/200 2026-11-22 11:16 by HAlUgI97lcPc
[找工作] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +4 YpGmINmR5fp3 2026-11-21 5/250 2026-11-22 11:06 by HAlUgI97lcPc
[基金申请] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 YpGmINmR5fp3 2026-11-21 5/250 2026-11-22 11:05 by HAlUgI97lcPc
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 YpGmINmR5fp3 2026-11-21 4/200 2026-11-22 10:54 by HAlUgI97lcPc
[论文投稿] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 YpGmINmR5fp3 2026-11-21 3/150 2026-11-22 10:33 by HAlUgI97lcPc
[考研] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 K2uSGhxsSAvH 2026-11-21 5/250 2026-11-22 10:11 by HAlUgI97lcPc
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 YLsF7OSIoYU4 2026-11-21 4/200 2026-11-22 09:49 by HAlUgI97lcPc
[硕博家园] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +5 Xoz0hXWi9tT1 2026-11-21 5/250 2026-11-22 09:27 by HAlUgI97lcPc
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 Xoz0hXWi9tT1 2026-11-20 6/300 2026-11-22 03:13 by mNjrFMLoQVIW
[材料综合] 憎水剂,表面活性剂 20+3 tan19990622 2026-11-19 3/150 2026-11-21 18:24 by tfang
[基金申请] 注意啦!用基金购买打印纸、硒鼓、优盘、移动硬盘、个人计算机属于违规了 +3 iaeyuan 2026-11-17 4/200 2026-11-20 09:36 by iaeyuan
[论文投稿] IVD领域内综述投稿推荐 100+3 小小筑梦 2026-11-16 5/250 2026-11-19 17:03 by hansi2025
信息提示
请填处理意见