libsampling采样漏点
-
OF小白来提个问:
我遇到了一个奇怪的问题,当我用libsampling来对rho这个量进行采样取值的时候,我明明设置了取2000个点,但最终只输出了1000多个点的值。。。实在搞不懂咋回事了
这是我的libsampling设置:functions { sets { type sets; libs ("libsampling.so"); enabled true; writeControl adjustableRunTime; writeInterval 0.05; interpolationScheme cellPoint; setFormat raw; sets ( P1 { type uniform; axis xyz; start (9 0.1 0.0); end (9 0.1 0.5); nPoints 2000; } P2 { type uniform; axis xyz; start (7.5 0.1 0.0); end (7.5 0.1 0.5); nPoints 2000; } P3 { type uniform; axis xyz; start (6 0.1 0.0); end (6 0.1 0.5); nPoints 2000; } P4 { type uniform; axis xyz; start (4.5 0.1 0.0); end (4.5 0.1 0.5); nPoints 2000; } P5 { type uniform; axis xyz; start (3 0.1 0.0); end (3 0.1 0.5); nPoints 2000; } P6 { type uniform; axis xyz; start (1.5 0.1 0.0); end (1.5 0.1 0.5); nPoints 2000; } ); fixedLocations false; fields ( rho ); } }
以P1为例,只采到了1000多个点: