Skip to content

Error: complex refractive index of medium #19

@Melowa

Description

@Melowa

Running the example file CELES_MAIN.m with a non-zero imaginary part of 'mediumRefractiveIndex' causes the execution to terminate with an error right after it says
"compute scattered field plane wave pattern:"
The error is:
"Error using celes_planeWavePattern/validatePropertiesImpl (line 123) invalid k value: Expected input to be real."
the refractive index I used was 1.2 + 0.01i and the light wavelength 500. Also, output.initialFieldPower is complex, with large imaginary part, in my case 3.7e6 + 3.1e4i.
Does anyone else have this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions