Heat equation, initial and boundary numerical conditions

LMZ
Messages
10
Reaction score
0
Hello to all!

Homework Statement


for testing my program i need a heat equation with numerical initial and boundary conditions:
Derivative[2, 0][f][x, t] == Derivative[0, 1][f][x, t]

f[x, 0] == numerical
f[0, t] == numerical, f[numerical, t] == numerical


PS. to moders: please, if you delete my message, PM me what I've done wrong, thanks!
 
Physics news on Phys.org
It's not clear what you are asking. You know what the heat equation is, I presume. Why can't you just make up arbitrary initial and boundary values yourself?
 
yeap! i think i know what is heat equation: http://en.wikipedia.org/wiki/Heat_equation#Solving_the_heat_equation_using_Fourier_series

for example if i put these:
Code:
init = f[x, 0] == 1
bc = {f[0, t] == 0, f[1, t] == 0}

in mathematica i got this warning:
A warning is generated in this example because the initial conditions and boundary conditions give two different values for the value of f[0,0].

that's why i need correct example!
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top