begin_particle_cell_loop如何用?
begin_particle_cell_loop和end_particle_cell_loop在dpm.h中有定义,但是好像不能用。以下是我的程序,为了得到某一界面上离散相的数量和性质。解释时说包含begin_particle_cell_loop这一句中structure reference not implemented,想问一下问题是不是出在这一句上,在一个单元内如何查询到所有的离散相粒子?#include "udf.h"
#include "dpm.h"
DEFINE_DPM_OUTPUT(melting_output, header, fp, p, thread, plane)
{
int z;
cell_t c;
begin_c_loop(c, thread)
{begin_particle_cell_loop(p,c,thread)
{
z=z+1;
fprintf (fp,"%d %g %g \n",z,P_DIAM(p),P_MASS(p));
}
end_particle_cell_loop(p,c,thread)
}
end_c_loop(c, thread)
fclose (fp);
} begin_particle_cell_loop会报错,无法工作,这个怎么处理呀
页:
[1]