MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to plot divergence of gradient as contour plot


Needs["VectorAnalysis`"]

coord = Cartesian[x, y, z];

ContourPlot[
 Evaluate[Div[Grad[Sin[x + y], coord], coord]],
 {x, -5, 5}, {y, -5, 5}]

Or

f[x_, y_] = Div[Grad[Sin[x + y], coord], coord];

ContourPlot[f[x, y], {x, -5, 5}, {y, -5, 5}]


Bob Hanlon

On Thu, Jan 5, 2012 at 6:00 AM, Szymon Roziewski
<szymon.roziewski at gmail.com> wrote:
> Hello there,
>
> I am concerning to plot something like that.
>
> ContourPlot[Divergence[Gradient[Sin[x + y]]], {x, -5, 5}, {y, -5, 5}]
>
> Plotting divergence of gradient scalar field.
> How can I manage to do that?
>
> Best regards,
> Szymon Roziewski



  • Prev by Date: SortBy for multiple key sorts
  • Next by Date: Re: How to plot divergence of gradient as contour plot
  • Previous by thread: Re: How to plot divergence of gradient as contour plot
  • Next by thread: Re: How to plot divergence of gradient as contour plot