fealpy icon indicating copy to clipboard operation
fealpy copied to clipboard

'StructureQuadMesh' object has no attribute 'cell_area'

Open yoczhang opened this issue 4 years ago • 0 comments

from fealpy.mesh import StructureQuadMesh

box = [0, 1, 0, 1]
nx = 2
ny = 2
mesh = StructureQuadMesh(box, nx, ny)
cellarea = mesh.entity_measure('cell')

then, the error is

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/FEALPy/fealpy/fealpy/mesh/Mesh2d.py", line 79, in entity_measure
    return self.cell_area(index)
AttributeError: 'StructureQuadMesh' object has no attribute 'cell_area'

yoczhang avatar Jun 24 '20 02:06 yoczhang