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


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

Re: How to plot divergence of gradient as contour plot

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to plot divergence of gradient as contour plot
Date 2012-01-06 09:21 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <je6ef3$qan$1@smc.vnet.net> (permalink)
References <201201051100.GAA14785@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web