Hi sir,
I created mesh from gmsh with 4 subdomains but in some parts of the code, I want to use only 2 subdomains. So, I am using the Meshview function but it is giving a problem.
thermal_mesh=MeshView.create(interior, 1, 2)
error is
Traceback (most recent call last):
File "FEM_rz.py", line 377, in <module>
T=Temperature(mesh, cf, mf, dt, t_max)
File "FEM_rz.py", line 308, in Temperature
thermal_mesh=MeshView.create(interior, 1,2)
TypeError: create(): incompatible function arguments. The following argument types are supported:
1. (self: dolfin::MeshFunction<unsigned long>, arg0: int) -> dolfin::Mesh
Invoked with: <dolfin.cpp.mesh.MeshFunctionSizet object at 0x7fcc72d7b9b0>, 1, 2
A MeshView can only take in one integer.
You need to create a new MeshFunction containing the combination of the two.
Consider the following minimal example, where we have one mf with 3 values; 1,2,3, and we want to make a meshview of those cells marked 1 and 3: