A Ikonal equation integration -- source code request

AI Thread Summary
A request for source code to integrate the ikonal equation for ray path computation in the ionosphere was made, specifying a Cartesian system and a phase refractive index model. The user, Carlos, is modeling HF radio frequency propagation without magnetic fields or neutral-electron collisions, using a simple parabolic ionosphere model. After integrating the ray equation, Carlos encountered discrepancies in results when applying Snell's law, suggesting potential calculus errors or instabilities. Jason highlighted that numerical issues may arise from discontinuities in electron density at the ionosphere's base, recommending that Carlos refine his ray tracing routine to avoid these problems. Further details on the equations being solved are necessary for more targeted assistance.
carlos-carlos
Messages
10
Reaction score
0
Hi.
I would like a source code to integrate the ikonal equation. I would like to compute the ray path. Of course I am able to compute the phase refractive index n(x,y). Cartesian system is preferred. Can anybody give me a suggestion?

Bye,

Carlos
 
Physics news on Phys.org
Carlos,

What physical situation are you trying to model and what exactly do you want to compute? Based on that, what equations (write them out for us!) are you solving? I think you will get more useful replies if you actually explain what you are doing. I suspect it is not too difficult to write your own code to do the ray tracing, but it depends on the details of your problem.

Jason
 
Thank you for your reply. Actually I am integrating the ray equation for HF radio frequency propagating in the ionosphere. The ionosphere is supposed without magnetic field and without neutral-electron collisions. Phase refractive index is n=(1-X)^0.5 where X=wp^2/w^2 (wp is plasma frequency, w frequency of the radiowave). Simple model of ionosphere is assumed (just a parabola having maximum at 300 km). But this is not relevant at this stage.
I integrated the ray equation. Then I obtained the ray path miinimizing the optical path,and I obtained slightly different results. Then I applied the Snell relation, and I obtained again slightly different results. I suppose the problem is approached correctly, but there are calculus mistakes or instabilities. I would like to get a reliable code so I can compare the results. Regards.
 
carlos-carlos said:
Simple model of ionosphere is assumed (just a parabola having maximum at 300 km). But this is not relevant at this stage.

Actually, it could be very relevant. Your ray tracing equations should have a vertical derivative of the electron density in them. This derivative will be discontinuous at the bottom of your ionosphere. It is easy to have numerical issues associated with such a discontinuity. I would not be at all surprised if this is your problem. Using some off-the-shelf black-box ray-tracing code will not necessarily fix this, although if it had adaptive stepsizes it may be able to reduce the error.

Edit: Since you know your problem you can easily write your own ray tracing routine that starts solving your differential equation(s) just above the base of the ionosphere, thereby avoiding this issue. Perhaps you already are doing this?

Of course, we still do not know what equations you are solving so the issue could be your problem formulation. I can probably help you more, but cannot without sufficient details from you. Good luck.

Jason
 
Last edited:
Thread 'Gauss' law seems to imply instantaneous electric field propagation'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Thread 'A scenario of non-uniform circular motion'
(All the needed diagrams are posted below) My friend came up with the following scenario. Imagine a fixed point and a perfectly rigid rod of a certain length extending radially outwards from this fixed point(it is attached to the fixed point). To the free end of the fixed rod, an object is present and it is capable of changing it's speed(by thruster say or any convenient method. And ignore any resistance). It starts with a certain speed but say it's speed continuously increases as it goes...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...

Similar threads

Back
Top