pdecgrad
(Not recommended) Flux of PDE solution
pdecgrad
is not recommended. Use evaluateCGradient
instead.
Syntax
Description
[
computes the flux of the solution evaluated at the center of each mesh triangle.cgxu
,cgyu
] = pdecgrad(p
,t
,u
,c
)
The gradient is the same everywhere in the triangle interior because
pdecgrad
uses only linear basis functions. However, the flux can vary
inside a triangle because the coefficient c
can vary.