Dear Fenics community.
In the context of adaptive refinement, one of the most used command in Fenics is
refine. When marked elements (triangles in my case) are given to this function, they are splitted in four new triangles. I wonder if it will be possible to somehow control the refinement of the
refine function such that the subdivision of the elements is in 2 triangles instead of 4?. Is there another tool to refine marked elements that can communicate with Fenics?
from dolfin import* import matplotlib.pyplot as plt N = 2 mesh = UnitSquareMesh(N, N, 'left') refined_mesh=refine(mesh) plt.figure() plt.plot(mesh) plt.figure() plt.plot(refined_mesh)
The initial mesh
The refined mesh after running
Thanks in advance!