interfaceHeight 运行报错
-
我在尝试提取波高时(v2306自带的造波)尝试使用interfaceHeight 来提取波面变化情况:
interfaceHeight1 { // Mandatory entries (unmodifiable) type interfaceHeight; libs (fieldFunctionObjects); // Mandatory entries (runtime modifiable) locations ((0 0 0) (9.5 0 0) (11 0 0)); // Optional entries (runtime modifiable) alpha alpha.water; liquid true; direction (1 0 0); interpolationScheme cellPoint; // Optional (inherited) entries writePrecision 1; writeToFile true; useUserTime true; region region0; enabled true; log true; timeStart 0; timeEnd 1000; executeControl timeStep; executeInterval 1; writeControl timeStep; writeInterval 1; }
以上代码是从官网拿来的,但是我运行之后报错:
这上面说找不到g,可是我看官方给的案例里面也是这么用的而且没有报错,请问各位前辈有知道这是怎么回事,或者有别的提取波面的方法的可以告诉我一下吗,万分感谢 -
难不成解决方案是把g都复制到每个文件夹内
-
我在OpenFOAM基金会版本测试没问题:
libs ( "libwaves.so" ); functions { interfaceHeight1 { type interfaceHeight; libs ("libfieldFunctionObjects.so"); locations ((300 0 0) (450 0 0) (600 0 0)); alpha alpha.water; } }
-
2206是可以用的,是不是constant下边没有g?或者g文件里缺什么东西?
-
@tidedrinker constant 下面有g
-
@tidedrinker 你好,您的是提取波高嘛,还是其他的,我还是不行
-
@tidedrinker @李东岳 找到原因了,是因为我输入命令的问题,我之前输入的是postProcess,应该用 interFoam -postProcess , 。。。。新手不太会
2024年3月4日 15:01
1/8
2024年3月14日 06:14