Dear all,

we need the cellVolumes of a 2D cylindrical mesh and tried the following:

from fipy import *
mesh=CylindricalGrid2D(dr=1.,dz=1.,nr=10,nz=1)
a=mesh.getCellVolumes()
print a

The output is:

[ 0.5  1.5  2.5  3.5  4.5  5.5  6.5  7.5  8.5  9.5]

Could it be that a factor of pi is missing here? Assuming that the half cylinder
is modelled...

Thanks in advance!

Regards
Burak


Reply via email to