TAGGED: advanced-features, material, material-models, plugin
-
-
March 25, 2024 at 9:34 pmtavakSubscriber
I wanted to define and modify a two-level system model based on the instructions in this video. I followed the procedure exactly and worked with the files on the official webpage (twolevelexample.zip). The DLL file was successfully generated, and the output log is similar to the one in that video. However, I couldn't find the new material in the list after copying the generated DLL file into the appropriate directory. I guess something is wrong with my generated DLL file because the new material appeared on the list when I used the original DLL available in (twolevelexample.zip). In other words, the program did not recognize the DLL file and the material associated with that. I tried the same procedure for other materials and their associated DLLs, e.g., step-index, and got similar similar disappointing results. Thanks in advance for the helpful comments and solutions.
-
March 26, 2024 at 6:06 pm
-
March 26, 2024 at 7:02 pmtavakSubscriber
Many thanks for the reply. I tried this directory as well, and it didn't work. I put an original DLL, e.g., stepindex.dll (downloaded from this webpage), in the following directory, and it worked. However, if I rebuild it by myself via the files available on that webpage, i.e., "stepindex.h" and "stepindex.cpp", it wouldn't work.
The directory: C:\Program Files\Lumerical\v232\bin\plugins\materials
I guess the issue is related to the DLL generation process, for which I used Visual Studio 2022. Do I need an additional or specific setting for the DLL building (compiling)?
-
March 26, 2024 at 8:05 pmGuilin SunAnsys Employee
I guess it is related to the complier version. Since not many people create their own plugin materials, I am not sure which version of Visual Studio is supported. What I found is like this:
- For versions of FDTD up to the 2016b release, use Visual Studio 2008
- For versions of FDTD from the 2017a release onwards, use Visual Studio 2013
-
March 27, 2024 at 3:15 amtavakSubscriber
Thanks for addressing the glitch and being to the point. The solution was helpful. I tried via Visual Studio 2010 and it worked well.
-
March 27, 2024 at 4:00 pmGuilin SunAnsys Employee
Thank you for letting me know. You may also try 2019+ version later.
-
- The topic ‘Advanced material plugin: DLL generation’ is closed to new replies.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Help for qINTERCONNECT
- Trapezoidal ring
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- Edge Coupler EME Example Issue
- How to measure transmission coefficients on a given plane .
-
1216
-
543
-
523
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.