Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Problems solving Maxwell equation in Wave Optics module
Posted 2021年12月3日 GMT-5 11:11 Low-Frequency Electromagnetics, RF & Microwave Engineering, Wave Optics Version 5.6 3 Replies
Please login with a confirmed email address before reporting spam
Hi everyone! I am trying to solve the retarded Green tensor as a solution of the Full Maxwell equation in a certain dielectric environment. ∇x∇xG(r,r',w) - k^2eG(r,r',w) = -1/c^2 d(r-r') is the equation I want to solve, but the wave optics module in frequency domain doesn't have the point charge on the right side of the equation. I tried (plan) to add an external current subnode in the physics with a unit current at position r' on direction z to immitate the point charge oscillating at frequency w (optical frequency), and solve for Gzz at position r in term of Ez from the COMSOL result. The problem is that the solver always give the following error:
Undefined value found. - Detail: NaN or Inf found when solving linear system using SOR.
I think maybe I did something wrong when setting up the external current subnode, because in the dependent variable in the study setup, there is only electric field, so I don't know how the external current involves in the study, and whether it actually has an effect. Also I am not sure if I set the boundry of the current correct, but since it's frequency domain study, it shouldn't matter (I guess COMSOL doesn't solve for charge accumulation in this model)? I attached the model as well.
I also looked at e.g. RF module or AC/DC modules, they either doesn't have the field retardation effect, or doesn't have the option to add charges.
Also if there is a direct way to add the point like charge in weak expression, it would be better! But I couldn't find much information online on e.g. what COMSOL actually solves and which weak expressions are supported for different modules. If would be nice if someoone could also help me with it. Or if there is an already established model for solving the Green tensor for a full Maxwell equation set, please let me know!
Attachments: