OOF: Finite Element Analysis of Microstructures

/adaptive_mesh/refine/depth

/adaptive_mesh/refine/depth

/adaptive_mesh/refine/depth -- refine triangles with a specified depth

Synopsis

The depth of a triangle is the number of ancestors it has, going back to the initial mesh. Thus triangles in a just created mesh have depth 0, their children have depth 1, and so forth. This function refines triangles with depths within a given range.

Refining a range of depths can be useful if, for example, you've created an initial coarse mesh, refined it in some places to pick out some interesting features, and then later decide that you should have started with a finer mesh. You don't want to use /adaptive_mesh/refine/all, because that would over-refine the areas that you already refined. You can instead refine by depth, refining only the coarsest triangles.

Arguments

iterations

How many times to perform the refinement. Remember that the depth of the children is one more than the depth of the parents, so when the command is iterated, children born on one iteration may not be refined on the next, if their depth is now out of the specified range. Default: 1

min

Triangles must have at least this depth in order to be refined. Default: 0

max

Triangles must have at most this depth in order to be refined. Default: 0