求解固态热传导问题,第三类边界条件如何设置?
-
请教大家一个问题,我想求解固态热传导问题,其中一个边界我想采用第三类边界条件,如
-lambda patial T/patial n = h (T-t_f)
此外,我想在程序代码中输出边界上某个点的温度,保存到文件中,如何设置这个文件的路径呢?
while (simple.loop()) { Info<< "Time = " << runTime.timeName() << nl << endl; while (simple.correctNonOrthogonal()) { solve ( rho*c*fvm::ddt(T) - lambda*fvm::laplacian(T) ); } #include "write.H" Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; }
谢谢大家!