MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Problems with NDSolve

  • To: mathgroup at
  • Subject: [mg5991] Problems with NDSolve
  • From: lichtner at
  • Date: Sat, 8 Feb 1997 22:38:09 -0500
  • Organization: Southwest Research Institute
  • Sender: owner-wri-mathgroup at

I'm having problems with using NDSolve to solve partial differential
equations. Has anyone had any luck with with??
I tried a very simple heat conduction equation as a test with constant
initial temperature and constant temperature at the left face, and a zero 
flux boundary condition at the right face:

soln =NDSolve[{D[y[x,t], t] == D[y[x,t], x, x],
y[0,t]==1, y[x,0]==0, 
y[x,t], {x,0,5}, {t,0,10}]

I get a strange warning message:

    "Warning: Boundary and initial conditions are inconsistent."

And after plotting the results with

Plot3D[Evaluate[y[x,t] /. First[soln]],
	{x,0,5}, {t,0,10},PlotPoints->30]

get just a flat surface with nothing happening!

Thanks for any help.
Peter C. Lichtner	<lichtner at>
Southwest Research Institute
Center for Nuclear Waste Regulatory Analyses (CNWRA)
6220 Culebra Road		
San Antonio, Texas  78238-5166
Telephone:	Work:	(210) 522-6084	<<NeXTMail Welcome!!!>>
			Fax: 	(210) 522-6081
			Home:	(210) 490-8258

  • Prev by Date: Why doesn't this simplify further?
  • Next by Date: Re: Why doesn't this simplify further?
  • Previous by thread: Re: Why doesn't this simplify further?
  • Next by thread: Re: HTML Conversion