|
> Hello all, first time poster here and as a caveat I
> have never used Matlab seriously before.
> I have a set of vector differential equations (I have
> written them in LaTex):
>
> (\partial_t - i x) \textbf{b} = -\frac{3}{2
> \bar{\omega}_A} b_x \hat{y} + i \textbf{u}
>
> (\partial_t - i x) \textbf{u} =
> = \frac{2}{\bar{\omega}_A} u_y \hat{x} - \frac{1}{2
> \bar{\omega}_A} u_x \hat{y} - \frac{3}{2
> \bar{\omega}_A} \partial_x Q \hat{x} - i Q \hat{y} -
> i \frac{1}{\kappa} Q \hat{z} + i \textbf{b}
>
> \frac{3}{2} \partial_x u_x + i \bar{\omega}_A u_y +
> \frac{i \bar{\omega}_A}{\kappa} u_z = 0
>
> \textbf{u} and \texbf{b} are vectors in three
> dimensions and so this is actually a collection of 9
> coupled equations. The last vector equation is not
> directly needed to solve the equations however so we
> are back to 6 equations.
>
> The omega and kappa are parameters;
> i is the imaginary number;
> \hat{x}, \hat{y} and \hat{z} are unit vectors
> x is the coordinate x
>
> The variable Q can be found by taking the divergence
> of the second set of equations and solving the
> helholtz equation to get:
> Q = \int_x^{\infty} (-\frac{2}{3} u_y - i \frac{2}{9
> k} \bar{\omega}_A u_x){e^{ k (x-x')}}
> +\int_{-\infty}^x (\frac{2}{3} u_y - i \frac{2}{9 k}
> \bar{\omega}_A u_x){e^{ -k (x-x')}}
>
> Finally my initial conditions are:
> b_x = a gaussian centered at x=0 with FWHM of ~10 or
> b_x(0,x) = exp((-ln(2)*x^2)/100 )
> b_y(0,x) = 0
> b_z(0,x) = 3*i*kappa/omega/2 * d(b_x(0,x))/dx
> u_x(0,x)=u_y(0,x)=u_z(0,x)=0
>
> (sorry for lapsing into coding format here)
>
> My question is: Can Matlab solve this?
> I've tried Maple and coding my own version of
> Runge-Kutta with some success though not to the
> extent I'd like. The ideal situation would be to
> have Matlab solve these and give the same solution as
> my code does as a double check.
> I'm not too worried that this might take several
> hours.
>
> Thanks for the help everyone.
Please write out formulas in ASCII, not in TEX.
It enormously improves readability.
Best wishes
Torsten.
|