Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Initial Boundary Value Problem (IBVP)' topicStudent Support Forum > General > "Initial Boundary Value Problem (IBVP)"

Help | Reply To Topic
Author Comment/Response
JJ
03/21/00 06:42am

I'm trying to solve a problem in the form:

D[T[x,t],t]==A*D[T[x,t],{x,2}]

with NDSolve

I have two boundary conditions:
T[0,t]==To AND D[T[x,t],x]==0 @ x==L

and one initial Value:
T[x,0]==Tinit

At (x,t)=(0,0) the boundary conditions conflict
so I set up an If statement to take care of this:

new Initial condition
If[x>0,(T[x,0]==Tinit),(T[0,0]==To)]

The problem is when I use NDSolve to solve this problem
It says that the equation list must contain an equation
and an initial condition

how do I get NDSolve to use the If statement?
I have tried setting up a series of functions of x
to no avail


URL: ,
Help | Reply To Topic