OptiCore
OptiCore copied to clipboard
Zemax surface type "BLACKBOX"
ValueError: ERROR: Zemax surface type "BLACKBOX" not implemented in OptiCore. Please open a support ticket on GitHub and include a .zmx file
I received the following error when I try to import my Zemax file. Most, if not all, my zemax files are blackbox type as the manufacture wants to retain their "secret source". I don't need to model the full actual range of lens and having just 1 lens that behaves similarily to the lens in the zemax file is sufficient. How should I go about it?
Hello, I don't (currently) think actually importing a file with blackbox content would be a feasible thing. I am unsure what contents a blackbox file actually contains (don't have any at hand at the moment), if there is some modelled input/output information only or if the actual content is there but encrypted and not displayed by Zemax...
Second, I am not sure what exactly you are suggesting in your last sentence, by "1 lens that behaves similarily to the lens in the zemax file"? Are you suggesting that OptiCore would read some non-encrypted metadata from the file, like focal length, total track length, etc., and then try to construct e.g. a simple doublet with similar properties?
Hi,
Yes to read a file (Blackbox if possible) and try to construct it
ok then to look into this I would need such a .zmx-file, together with some additional explanation of the desired result, so that I can verify if I implemented it correctly.
This is the blackbox files for the lens: https://www.edmundoptics.com/p/12mm-focal-length-hp-series-fixed-focal-length-lens/28989/
Thanks! That should cover it for now. I've downloaded the files and what information I can use from the website. Might take a couple of weeks for me to really look into this, as I have a bunch of other tasks at the moment.
No problem at all. I believe this will be a break through if it could be figured out