@李东岳 感谢李老师的快速回复。
不过我还是不太确定,尝试了以下语句:
label patchID = this->mesh_.boundaryMesh().findPatchID("A_to_B");
fvPatch& patch = this->mesh_.boundaryMesh()[patchID];
编译报错如下:
error: type 'Foam::fvPatch' does not provide a call operator
refCast<const mappedPatchBase>(patch().patch());
该如何解决呢?网上查了半天没有类似的问题。