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.
Access to function n_interp
Posted 21.10.2016, 08:18 GMT-4 Materials, Modeling Tools & Definitions, Parameters, Variables, & Functions Version 5.2 2 Replies
Please login with a confirmed email address before reporting spam
Hi everyone
When I Add a new Material from the library (e.g. Pd or Cu), then I can see its real and refractive indexes, n and k respectively.
They function n which is a function of the wavelength is calculated automatically using a local table. The function is called n_interp for the real part.
Now when I want to use the refractive index in an expression (e.g. as an expression under "derived values") I don't know how to access this function.
I would like to write an expression like
n_interp_Pd(lambda) / n_interp_Cu(lambda)
But as the refractive index of Cu is calculated similarly and the interpolation function of Cu is also just called n_interp, I don't know how to access these two functions.
I solved the problem creating two interpolation functions under "global definitions" where I copied the local tables from Pd and from Cu and called them n_Cu and n_Pd. Now I can access these functions.
But I think this step is unnecessary since these functions are exact copies of already existing functions...
Does somebody know how to avoid this additional step?
Best regards
Gabriel
When I Add a new Material from the library (e.g. Pd or Cu), then I can see its real and refractive indexes, n and k respectively.
They function n which is a function of the wavelength is calculated automatically using a local table. The function is called n_interp for the real part.
Now when I want to use the refractive index in an expression (e.g. as an expression under "derived values") I don't know how to access this function.
I would like to write an expression like
n_interp_Pd(lambda) / n_interp_Cu(lambda)
But as the refractive index of Cu is calculated similarly and the interpolation function of Cu is also just called n_interp, I don't know how to access these two functions.
I solved the problem creating two interpolation functions under "global definitions" where I copied the local tables from Pd and from Cu and called them n_Cu and n_Pd. Now I can access these functions.
But I think this step is unnecessary since these functions are exact copies of already existing functions...
Does somebody know how to avoid this additional step?
Best regards
Gabriel
2 Replies Last Post 11.07.2017, 06:07 GMT-4