This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

adapting a mesh around a cylinder moving

0 votes

I need to move the mesh to fit around a cylinder in movement, the cylinder and mesh are defned by:

mesh = Mesh("maillage/canal2Dbis.xml")
sub_domains = MeshFunction("size_t", mesh, "maillage/canal2Dbis_facet_region.xml")
cycy = Expression(("0","0.1sin(3.0t)"),t=0.0)
cylindre = DirichletBC(V, cycy, sub_domains, 35)

are there any functions in FENICS for that?

asked Apr 28, 2015 by charly FEniCS Novice (140 points)
...