Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7611 > unrolled thread

Re: How to plot divergence of gradient as contour plot

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-01-06 09:21 +0000
Last post2012-01-06 09:21 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to plot divergence of gradient as contour plot Bob Hanlon <hanlonr357@gmail.com> - 2012-01-06 09:21 +0000

#7611 — Re: How to plot divergence of gradient as contour plot

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-01-06 09:21 +0000
SubjectRe: How to plot divergence of gradient as contour plot
Message-ID<je6ef3$qan$1@smc.vnet.net>
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@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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web