Hello. I am a beginner to fences and I am currently using it in a project that requires me to use the multimesh features. I am building a simple multimesh and attempting to plot it using the plot feature. Below is the code.
from fenics import *
mesh = UnitSquareMesh(8,8)
mesh2 = UnitSquareMesh(10,10)
multimesh = MultiMesh()
multimesh.add(mesh)
multimesh.add(mesh2)
multimesh.build()
plot(multimesh)
When I try to plot this, an error is throwing.
Traceback (most recent call last):
File “”, line 1, in
File “/opt/anaconda3/envs/ucb_fem/lib/python3.8/site-packages/dolfin/common/plotting.py”, line 434, in plot
raise RuntimeError(msg)
RuntimeError: Don’t know how to plot given object:
<dolfin.cpp.mesh.MultiMesh object at 0x1069b2f90>
and projection failed:
‘dolfin.cpp.mesh.MultiMesh’ object has no attribute ‘ufl_shape’
Does anyone have any suggestions