摘要: OFtutorial07_customLibraries 用户自定义库 首先在customLibrary文件夹下通过customLibrary.C 和customLibrary.H文件实现用户自定义库。文件夹下有单独的Make文件夹实现生成自定义的库。 代码: scalar computeR(con 阅读全文
posted @ 2021-11-01 19:32 xubonan 阅读(148) 评论(0) 推荐(0)
摘要: OFtutorial06_customClasses 自定义类 首先在customClass.H文件中定义类,以及类中的方法。 代码: #include "fvCFD.H" 作用: 包含OpenFOAM中的基础头文件。这可以让OpenFOAM中的大多数原生类型比如:labels,fvMesh等在这个 阅读全文
posted @ 2021-11-01 19:30 xubonan 阅读(133) 评论(0) 推荐(0)
摘要: OFtutorial05_basicParallelComputing OpenFOAM中的并行计算基础 代码: Pout << "Hello from processor " << Pstream::myProcNo() << "! I am working on " << mesh.C().si 阅读全文
posted @ 2021-10-29 14:39 xubonan 阅读(622) 评论(0) 推荐(1)