Recent content by crazybird

  1. C

    Mathematica Mathematica: Need help to solve this pde set

    Hi, jackmell, After many trials I also realize that it is not quite possible to simply use NDSolve to get it done. Thanks for the suggestion to go to a canonicalized form and I find that one can put the e^ factor into the variables to make a better looking form. I find that I made a...
  2. C

    Mathematica Mathematica: Need help to solve this pde set

    I have a pde set as following: parameters: γ, ω, α, β, c, η variables: z,t; x,y want: S = S(z,t;x,y) A = A(z,t) ∂S/∂t = -γ*S - i ω*A*exp{-i*[(-θ-α*t)*x+β*t*y]} [∂/∂t + (1/c)*∂/∂t] A = -i η*∫∫dxdy S*exp{i*[(-θ-α*t)*x+β*t*y]} The integral range is angle:(0,2Pi), radius: (0,R) How to...
  3. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    Simon: Yes, I looked at your attached notebook. Thank you very much! You already helped me a lot!
  4. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    Simon: Thank you very much! It is good to know at least in principle it works in this way, though the solution is not good at all. And how do you know the instability happens at t-->T?
  5. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    Working Mathematica Note: Thanks for telling me how to insert code. Typing code directly was killing me. \[Gamma] = 10^(-5); T = 500; tm = -250; \[Sigma] = 100; L = 1; L0 = -(L/2); L1 = L0 + L; c = 29.979; \[Omega] = 1.32949/10^8; \[Eta] = 1539.1; \[Mu] = 6.27...
  6. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    jackmell: Thanks for telling me. Well, I tried to paste but it looked ugly. I'll try more. And the first PDE indeed works, though it has only three boundary/initial conditions. I'll show later.
  7. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    Bill: Yes, one can make a list like this. But the question is how to make it into an initial condition of NDSolve?
  8. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    FunkyDwarf: The initial condition is not just A number, it should be a function. But the analytical form of the function is unknown, because it is the solution of another PDE. See my example above.
  9. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    Hi, All, here is my example: c = 29.979; T = 500; tm = -250; σ = 100; β=0.133427; γ=10-5; w=1.32949*10-8; h=1539.06; k=40895; solS=NDSolve[{∂tsS[z,t]==-(γ+I β*z)sS[z,t]-I*w*aS[z,t], (∂zaS[z,t]+1/c ∂t aS[z,t])==-I*h*k sS[z,t], sS[z,-T]==0, aS[z,-T]==E^((-T-tm)2/2σ2)...
  10. C

    Mathematica Mathematica: NDSolve with InterpolatingFunction as initial conditions

    The questions arises because I want to use the solution of one PDE as initial condition to solve another. Then using NDSolve, the first solution is given by InterpolatingFunction. I tried, it takes the whole afternoon, almost kills my computer but still not giving any result. Another computer...
  11. C

    Mathematica Why Does NDSolve in Mathematica Only Work with Machine Real Code?

    Jack: Thanks a lot for the suggestions! About the boundary conditions, I find that if I eliminate S[z, 0] == 0 then Mathematica will work. If I add it, and in addition do as Hepth suggested, it also works. Now in your reply, 6 conditions are specified. Is there any way to justify Mathematica's...
  12. C

    Mathematica Why Does NDSolve in Mathematica Only Work with Machine Real Code?

    Hepth: Yes it works! That's weird! Though I did not perform an analytic sln to check, but at the plot of the result looks well behaved. Thanks a lot!
  13. C

    Mathematica Why Does NDSolve in Mathematica Only Work with Machine Real Code?

    Bill: Those Method options are not available somehow. It is strange--the second link you provided says explicitly that "The differential equations in NDSolve can involve complex numbers. " BTW, the above is the complete code. No additional functions are used. Although it is not the original...
Back
Top