


{"id":314791,"date":"2023-11-03T15:33:55","date_gmt":"2023-11-03T15:33:55","guid":{"rendered":"\/forum\/forums\/topic\/how-to-select-elements-in-elliptical-shape-in-a-cylinder-using-ansys-apdl\/"},"modified":"2023-11-06T12:54:04","modified_gmt":"2023-11-06T12:54:04","slug":"how-to-select-elements-in-elliptical-shape-in-a-cylinder-using-ansys-apdl","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-select-elements-in-elliptical-shape-in-a-cylinder-using-ansys-apdl\/","title":{"rendered":"how to select elements in elliptical shape in a cylinder using ansys apdl?"},"content":{"rendered":"<p>Dear all,<\/p>\n<p>I am working on damage detection on a composite cylinder. the idea is to insert damage with an elliptical shape in a cylinder in a different location and use the buckling response as a damage indicator that later will be inserted into a CNN-based algorithm for damage detection. I have modeled the cylinder and now want to insert the elliptical shape damage (which is selecting elements in a defined elliptical shape and assigning them a low rigidity). unfortunately, I didn&#8217;t succeed till now.<\/p>\n<p>Any hints or ideas are welcome<br \/>Ps: the code I did is below<\/p>\n<p>FINISH<\/p>\n<p>FINISH<\/p>\n<p>\/CLEAR, NOSTART ! NOSTART avoids reading again START.ANS<br \/>\/CWD,&#8217;D:\\Damage_Detection_CNN\\NewLastCode&#8217;<br \/>\/RGB,INDEX,100,100,100,0<br \/>\/RGB,INDEX,0,0,0,15<br \/>\/PREP7<br \/>\/TRIAD,LBOT<br \/>\/VIEW,1,1,1,1<br \/>\/ANGLE,1<br \/>\/VUP,,Z<br \/>\/UNITS,SI<br \/>\/ESHAPE,0<br \/>*AFUN,DEG ! Use degrees for input and output of parameter ANGular functions<br \/>DmageON = 1 ! 1: Damage is activated<br \/>! 0: Damage is Desactivated<br \/>C*** Input data<br \/>C*** RUN<\/p>\n<p>*SET, PI, 3.14159265359<\/p>\n<p>! Ler variaveis externas<br \/>PARRES, change, variaveis.txt<\/p>\n<p>Dc= 0.05 ! [m] Diameter of cylinder<br \/>Lc= 0.3 ! [m] Length of the cylinder<br \/>Th= 0.00012 ! [m] Wall thickness<br \/>ElSiz = 2e-3 ! [mm] Element Size<\/p>\n<p>C*** Material proprties ************************************<\/p>\n<p>*SET,N_camadas,10<br \/>*SET,ANG1,45.0000<br \/>*SET,ANG2,0.0000<br \/>*SET,ANG3,-45.0000<br \/>*SET,ANG4,0.0000<br \/>*SET,ANG5,45.0000<br \/>*SET,ANG6,45.0000<br \/>*SET,ANG7,0.0000<br \/>*SET,ANG8,-45.0000<br \/>*SET,ANG9,0.0000<br \/>*SET,ANG10,45.0000<\/p>\n<p>*SET,E1,101860000000.0000<br \/>*SET,E2,3410000000.0000<br \/>*SET,E3,3410000000.0000<br \/>*SET,v12,0.2900<br \/>*SET,v23,0.2900<br \/>*SET,v13,0.2900<br \/>*SET,G12,7560000000.0000<br \/>*SET,G23,1321705426.3566<br \/>*SET,G13,7560000000.0000<br \/>*SET,rho,1510.0000<br \/>*SET,E_Layer,Th<\/p>\n<p>C*** Force ************************************<br \/>*SET,Fcomp,-1<\/p>\n<p>*SET,RedictioRatio,2000<\/p>\n<p>C*** Failure Criteria ************************************<br \/>FC,1,S,XTEN,1363.49e6<br \/>FC,1,S,YTEN,5.86e6<br \/>FC,1,S,ZTEN,5.86e6<br \/>FC,1,S,XCMP,-572.27e6<br \/>FC,1,S,YCMP,-102e6<br \/>FC,1,S,ZCMP,-102e6<br \/>FC,1,S,XY,200.61e6<br \/>FC,1,S,YZ,200.61e6<br \/>FC,1,S,XZ,200.61e6<br \/>FC,1,S,XYCP,-1<br \/>FC,1,S,YZCP,-1<br \/>FC,1,S,XZCP,-1<br \/>FC,1,EPEL,XTEN,<br \/>FC,1,EPEL,YTEN,<br \/>FC,1,EPEL,ZTEN,<br \/>FC,1,EPEL,XCMP,<br \/>FC,1,EPEL,YCMP,<br \/>FC,1,EPEL,ZCMP,<br \/>FC,1,EPEL,XY,<br \/>FC,1,EPEL,YZ,<br \/>FC,1,EPEL,XZ,<\/p>\n<p>FC,2,S,XTEN,1363.49e6<br \/>FC,2,S,YTEN,5.86e6<br \/>FC,2,S,ZTEN,5.86e6<br \/>FC,2,S,XCMP,-572.27e6<br \/>FC,2,S,YCMP,-102e6<br \/>FC,2,S,ZCMP,-102e6<br \/>FC,2,S,XY,200.61e6<br \/>FC,2,S,YZ,200.61e6<br \/>FC,2,S,XZ,200.61e6<br \/>FC,2,S,XYCP,-1<br \/>FC,2,S,YZCP,-1<br \/>FC,2,S,XZCP,-1<br \/>FC,2,EPEL,XTEN,<br \/>FC,2,EPEL,YTEN,<br \/>FC,2,EPEL,ZTEN,<br \/>FC,2,EPEL,XCMP,<br \/>FC,2,EPEL,YCMP,<br \/>FC,2,EPEL,ZCMP,<br \/>FC,2,EPEL,XY,<br \/>FC,2,EPEL,YZ,<br \/>FC,2,EPEL,XZ,<\/p>\n<p>C*** Assigne Material Proprties ************************************<\/p>\n<p>MP,EX,1,E1<br \/>MP,EY,1,E2<br \/>MP,EZ,1,E3<br \/>MP,PRXY,1,V12<br \/>MP,PRYZ,1,V23<br \/>MP,PRXZ,1,V13<br \/>MP,GXY,1,G12<br \/>MP,GYZ,1,G23<br \/>MP,GXZ,1,G13<br \/>MP,DENS,1,rho<\/p>\n<p>E11=RedictionRatio*E1<br \/>E22=RedictionRatio*E2<br \/>E33=RedictionRatio*E3<br \/>G122=RedictionRatio*G12<br \/>G232=RedictionRatio*G23<br \/>G132=RedictionRatio*G13<\/p>\n<p>MP,EX,2,E11<br \/>MP,EY,2,E22<br \/>MP,EZ,2,E33<br \/>MP,PRXY,2,V12<br \/>MP,PRYZ,2,V12<br \/>MP,PRXZ,2,V12<br \/>MP,GXY,2,G122<br \/>MP,GYZ,2,G232<br \/>MP,GXZ,2,G132<br \/>MP,DENS,2,RedictionRatio*2100<\/p>\n<p>C*** Material Composite ************************************<\/p>\n<p>ET,1,SHELL281<br \/>SECT,1,SHELL,,<br \/>SECDATA, E_Layer,1,ANG1,3<br \/>SECDATA, E_Layer,1,ANG2,3<br \/>SECDATA, E_Layer,1,ANG3,3<br \/>SECDATA, E_Layer,1,ANG4,3<br \/>SECDATA, E_Layer,1,ANG5,3<br \/>SECDATA, E_Layer,1,ANG6,3<br \/>SECDATA, E_Layer,1,ANG7,3<br \/>SECDATA, E_Layer,1,ANG8,3<br \/>SECDATA, E_Layer,1,ANG9,3<br \/>SECDATA, E_Layer,1,ANG10,3<br \/>secoffset,MID<br \/>seccontrol,,,, , , ,<br \/>SECPLOT, 1,,,<\/p>\n<p>ET,2,SHELL281<br \/>SECT,2,SHELL,,<br \/>SECDATA, E_Layer,2,ANG1,3<br \/>SECDATA, E_Layer,2,ANG2,3<br \/>SECDATA, E_Layer,2,ANG3,3<br \/>SECDATA, E_Layer,2,ANG4,3<br \/>SECDATA, E_Layer,2,ANG5,3<br \/>SECDATA, E_Layer,2,ANG6,3<br \/>SECDATA, E_Layer,2,ANG7,3<br \/>SECDATA, E_Layer,2,ANG8,3<br \/>SECDATA, E_Layer,2,ANG9,3<br \/>SECDATA, E_Layer,2,ANG10,3<br \/>secoffset,MID<br \/>seccontrol,,,, , , ,<\/p>\n<p>C*** Cylinder Geomtry ************************************<\/p>\n<p>K,1,0.,0.,0. ! CENT Point<br \/>K,2,0.,0.,Lc ! AXIS Point<br \/>K,3,0.,Dc\/2,0. ! ZERO Point<br \/>CIRCLE,1,Dc\/2,2,3,360 ! CIRCLE, PCENT, RAD, PAXIS, PZERO, ARC, NSEG<br \/>L,1,2 ! Line for Path in following ADRAG &#8211;&gt; Line N.5 (4 Lines used for the CIRCLE)<br \/>ADRAG,ALL,,,,,,5<\/p>\n<p>C*** Meshing (Shells) ************************************<\/p>\n<p>ASEL,ALL<br \/>ESIZE,ElSiz<br \/>AMESH,ALL<\/p>\n<p>C*** Damage ************************************<\/p>\n<p>!pos_z = Lc\/3<br \/>!a = 0.02<br \/>!b = 0.01<br \/>!theta = 10<br \/>!r = 1<\/p>\n<p>*IF,DmageON,EQ,1,then<br \/>LOCAL,11,1,0,Dc\/2,pos_z,,,theta,r<br \/>CSYS, 11<br \/>ESEL, S, CENT, 0.01, 0.00001, b, , , , 0<br \/>!ESEL, S, CENT, Y, 0, (b\/(10*r)),,,,0<br \/>EMODIF,ALL,MAT,2,,,,,,<br \/>EMODIF,ALL,Type,2,,,,,<br \/>EMODIF,ALL,SECT,2,,,,,<br \/>ESEL,ALL<br \/>!CSYS,0<br \/>*EndIF<br \/>Allsel,all<br \/>Finish<\/p>\n<p>C*** Analysis ************************************<\/p>\n<p>\/SOL<br \/>Lsel,s,line,,1,4<br \/>DL,ALL, ,ALL,<br \/>Allsel,all<br \/>!! Analysis<br \/>ANTYPE,0<br \/>Lsel,s,line,,6<br \/>Lsel,a,line,,9<br \/>Lsel,a,line,,11<br \/>Lsel,a,line,,13<br \/>NSLL, S, 1<br \/>F,all,FZ,Fcomp<\/p>\n<p>Allsel,All<\/p>\n<p>PSTRES,1<br \/>SOLVE<br \/>FINISH<br \/>\/SOLUTION<br \/>ANTYPE,1<br \/>BUCOPT,LANB,20,0,0,CENTER<br \/>SOLVE<br \/>FINISH<\/p>\n<p>\/POST1<br \/>\/output,<br \/>\/output,&#8217;resultado&#8217;,txt<\/p>\n<p>SET,LIST<br \/>\/out<\/p>\n<p><a class=\"wp-colorbox-image cboxElement\" href=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/03-11-2023-1699025587-395412070_897693495218516_8268658110695226658_n.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/11\/03-11-2023-1699025587-395412070_897693495218516_8268658110695226658_n.png\" alt=\"\" width=\"438\" height=\"779\"><\/a><\/p>\n","protected":false},"template":"","class_list":["post-314791","topic","type-topic","status-closed","hentry","topic-tag-ansys-mechanical-apdl","topic-tag-cylinder","topic-tag-damage-1","topic-tag-material-damage"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["39239","20905"],"_bbp_author_ip":["23.206.193.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1270"],"_edit_lock":["1699274805:221391"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["314791"],"_bbp_forum_id":["27791"],"_bbp_engagement":["20905","39239"],"_bbp_voice_count":["2"],"_bbp_reply_count":["6"],"_bbp_last_reply_id":["315296"],"_bbp_last_active_id":["315296"],"_bbp_last_active_time":["2023-11-07 16:48:14"]},"test":"ikram-djabrouhouuniv-dbkm-dz"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/314791","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\/314791\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=314791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}