Message Boards Message Boards

0
|
3053 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Make a contour plot for a normalized concentration field?

Posted 5 years ago

I'm trying to plot a normalized concentration field as a two dimensional contour for a given diffusion time of 1 second. Instead of getting a meaningful plot my output is a blue square.

!contour functionAny help would be greatly appreciated.

POSTED BY: Alec Labitt
4 Replies

Welcome to Wolfram Community! Please make sure you know the rules: https://wolfr.am/READ-1ST

The rules explain how to format your code properly. If you do not format code, it may become corrupted and useless to other members. Please EDIT your post and make sure code blocks start on a new paragraph and look framed and colored like this.

int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

enter image description here

POSTED BY: Moderation Team

Ok. But without detailed information about what you are doing it is not possible to give a reasonable answer.

And: look at the rules. Don't paste pics, but code.

POSTED BY: Hans Dolhaine
Posted 5 years ago

Hello, I rewrote my equation using different Mathematica syntax (Exp[] instead of using E^2) and was able to get contour lines. However, I anticipated a significantly different pattern. By normalized I was just referring to the diffusion in my system as steady state. contour plot

you can see my Mathematica input/output as well as the contour plot I should have created below.enter image description here

POSTED BY: Alec Labitt

What do you mean by "normalized"

Your factor is

In[76]:= nn = 1/(12.  3.14  10^-8)

Out[76]= 2.65393*10^6

with this I get

In[80]:= Exp[-(((x - 5)^2 - 1)/nn)] /. x -> 0
Exp[-(((x - 5)^2 - 1)/nn)] /. x -> 25


Out[80]= 0.999991

Out[81]= 0.99985

Seems your expression is virtually constant, so, no contours

POSTED BY: Hans Dolhaine
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract