


{"id":291469,"date":"2023-07-04T12:58:39","date_gmt":"2023-07-04T12:58:39","guid":{"rendered":"\/forum\/forums\/topic\/questions-about-user-custom-material-plugins\/"},"modified":"2023-07-04T12:58:39","modified_gmt":"2023-07-04T12:58:39","slug":"questions-about-user-custom-material-plugins","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/questions-about-user-custom-material-plugins\/","title":{"rendered":"Questions about user custom material plugins"},"content":{"rendered":"<div>Before referring to the header file (StepIndex. h) and (stepIndex. cpp) of the official stepindex material plug-in, I compiled a dielectric material with dielectric constant change over time , but recently I need to change the relative permeability\uff08not over time\uff09 on this basis. Using the original material header file can not achieve the result I want.<\/div>\n<div>At present, it seemed that the problem is about the class in the header file, I wonder if there is an official person who can contact to discuss how to deal with this problem, or is Lumerical not able to implement this method?<\/div>\n<div>&nbsp;<\/div>\n<div>The picture here always reminds me that it is not available, and I do not know how to solve it, but I can only attach a description of the two types of code.<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>class MaterialPluginFactory : public IMaterialPluginFactory<\/div>\n<div>{<\/div>\n<div>&nbsp; &nbsp; IMaterialPlugin* createInstance(){return new T(); }<\/div>\n<div>&nbsp; &nbsp; void destroyInstance(IMaterialPlugin* i){delete i; }<\/div>\n<div>&nbsp; &nbsp; IMagneticMaterialPlugin* toMagneticMaterialPlugin(IMaterialPlugin* p){return&nbsp; dynamic_cast&lt;IMagneticMaterialPlugin*&gt;(p); }<\/div>\n<div>};<\/div>\n","protected":false},"template":"","class_list":["post-291469","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["263533","2592"],"_bbp_author_ip":["23.217.200.71"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["148"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["291469"],"_bbp_forum_id":["27833"],"_bbp_engagement":["2592","263533"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["291554"],"_bbp_last_active_id":["291554"],"_bbp_last_active_time":["2023-07-05 01:48:17"]},"test":"1564147592qq-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/291469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/291469\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=291469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}