|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
{
fvScalarMatrix pEqn
(
fvm::laplacian(rUA, p) == fvc::div(phi)
);
pEqn.setReference(pRefCell, pRefValue);
pEqn.solve();
if (nonOrth == nNonOrthCorr)
{
phi -= pEqn.flux();
}
}
看不懂这段代码,我怎么觉得这个for循环没有用呢, fvScalarMatrix pEqn( fvm::laplacian(rUA, p) == fvc::div(phi) );这语句跟p有什么关系?fvm::laplacian(rUA, p)返回的不就是个矩阵类嘛?矩阵的系数难道还和p的当前值有关?
我觉得每次执行pEqn.solve();的结果都是一样的,不解。请指教 |
|