


{"id":408856,"date":"2025-02-07T17:12:07","date_gmt":"2025-02-07T17:12:07","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/thermal-modeling-a-3u-cube-satellite-in-orbit-ansys-mechanical\/"},"modified":"2025-02-09T02:06:54","modified_gmt":"2025-02-09T02:06:54","slug":"thermal-modeling-a-3u-cube-satellite-in-orbit-ansys-mechanical","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/thermal-modeling-a-3u-cube-satellite-in-orbit-ansys-mechanical\/","title":{"rendered":"Thermal Modeling a 3U Cube Satellite in Orbit (Ansys Mechanical)"},"content":{"rendered":"<p>&lt;p&gt;I am attempting to mimmic the environment experienced by a cube satellite in orbit that is prescribed some roll rate about its z-axis. I want to estimate the thermal load it will be subjected to during this CW roll manuever, to do this I have begun by writing a APDL command script, however, I am new to this and Ansys in general so I am dealing within some difficulties. Here is my code before I begin explaining what is going wrong:&lt;\/p&gt;&lt;p&gt;! Setting up the time step for the solver&lt;br&gt;*SET,time_step,20&lt;br&gt;*AFUN,DEG&lt;\/p&gt;&lt;p&gt;&lt;br&gt;*DO,i,0,9,1&lt;br&gt;&nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; *SET,time,(i)*time_step ! Time Step&lt;br&gt;&nbsp; &nbsp; TIME,time&lt;br&gt;&nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; *SET,angle,1*time ! Rotation at this time (degrees)&lt;br&gt;&nbsp; &nbsp; *SET,angle,MOD(angle,360)&lt;br&gt;&nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; *SET,flux_1,1361*cos(angle)&lt;br&gt;&nbsp; &nbsp; *SET,flux_2,1361*cos(90-angle)&lt;br&gt;&nbsp; &nbsp; *SET,flux_3,1361*cos(180-angle)&lt;br&gt;&nbsp; &nbsp; *SET,flux_4,1361*cos(270-angle)&lt;\/p&gt;&lt;p&gt;&nbsp; &nbsp; ! Debugging angles and heat fluxes&lt;br&gt;&nbsp; &nbsp; *VWRITE, angle, time, flux_1, flux_2, flux_3, flux_4&lt;br&gt;&nbsp; &nbsp; (F10.4, 5F10.4)&lt;\/p&gt;&lt;p&gt;&nbsp; &nbsp; ! Apply the flux to the selected surface(s)&lt;br&gt;&nbsp; &nbsp; *IF, angle, GE, 0, AND, angle, LT, 90, THEN&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; *VWRITE, &#8216;Face1&#8217;, angle&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; (A20, F10.4)&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face1&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_1&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face2&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_2&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; *ELSEIF, angle, GE, 90, AND, angle, LT, 180, THEN&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; *VWRITE, &#8216;Face2&#8217;, angle&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; (A20, F10.4)&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face2&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_2&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face3&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_3&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;\/p&gt;&lt;p&gt;&nbsp; &nbsp; *ELSEIF, angle, GE, 180, AND, angle, LT, 270, THEN&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; *VWRITE, &#8216;Face3&#8217;, angle&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; (A20, F10.4)&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face3&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_3&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face4&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_4&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;\/p&gt;&lt;p&gt;&nbsp; &nbsp; *ELSEIF, angle, GE, 270, THEN&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; *VWRITE, &#8216;Face4&#8217;, angle&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; (A20, F10.4)&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face4&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_4&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; cmsel,s,Face1&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; sf,all,hflux,flux_1&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; ALLSEL&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;br&gt;&nbsp; &nbsp; *ENDIF&lt;br&gt;&nbsp; &nbsp;&nbsp;&lt;\/p&gt;&lt;p&gt;*ENDDO&lt;\/p&gt;&lt;p&gt;ALLSEL&lt;br&gt;SAVE&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;I am dealing with applying the heat fluxes to the major faces of a 3U cube satellite. Outside of the script I have defined the four faces as named selections, Face1-Face4, so that the heat flux would traverse around the cube satellite in a ccw manner as the &#8216;angle&#8217; value satisfies the If\/Elseif conditions. However, the flux seems to only be applied to the last condition that is satisfied. For instance, the image below is the result of this code where you can see that the flux was only applied to the face at 180 degrees (the final condition satisfied).&nbsp;&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/02\/07-02-2025-1738946684-mceclip0.png\" \/>&lt;\/p&gt;&lt;p&gt;The initial face (@ angle =0) was the X-out face. When running the animation, the initial face does not appear to be heated up at all. Does anyone have any input? Is there a way I can edit the code I have already, or is there an entirely seperate function within this program that allows me to model this case.&nbsp;&lt;\/p&gt;&lt;p&gt;An extra note is that Ansys Mechanical is all I have access to right now. Thank you in advance for any efforts!&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-408856","topic","type-topic","status-answered","hentry","topic-tag-3DTransientThermal-1","topic-tag-aerospace-engineering-1","topic-tag-ansys-mechanical-apdl","topic-tag-thermal-analysis"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27796"],"_bbp_topic_id":["408856"],"_bbp_subscription":["512546","512709","88"],"_bbp_author_ip":["155.31.92.85"],"_bbp_last_reply_id":["409027"],"_bbp_last_active_id":["409027"],"_bbp_last_active_time":["2025-02-10 10:36:14"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["1"],"_bbp_voice_count":["1"],"_btv_view_count":["244"],"_bbp_topic_status":["answered"],"_bbp_engagement":["512546"]},"test":"salazj27my-erau-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/408856","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":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/408856\/revisions"}],"predecessor-version":[{"id":408946,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/408856\/revisions\/408946"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=408856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}