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


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

Re: How to plot divergence of gradient as contour plot

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

Show all headers | View raw


The best I could come up was 

Needs["VectorAnalysis`"]
ContourPlot[
 Evaluate[Div@Grad@Sin[Xx + Yy] /. {Xx -> x, Yy -> y}], {x, -5, 5}, {y, -5, 
  5}]

Gabriel

On Jan 5, 2012, at 9:00 AM, Szymon Roziewski 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 Gabriel Landi <gtlandi@gmail.com> - 2012-01-06 09:19 +0000

csiph-web