11 2021 档案
摘要:OFtutorial02_commandLineArgumentsAndOptions 代码: argList::addNote ( "Demonstrates how to handle command line options.\n" "\n" "Input arguments:\n" " \n
阅读全文
摘要:OFtutorial1_input_output 教程1:输入与输出 代码: #include "createTime.H" #include "createMesh.H" 作用: 创建时间系统(实例化为runTime)和fvMesh(实例化为mesh) 代码: dictionary customD
阅读全文
摘要:OFtutorial08_customBC 用户自定义边界条件 注: 本文是对Github上openfoam开发教程的中文解析。 总的来说这个系列的教程,边界条件这块做的不是很易懂,我回头会结合其他资料自己写一个易懂的 类:Foam::prescribedPipeInletFvPatchVector
阅读全文
摘要:OFtutorial0_hello word 注: 本文是对Github上openfoam开发教程的中文解析。 代码: #include "setRootCase.H" 作用: 检查基本的文件夹结构,确定有control dict等文件存在 处理parsing command line argume
阅读全文
摘要:OFtutorial07_customLibraries 用户自定义库 首先在customLibrary文件夹下通过customLibrary.C 和customLibrary.H文件实现用户自定义库。文件夹下有单独的Make文件夹实现生成自定义的库。 代码: scalar computeR(con
阅读全文
摘要:OFtutorial06_customClasses 自定义类 首先在customClass.H文件中定义类,以及类中的方法。 代码: #include "fvCFD.H" 作用: 包含OpenFOAM中的基础头文件。这可以让OpenFOAM中的大多数原生类型比如:labels,fvMesh等在这个
阅读全文
浙公网安备 33010602011771号