Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica Ndsolve periodic boundary conditions

  1. Feb 12, 2015 #1
    Hello,
    Mathematica is very new to me. Please help.

    n=1,2,3...,10 and stepsize between n(2)-n(1)=0.1
    It is periodic. I mean n(11)=n(1). i have a initial function which depends on n
    and i want to solve this equation by NDsolve like that

    u[n, t = 0] == 1/(2*n + 1)
    Do [ u[n, 0], {n, 0, 10, 0.1}] %
    u[n + 1, t] == u[1, t]
    u [n,t]== u[0,t]
    s == NDsolve [
    D [u[n, t]] == -[u[n + 1, t] + u[n - 1, t]] - [[u[n, t]]^3], ,
    u[n, t == 0], u, {n, 0, 10}, {t, 0, 5}]
    Plot3D [s, {n, 0, 10}, {t, 0, 5}]


    but it doesn't work.
    Thank you so much
     
  2. jcsd
  3. Feb 17, 2015 #2
    Thanks for the post! This is an automated courtesy bump. Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica Ndsolve periodic boundary conditions
  1. Mathematica NDSolve (Replies: 1)

  2. NDSolve in Mathematica (Replies: 3)

  3. Mathematica NDSolve (Replies: 27)

Loading...