


{"id":308227,"date":"2023-09-24T10:25:11","date_gmt":"2023-09-24T10:25:11","guid":{"rendered":"\/forum\/forums\/topic\/capacitance-analysis-of-parallel-plate-capacitors-in-mapdl\/"},"modified":"2023-09-24T10:25:11","modified_gmt":"2023-09-24T10:25:11","slug":"capacitance-analysis-of-parallel-plate-capacitors-in-mapdl","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/capacitance-analysis-of-parallel-plate-capacitors-in-mapdl\/","title":{"rendered":"Capacitance analysis of parallel plate capacitors in MAPDL"},"content":{"rendered":"<p>Dear everyone<\/p>\n<p>Hi,The following script was created to determine the fringe capacitance of parallel plate electrodes in MAPDL.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<div>do,i,0,100,10 !\u5909\u6570\uff0c\u521d\u5024\uff0c\u7d42\u5024\uff0c\u5897\u5e45\u5ea6(\u30eb\u30fc\u30d7\u306e\u59cb\u307e\u308a)<\/div>\n<div>&nbsp;<\/div>\n<div>fini<\/div>\n<div>\/cle<\/div>\n<div>&nbsp;<\/div>\n<div>\/vie,1,1,1,1<\/div>\n<div>\/sys,del file*.png<\/div>\n<div>&nbsp;<\/div>\n<div>\/PREP7<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** Plate dimensions (um scale)<\/div>\n<div>eps0=8.854e-12 ! FREE SPACE PERMITTIVITY<\/div>\n<div>&nbsp;<\/div>\n<div>width = (100*1e-6) + (i*1e-6)<\/div>\n<div>height = 20*1e-6<\/div>\n<div>thickness = 3*1e-6<\/div>\n<div>separation = 10*1e-6<\/div>\n<div>&nbsp;<\/div>\n<div>d_dmn = 10*1e-6 ! DEPTH SURROUNDING DOMAIN EXTENDS BEYOND ELECTRODES<\/div>\n<div>d_inf = 5*1e-6 ! DEPTH OF INFINITE BOUNDARY ELEMENT MESH<\/div>\n<div>&nbsp;<\/div>\n<div>esz = 3*1e-6&nbsp; ! MESH SIZE<\/div>\n<div>&nbsp;<\/div>\n<div>V = 0.01 ! APPLIED VOLTAGE<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** Configured for electrostatic analysis of 3D 8-node elements<\/div>\n<div>ET,1,SOLID123<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** Define infinite element<\/div>\n<div>ET,2,111,2,1<\/div>\n<div>&nbsp;<\/div>\n<div>C*** Material properties (relative dielectric constant in vacuum)<\/div>\n<div>!MP,PERX,1,8.854e-12 ! THIS IS ABSOLUTE PERMITTIVITY IN MKS, WHICH WORKS OK, BUT&#8230;<\/div>\n<div>MP,PERX,1,1 ! WE GENERALLY USE RELATIVE PERMITTIVITY INSTEAD<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** Create your first plate<\/div>\n<div>BLOCK,0,width,0,height,0,-thickness<\/div>\n<div>cm,electrode1_a,area<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** Create second plate<\/div>\n<div>asel,none<\/div>\n<div>BLOCK,0,width,0,height,separation,separation+thickness<\/div>\n<div>cm,electrode2_a,area<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** SURROUNDING DOMAIN<\/div>\n<div>alls<\/div>\n<div>cm,scrap1_v,volu<\/div>\n<div>*get,xmin,kp,,mnloc,x<\/div>\n<div>*get,xmax,kp,,mxloc,x<\/div>\n<div>*get,ymin,kp,,mnloc,y<\/div>\n<div>*get,ymax,kp,,mxloc,y<\/div>\n<div>*get,zmin,kp,,mnloc,z<\/div>\n<div>*get,zmax,kp,,mxloc,z<\/div>\n<div>vsel,none<\/div>\n<div>bloc,xmin-d_dmn,xmax+d_dmn,ymin-d_dmn,ymax+d_dmn,zmin-d_dmn,zmax+d_dmn<\/div>\n<div>cm,scrap2_v,volu<\/div>\n<div>alls<\/div>\n<div>vsbv,scrap2_v,scrap1_v<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** MESH<\/div>\n<div>esiz,esz<\/div>\n<div>vmes,all<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** ELECTRODE VOLTAGE<\/div>\n<div>da,electrode1_a,volt<\/div>\n<div>da,electrode2_a,volt,V<\/div>\n<div>&nbsp;<\/div>\n<div>fini<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** SOLVE<\/div>\n<div>\/solu<\/div>\n<div>alls<\/div>\n<div>save<\/div>\n<div>solv<\/div>\n<div>fini<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>C*** POST PROCESS<\/div>\n<div>\/post1<\/div>\n<div>set ! READ RESULTS INTO MADL DATABASE<\/div>\n<div>&nbsp;<\/div>\n<div>etab,w,sene ! BASED ON ENERGY<\/div>\n<div>ssum<\/div>\n<div>*get,Wnet,ssum,,item,w<\/div>\n<div>C1 = 2*Wnet\/(V**2)<\/div>\n<div>&nbsp;<\/div>\n<div>nsel,s,d,volt ! BASED ON CHARGE &amp; VOLTAGE<\/div>\n<div>fsum<\/div>\n<div>*get,q,fsum,,item,chrg<\/div>\n<div>c2 = q\/v<\/div>\n<div>&nbsp;<\/div>\n<div>C_nominal=eps0*(height*width)\/separation ! NOMINAL FRINGE FREE VALUE<\/div>\n<div>&nbsp;<\/div>\n<div>\/tla,-0.35,0.90,Capacitance (ANSYS, energy) = %C1% Fd ! ANNOTATION<\/div>\n<div>\/tla,-0.35,0.85,Capacitance (ANSYS, Q\/V) = %C2% Fd<\/div>\n<div>\/tla,-0.35,0.80,Capacitance (nominal fringe-free) = %C_nominal% Fd<\/div>\n<div>&nbsp;<\/div>\n<div>alls ! CAPPED SECTION PLOTS<\/div>\n<div>wpro,,,90<\/div>\n<div>wpof,,,width\/2<\/div>\n<div>\/type,1,7<\/div>\n<div>\/cpl,1<\/div>\n<div>&nbsp;<\/div>\n<div>*enddo&nbsp; !\u6307\u5b9a\u306e\u5024\u3067\u7d42\u308f\u308a<\/div>\n<div>&nbsp;<\/div>\n<div>plns,volt<\/div>\n<div>\/sho,png $plns,volt $\/sho,close $\/wait,2<\/div>\n<div>plve,ef,,,,vect,,on<\/div>\n<div>\/sho,png $plve,ef,,,,vect,,on $\/sho,close $\/wait,2<\/div>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\n<div>\/eof<\/div>\n<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/div>\n<div>The capacitance of only the overlapping electrodes can be determined by a theoretical formula, but how should the capacitance be approached taking into account the electric field of the fringes?<\/div>\n<div>In this script, the do syntax is turned and parsed using the length of the electrode as a parameter.<\/div>\n<div>&nbsp;<\/div>\n<div>Best regards, and thank you.<\/div>\n<div>&nbsp;<\/div>\n<div>Takabayashi<\/div>\n<div>&nbsp;<\/div>\n","protected":false},"template":"","class_list":["post-308227","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["293540","50680"],"_bbp_author_ip":["96.7.74.191"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["376"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["308227"],"_bbp_forum_id":["27791"],"_bbp_engagement":["50680","293540"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["308484"],"_bbp_last_active_id":["308484"],"_bbp_last_active_time":["2023-09-25 20:17:34"]},"test":"22kmh06ms-dendai-ac-jp"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/308227","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\/308227\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=308227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}