I would like to use the solution of one simulation to create the subdomains in a different simulation. Thus, I save the solution in a file like this:
vtkfile = File('output/solution.pvd')
vtkfile << (u, t)
Since the new simulation will have the same mesh, I also save the subdomains as follows:
mesh_file = File("output/subdomains.pvd")
mesh_file << subdomains
Then, I want to read the vtkfile and mesh_file files simultaneously and update the subdomains according to the results in vtkfile. However, I see that those files contain a different number of values: vtkfile has values for the NumberOfPoints and the mesh_file for the NumberOfCells, with NumberOfCells>>NumberOfPoints . How can I get the values for each NumberOfPoints ? What is the relation between both values?