Dear all,
I am trying to solve a Poisson equation with different boundary conditions by creating a different subdomain for each boundary. It’s a problem in the tutorial.
I ran the same code given in the tutorial but getting this error.
‘MeshFunction type not recognized’
I think this command is outdated. Please tell me what I can type instead of this.
And also where can I find substitutes for outdated commands like this.
I am attaching the code and error snapshot here.
from dolfin import *
import numpy
#-------------- Preprocessing step -----------------
Create mesh and define function space
mesh = UnitSquareMesh(3, 2)
V = FunctionSpace(mesh, ‘Lagrange’, 1)
Define boundary segments for Neumann, Robin and Dirichlet conditions
Create mesh function over cell facets
boundary_parts = MeshFunction(“uint”, mesh, mesh.topology().dim()-1)
