Copy mesh in parallel
Hi all,
My geometry is a cylindrical volume packed with spheres inside. Lots of spheres: 10k+.
To speed up my meshing, I tried copying the mesh for the spheres using a reference sphere mesh generated in another model (based on copy_mesh.py). And it works, it's much faster than meshing everything by itself for smaller geometries (1k spheres). However, the mesh copy is serial and you can feel it when copying 10k times. If I'm not mistaken, this is because of a critical
section in destroyMeshCaches()
. Also because of rebuildMeshVertexCache()
?
Is there a quick and easy way to parallelize mesh copying?
Secondary question: I copy the mesh of the reference sphere with an offset to the node coordinates. It works for the mesh nodes/elements themselves, but it seems boundaries have to be manually offset as well, is that right?
Thanks for this wonderful piece of software!