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.
Undefined Variable Error lambda in a whispering gallery resonator model
Posted 2024年4月16日 GMT-4 15:06 Electromagnetics, Wave Optics, General, Results & Visualization, Modeling Workflow Version 6.2 0 Replies
Please login with a confirmed email address before reporting spam
I am trying to find the bound modes of a particular WGM, similar to the Application found here: https://www.comsol.com/model/whispering-gallery-mode-resonator-90741. Because my structure is quite large (~mm scale), I have decided to use the Beam Envelopes interface instead of the frequency domain interface. When I run the simulation, I get an error for an undefined variable lambda that I cannot find anywhere in the model. Is there another undefined parameter that I need to work with? Note that the geometry is imported from another .mph file that I was originally working with.
Edit 17.4.2024: The issue seems to be purely in plotting the results. I am able to execute the solver completely without error, although I am not sure if it is storing valid solutions. When I try to plot a particular function, I get the error I have screenshotted above (pasted here so that others can read it)
I'm assuming this is some sort of stack trace, but as I am new to comsol I am not entirely sure how to read it.
Undefined variable. - Variable: lambda - Geometry: geom1 - Domain: 7 Failed to evaluate variable. - Variable: freq - Defined as: ((-0.5)lambda)/(pii) Failed to evaluate variable. - Variable: comp1.ewbe.freq - Defined as: freq Failed to evaluate variable. - Variable: comp1.ewbe.omega - Defined as: (2pi)comp1.ewbe.freq Failed to evaluate variable. - Variable: comp1.ewbe.iomega - Defined as: comp1.ewbe.omegai Failed to evaluate variable. - Variable: comp1.ewbe.k0 - Defined as: (comp1.ewbe.iomegasqrt(mu0_constepsilon0_const))/i Failed to evaluate variable. - Variable: comp1.ewbe.phi1 - Defined as: comp1.ewbe.k0comp1.ewbe.posz Failed to evaluate variable. - Variable: comp1.ewbe.expPhi1 - Defined as: exp((-i)comp1.ewbe.phi1) Failed to evaluate variable. - Variable: comp1.ewbe.E1z - Defined as: comp1.ewbe.expPhi1((comp1.E1rcomp1.pml1.T31)+(comp1.E1zcomp1.pml1.T33)) Failed to evaluate expression. - Expression: comp1.ewbe.E1z - Plot: Electric Field
Hello Ely Eastman
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.