Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
刚开始学习Openfoam,基本使用操作已经熟悉,目前在学习各种求解器的代码。openfoam中的方程都使用类来离散的,如laplacianFoam求解器
solve ( fvm::ddt(T) - fvm::laplacian(DT, T) );
我知道ddt()是对时间求导,laplacian()是laplace算子,但这些代码具体实现位于Openfoam中的什么文件中啊?Openfoam又是如何将偏微分方程转化为代数方程的?在哪些文件可以看到具体代码?
这个问题很不好解释,如果初学,我建议你往后放一放,
针对你的问题,see
https://dev.tencent.com/u/dyfluid/p/OpenFOAM_oldVersions/git/tree/master/OpenFOAM-2.3.x/src/finiteVolume/finiteVolume/ddtSchemes/ddtScheme
https://dev.tencent.com/u/dyfluid/p/OpenFOAM_oldVersions/git/tree/master/OpenFOAM-2.3.x/src/finiteVolume/finiteVolume/laplacianSchemes
我觉得你现在看这个回迷失自己
@东岳 谢谢李老师,你说的对,先不关心这些。