MathGroup Archive 2012

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

Search the Archive

Re: NDSolve and "periodic" boundary conditions

On Thu, 5 Jan 2012, gac wrote:

> Can NDSolve use a "periodic" boundary condition something like:
>     f[0] = f[1]+1      (I know it's not actually periodic)
> Even better, since I want to solve a PDE, something like:
>     f[0,t] = f[1,t] + I Exp[I t]
> I can't get around this error:
>     NDSolve::bcedge: Boundary condition... is not     specified on a single edge of the boundary of the computational domain. >>
> I'm trying to solve Eq. (8) of Bowers' and Moody's "Cavity equations for a laser with an injected signal," J. Opt. Soc. Am. B 11:2266 (1994).  The boundary condition is the reflected cavity field (periodic) plus the portion of the injected field transmitted into the cavity through the output mirror.
> Thanks very much.

>From the documetation

NDSolve[{Derivative[2, 0][u][t, x] == Derivative[0, 2][u][t, x],
     u[0, x] == E^(-x^2), Derivative[1, 0][u][0, x] == 0,
     u[t, -10] == u[t, 10]}, u, {t, 0, 40}, {x, -10, 10}]

Hope this helps,

  • Prev by Date: Default sort of vector is by "complexity" of expression!!?????
  • Next by Date: Re: Rule replacement doesn't work after NDSolve?
  • Previous by thread: NDSolve and "periodic" boundary conditions
  • Next by thread: Re: NDSolve and "periodic" boundary conditions