-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full modal integral does not give correct results #246
Comments
It appears this is the exact same problem as in JuliaMath/Cubature.jl#24 |
I think the problem is actually more general than this, to the extent that the full modal integration doesn't actually work at all. I cannot seem to get pointcalc eval at
r=[0.00012498117616851275, 0.00012498117616851275, 0.00012498117616851275, 1.8823831487239906e-8, 1.8823831487239906e-8, 1.8823831487239906e-8, 0.00012483065354241814, 0.00012483065354241814, 0.00012483065354241814, 1.693464575818664e-7, 1.693464575818664e-7, 1.693464575818664e-7, 0.00012452997091241938, 0.00012452997091241938, 0.00012452997091241938, 4.700290875806249e-7, 4.700290875806249e-7, 4.700290875806249e-7, 0.00012407985264930883, 0.00012407985264930883, 0.00012407985264930883, 9.201473506911763e-7, 9.201473506911763e-7, 9.201473506911763e-7, ...]
θ/π=[1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, ...] This can also be seeen in the difference between |
I have two separate combination of modes, both TM01+HE21, but with HE21 rotated by π/4 in one case and -π/4 in the other. This creates LP11 modes with different orientations:
If I now calculate the plasma nonlinear polarisation for both of these using
TransModal
withfull=true
, I don't get the same result. I can fix this, however, by changing frompcubature_v
tohcubature_v
:The reason appears to be that
pcubature
starts by evaluating at three angles,θ = [0, π, 2π]
, and then never goes any further (I got this by printingxs
insidepointcalc!
). In the vertical case, it only actually runspointcalc!
once, so I getThe text was updated successfully, but these errors were encountered: