


{"id":360083,"date":"2024-04-02T16:09:03","date_gmt":"2024-04-02T16:09:03","guid":{"rendered":"\/forum\/forums\/reply\/360083\/"},"modified":"2024-04-02T16:09:03","modified_gmt":"2024-04-02T16:09:03","slug":"360083","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/360083\/","title":{"rendered":"Reply To: Negative stiffness in x-position between PM and steel stator"},"content":{"rendered":"<p>&lt;p&gt;I&#8217;m not sure this is exactly what you&#8217;re asking for, but I found this old MAPDL input file that uses two spring elements (COMBIN14 and COMBIN39) to posit nonlinear negative stiffness between two nodes (to mimic net magnetic force versus separation):&lt;\/p&gt;&lt;div&gt;fini&lt;\/div&gt;&lt;div&gt;\/cle&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;\/sys,del test_neg_K_05*.png&lt;\/div&gt;&lt;div&gt;\/fil,test_neg_K_05&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;\/pnu,node,1&lt;\/div&gt;&lt;div&gt;\/pnu,type,1&lt;\/div&gt;&lt;div&gt;\/tri,lbot&lt;\/div&gt;&lt;div&gt;\/esha,1&lt;\/div&gt;&lt;div&gt;\/ics,1,5&lt;\/div&gt;&lt;div&gt;\/pbc,u,1&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;C***********************************&lt;\/div&gt;&lt;div&gt;C*** MODEL&lt;\/div&gt;&lt;div&gt;C***********************************&lt;\/div&gt;&lt;div&gt;\/prep7&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;n,1,,1 ! NODES&lt;\/div&gt;&lt;div&gt;n,2&lt;\/div&gt;&lt;div&gt;n,3,,2&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;et,1,39,0,0,2 ! NONLINEAR SPRING (COMBIN39) ATTRIBUTES&lt;\/div&gt;&lt;div&gt;r,1, -0.5,10-1.25, -0.4,5-1.25, -0.3,3-1.25&lt;\/div&gt;&lt;div&gt;rmore, -0.2,2-1.25, -0.1,1.5-1.25, 0,1.25-1.25&lt;\/div&gt;&lt;div&gt;rmore,&nbsp; 0.1,1.10-1.25, 0.2,1.05-1.25, 0.3,1.03-1.25&lt;\/div&gt;&lt;div&gt;rmore,&nbsp; 0.4,1.02-1.25, 0.5,1.015-1.25&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;et,2,14,,,2 ! LINEAR SPRING (COMBIN14) ATTRIBUTES&lt;\/div&gt;&lt;div&gt;r,2,1.25\/50&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;type,1 ! SINGLE NONLINEAR COMBIN39 ELEMENT&lt;\/div&gt;&lt;div&gt;real,1&lt;\/div&gt;&lt;div&gt;e,2,1&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;type,2 ! SINGLE LINEAR COMBIN14 ELEMENT&lt;\/div&gt;&lt;div&gt;real,2&lt;\/div&gt;&lt;div&gt;e,3,2&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;d,1,uy ! BOUNDARY CONDITIONS&lt;\/div&gt;&lt;div&gt;d,3,uy,50&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;fini&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;\/solu ! SOLVE&lt;\/div&gt;&lt;div&gt;auto,off&lt;\/div&gt;&lt;div&gt;outr,all,all&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;nsub,1&lt;\/div&gt;&lt;div&gt;d,2,uy,-0.5&lt;\/div&gt;&lt;div&gt;solv&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;nsub,10&lt;\/div&gt;&lt;div&gt;d,2,uy,0.5&lt;\/div&gt;&lt;div&gt;solv&lt;\/div&gt;&lt;div&gt;fini&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;eplo&lt;\/div&gt;&lt;div&gt;\/sho,png $eplo $\/sho,close $\/wait,2&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;\/post26 ! VERIFY FORCE-DEFLECTION&lt;\/div&gt;&lt;div&gt;nsol,2,2,uy&lt;\/div&gt;&lt;div&gt;xvar,2&lt;\/div&gt;&lt;div&gt;rfor,3,2,fy&lt;\/div&gt;&lt;div&gt;\/axl,x,Node 2 UY Displacement&lt;\/div&gt;&lt;div&gt;\/axl,y,Reaction Force @ Node 2&lt;\/div&gt;&lt;div&gt;!\/yra,0,10&lt;\/div&gt;&lt;div&gt;plva,3&lt;\/div&gt;&lt;div&gt;\/sho,png $plva,3 $\/sho,close $\/wait,2&lt;\/div&gt;&lt;p&gt;Note that as node 2 at the bottom of the two element model is moved upward, the reaction force becomes increasingly negative (the springs are pulling upward on node 2 with increasing force as node 2 gets closer to node 3).&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/04\/02-04-2024-1712073381-mceclip0.png\" \/>&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2024\/04\/02-04-2024-1712073416-mceclip1.png\" \/>&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;In Mechanical, you would have to include commands like these in a command object, maybe written in such a way that the springs are attached to remote point nodes scoped to surfaces.&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&#8211;Bill&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-360083","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/360083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/360083\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=360083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}