Partial Differential Equation Toolbox | ![]() ![]() |
Select triangles relative to the worst value
Syntax
Description
bt=pdeadworst(p,t,c,a,f,u,errf,wlevel)
returns indices of triangles to be refined in bt
. Used from adaptmesh
to select the triangles to be further refined.
The geometry of the PDE problem is given by the mesh data p
and t
. For details, see initmesh
.
c, a, and f
are PDE coefficients. For details, see assempde
.
u
is the current solution, given as a column vector. For details, see assempde
.
errf
is the error indicator, as calculated by pdejmps
.
wlevel
is the error level relative to the worst error. wlevel
must be between 0 and 1.
Triangles are selected using the criterion errf>wlevel*max(errf)
.
See Also
![]() | pdeadgsc | pdearcl | ![]() |