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:
Hello! Let's say I have a cavity resonant at 10 GHz with a Q factor of 1000. Given the Lorentzian shape of the cavity, I can also drive the cavity at, say 100 MHz. Of course the response will be very very weak, but non-zero given that the Loretzian shape never really reaches zero. I am trying to understand how are the magnetic and electric field distributions of the field at 100 MHz relative to the ones at 10 GHz? In particular, if inside the cavity I have some structure, such as 2 plates...

Similar threads

Back
Top