Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11098 > unrolled thread
| Started by | georgesabitbol4@gmail.com |
|---|---|
| First post | 2012-07-27 08:58 +0000 |
| Last post | 2012-07-30 07:49 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Heat equation at the surface of a sphere georgesabitbol4@gmail.com - 2012-07-27 08:58 +0000
Re: Heat equation at the surface of a sphere George <georgesabitbol4@gmail.com> - 2012-07-30 07:49 +0000
| From | georgesabitbol4@gmail.com |
|---|---|
| Date | 2012-07-27 08:58 +0000 |
| Subject | Heat equation at the surface of a sphere |
| Message-ID | <jutl7i$cht$1@smc.vnet.net> |
Hello Folks,
I am new to Mathematica, but it seems to be the most suitable tool for my issue. I have to solve a equation which is similar to heat equation on a sphere surface. The exact expression in a spherical coordinates system is (in LaTeX) :
\frac{\partial{h}}{\partial t} = \frac{1}{n} \left[ \frac{1}{r^2 \sin^2{\phi}} \frac{\partial}{\partial \theta} \left( K \frac{\partial h}{\partial \theta} \right) + \frac{1}{r^2 \sin \phi} \frac{\partial}{\partial \phi} \left( K \sin \phi \frac{\partial h}{\partial \phi}\right) + s(\theta,\phi,t)\right]
K is a diffusion coeff.
s a source term (varying in time and space)
and n a constant (although it might depends on \phi and \theta).
\theta and \phi are defined here in a mathematical way.
r the radius (constant as we deal with a perfect sphere).
(no variation regarding the radius, we only look at the surface of the sphere).
I found that in Mathematica, and in a Cartesian frame, such equation (somewhat not exactly the same but similar) would be:
N = 1
K = 34
myfunc = NDSolve[{D[h[x, y, t], t] ==
1/N*(D[h[x, y, t], x, x] + D[h[x, y, t], y, y]), h[x, y, 0] == 0,
h[0, y, t] == K*t, h[9, y, t] == K*t, h[x, 0, t] == K*t,
h[x, 9, t] == K*t}, h, {x, 0, 9}, {y, 0, 9}, {t, 0, 6}];
I'm kind of stuck right now, because I do not know how can I write in Mathematica my equation into spherical frame. I would appreciate any ideas/suggestions.
Thanks a lot and sorry for bothering you guys with this.
G.
[toc] | [next] | [standalone]
| From | George <georgesabitbol4@gmail.com> |
|---|---|
| Date | 2012-07-30 07:49 +0000 |
| Message-ID | <jv5eak$r58$1@smc.vnet.net> |
| In reply to | #11098 |
This thread is now moved to over here : https://groups.google.com/d/topic/comp.soft-sys.math.mathematica/q48JNOS6dV4/discussion
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web