摘要: 组成 pipeCalc.H 源码 头文件 #ifndef pipeCalc_H #define pipeCalc_H #include "volFieldsFwd.H" #include "Switch.H" #include "fvc.H" #include "fvMeshFunctionObje 阅读全文
posted @ 2024-08-20 21:05 ouqiyo 阅读(5) 评论(0) 推荐(0)
摘要: 组成 OFtutorial10.C 源码 头文件 #include "fvCFD.H" 主函数 int main(int argc, char *argv[]) { 头文件 // Set up the case, parse command line options and create the g 阅读全文
posted @ 2024-08-20 21:05 ouqiyo 阅读(27) 评论(0) 推荐(0)
摘要: 组成 prescribedPipeInletFvPatchVectorField.H 头文件 #ifndef prescribedPipeInletFvPatchVectorField_H #define prescribedPipeInletFvPatchVectorField_H #includ 阅读全文
posted @ 2024-08-14 19:29 ouqiyo 阅读(21) 评论(0) 推荐(0)
摘要: 关于编译库和编译类的:编译是将函数文件编译成动态链接,另一个求解器/应用程序/类可以调用该链接后再编译,若编译成动态链接后在对文件直接修改将不会影响链接,需要重新编译。因此,编译类和编译库的区别就在编译库之后可以直接使用库链接 组成 如图 customLibrary 组成 customLibrary 阅读全文
posted @ 2024-08-13 16:27 ouqiyo 阅读(18) 评论(0) 推荐(0)
摘要: 组成 如图 customClass.H #include "fvCFD.H" class customClass { private: label myInt_; public: customClass(); ~customClass(); // Access operators - allow t 阅读全文
posted @ 2024-08-13 10:44 ouqiyo 阅读(23) 评论(0) 推荐(0)
摘要: 相较第四章增加了并行运算,多了createFields.H和system/decomposeParDict两个文件 createFields.H 用于定义场操作相关的内容,包括读取场数据 decomposeParDict 用于定义并行计算的网格和计算域分割相关的参数 OFtutorial5.C 源码 阅读全文
posted @ 2024-08-12 16:06 ouqiyo 阅读(18) 评论(0) 推荐(0)
摘要: OFtutorial4.C 源码 #include "fvCFD.H" // This is a function declaration; this method will calculate some scalar value // given the current time, locatio 阅读全文
posted @ 2024-08-12 13:59 ouqiyo 阅读(12) 评论(0) 推荐(0)
摘要: OFtutorial3.C #include "fvCFD.H" int main(int argc, char *argv[]) { #include "setRootCase.H" // These two create the time system (instance called runT 阅读全文
posted @ 2024-08-12 11:15 ouqiyo 阅读(10) 评论(0) 推荐(0)
摘要: OFtutorial2.C argList类 如图 包含很多函数,常用的addNote(输出字符串), noParallel(去掉基类中的并行选项), addBoolOption, addOption(增加选项) 源码 #include "fvCFD.H" #argc即argument count的 阅读全文
posted @ 2024-08-09 16:57 ouqiyo 阅读(21) 评论(0) 推荐(0)
摘要: OFtutorial1.C 源码解析 #include "fvCFD.H" int main(int argc, char *argv[]) { // Initialise OF case #include "setRootCase.H" // These two create the time s 阅读全文
posted @ 2024-08-09 13:59 ouqiyo 阅读(7) 评论(0) 推荐(0)