**quad_refinement#

Description#

This mesher allows to refine a region, given by node set, of a 2D quadrilateral mesh. Each quadrilateral element is divided into 9 smaller ones. To maintain a conformal all-quadrilateral mesh, a transition zone is inserted where each element is subdivided depending on the number of nodes belonging to the target nset.

Syntax#

**quad_refinement \(~\,\) *nset nset_name \(~\,\) [ *quad ]

where nset_name is the name of the node set that corresponds to the mesh zone to refine. The option *quad sets the integration order as quadratic.

Example#

../../_images/quad_refinement_circle.svg
****mesher
 ***mesh rect_circle
  **open rect
  **nset circle
   *func ((x*x+y*y)<0.16)*((x*x+y*y)>0.06);
  **quad_refinement
   *nset circle
****return