各位大佬,请问大家有人用过openfoam里的mapFields命令吗?我是打算将均匀网格(dx=23)的结果映射到相同计算域和边界条件的局部加密网格(dx=23-11.5-5.75)。但是我映射出的结果总是错误的,比如速度U出现大量的(0 0 0)等。同时运行最后的方法选择direct才能出结果(结果错误),选择mapNearest则会出现报错floating point exception。请问该怎么做才能正确将均匀网格映射到局部加密网格了?
我使用的命令是
mapFields <source root> <source case> <target root> <target -mapMethod direct
mapFields字典如下:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object mapFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
patchMap ();
cuttingPatches ();