python调用ansys fluent_[转载]流固耦合之ansys和fluent实现方法

B.在Fluent中:

1. Menu Paths:

File>Import>ANSYS>Input

File...

2. 选取 yourfilename.cdb

3. 按 OK.

具体步骤如下:

1)从Fluent输出CDB

Fluent -> File -> Export …

-> ANSYS Input。虽然在这个界面上可以输出力、压力和温度。Multifield

solver只支持力和温度。

我试了一下生成的*.cdb文件,用户可能要添加一些信息1.在开始的地方加上”et,1,154″定义单元类型;2.在最后加上”sf,all,fsin,1″定义流固界面;3.把原APDL里的solve命令去掉(变成注释,在前面加”!”)。

2)准备结构模型并存成*.cdb文件

ANSYS -> Preprocessor -> Archive

Model -> Write

在建立结构模型时,要注意给定流固界面”sf,all,fsin,1″。

3)设定multifield solver

在ANSYS -> Preprocessor -> Multifield

Set-up。打开multifield solver

(MFAN,ON)。导入前两步生成的*.cdb(MFIMPORT命令)。设定物理场顺序(MFOR,1,2)。设定外部求解器,Fluent生成的*.cdb来自外部求解器(MFEX,1)。定义界面,界面在流体固体的CDB里面已经设好了,这里只是设定所传递的量(MFSU,1,1,FORC,2)。

Python’s simplicity lets you become productive quickly, but this often means you aren’t using everything it has to offer. With this hands-on guide, you’ll learn how to write effective, idiomatic Python code by leveraging its best—and possibly most neglected—features. Author Luciano Ramalho takes you through Python’s core language features and libraries, and shows you how to make your code shorter, faster, and more readable at the same time. Many experienced programmers try to bend Python to fit patterns they learned from other languages, and never discover Python features outside of their experience. With this book, those Python programmers will thoroughly learn how to become proficient in Python 3. This book covers: Python data model: understand how special methods are the key to the consistent behavior of objects Data structures: take full advantage of built-in types, and understand the text vs bytes duality in the Unicode age Functions as objects: view Python functions as first-class objects, and understand how this affects popular design patterns Object-oriented idioms: build classes by learning about references, mutability, interfaces, operator overloading, and multiple inheritance Control flow: leverage context managers, generators, coroutines, and concurrency with the concurrent.futures and asyncio packages Metaprogramming: understand how properties, attribute descriptors, class decorators, and metaclasses work Table of Contents Part I. Prologue Chapter 1. The Python Data Model Part II. Data structures Chapter 2. An array of sequences Chapter 3. Dictionaries and sets Chapter 4. Text versus bytes Part III. Functions as objects Chapter 5. First-class functions Chapter 6. Design patterns with first-class functions Chapter 7. Function decorators and closures Part IV. Object Oriented Idioms Chapter 8. Object references, mutability and recycling Chapter 9. A Pythonic object Chapter 10. Sequence hacking, hashing and slicing Chapter 11. Interfaces: from protocols to ABCs Chapter 12. Inheritance: for good or for worse Chapter 13. Operator overloading: doing it right Part V. Control flow Chapter 14. Iterables, iterators and generators Chapter 15. Context managers and else blocks Chapter 16. Coroutines Chapter 17. Concurrency with futures Chapter 18. Concurrency with asyncio Part VI. Metaprogramming Chapter 19. Dynamic attributes and properties Chapter 20. Attribute descriptors Chapter 21. Class metaprogramming Appendix A. Support scripts
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值