Hello,
I would like to ask about the syntax of MeshConnectivity class in python. I have a 3D box (submesh) inside another 3D box (mesh) and I need to have two lists with the nodes which belong to each surface. (insurface->inside box, outsurface->outside box). Thank you!!
import matplotlib.pyplot as plt
from dolfin import *
import numpy as np
import random
mesh = Mesh(“dolfinmesh.xml”)
mesh_file_volume = MeshFunction(‘size_t’, mesh ,“dolfinmesh_volume_meshvalue.xml”)
mesh_file_surface = MeshFunction(‘size_t’ , mesh , “dolfinmesh_surface_meshvalue.xml”)
mesh_file_boundary = MeshFunction(‘size_t’ , mesh , “dolfinmesh_bcfunc.xml”)
V = FunctionSpace(mesh, “Lagrange”, 1)
insurface = list()
outsurface = list()
#I’ve tried: connectivity32 = mesh.topology(mesh, 3, 2); or connectivity32 = MeshConnectivity(3, 2); but #it doesn’t seem to work.
for cell in cells(mesh):
…
…