Cyberk's Blog

需想象西西弗斯是幸福的

OpenFOAM Hello World 程序笔记

过去的人真笨,过去的人真难。

背景

这里写正文。

代码

#include "fvCFD.H"

int main(int argc, char *argv[])
{

    #include "setRootCase.H"

	// OpenFOAM screen output is very similar to rudimentary C++ with its std::cout, std::nl and std::endl
	// being replaced with Foam::Info, Foam::nl, and Foam::endl. 
    Info << "Hello World, I'm an OpenFOAM program!" << nl << endl;

    Info<< "End\n" << endl;

    return 0;
}

结论

这里写总结。