I am trying to run the tutorial Generating meshes with subdomains. In Fenics 2018 I get a RecursionError, as was already remarked in Cannot create domain-dependent expression
Apperently one should replace Expression with UserExpression in the tutorial. But then I get the Error: ‘Permeability’ object has no attribute ‘_ufl_shape’.
What are the appropiate modifications in the tutorial to make it run with fenics 2018?
# Plot solution
from vtkplotter.dolfin import plot
plot(A_z, at=0, N=2, # draw on the first of 2 renderers
lw=0, # no linewidth of mesh
bg='white',
isolines={'n':20, 'lw':1.5, 'c':'black'})
plot(B, at=1) # draw on the second renderer
Hi @marcomusy,
Please can you tell me how to install the vtkplotter. I am installing using
pip install vtkplotter
But it is getting installed in conjunction with python3.6 . I am using the fenics using python2.7 version. And I can’t run the fenics using python3.6. I wish to link the vtkplotter with python2.7 . Your suggestions would be helpful.