


{"id":378051,"date":"2024-08-13T04:19:18","date_gmt":"2024-08-13T04:19:18","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/set-up-time-steps-more-efficiently\/"},"modified":"2024-08-13T04:19:18","modified_gmt":"2024-08-13T04:19:18","slug":"set-up-time-steps-more-efficiently","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/set-up-time-steps-more-efficiently\/","title":{"rendered":"Set up time steps more efficiently"},"content":{"rendered":"<p>Hi all, I&rsquo;m wondering if we can use APDL commands under &#8220;Analysis Settings&#8221; to automate the process of inputting data for each time step, instead of doing it manually. Would this be more efficient?<br \/><img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/08\/13-08-2024-1723522653-mceclip0.png\"><\/p>\n<p>This is my current script:<\/p>\n<div>! Define the temperature values for each cycle (2400 seconds cycle)<\/div>\n<div>*DIM,TEMP_ARRAY,ARRAY,5,1<\/div>\n<div>TEMP_ARRAY(1) = 0&nbsp; &nbsp;! Temperature at 0 seconds<\/div>\n<div>TEMP_ARRAY(2) = 0&nbsp; &nbsp;! Temperature at 600 seconds<\/div>\n<div>TEMP_ARRAY(3) = 125 ! Temperature at 1200 seconds<\/div>\n<div>TEMP_ARRAY(4) = 125 ! Temperature at 1800 seconds<\/div>\n<div>TEMP_ARRAY(5) = 0&nbsp; &nbsp;! Temperature at 2400 seconds<\/div>\n<div>&nbsp;<\/div>\n<div>! Loop over each of the 400 steps (100 cycles total)<\/div>\n<div>*DO,I,1,400<\/div>\n<div>&nbsp; &nbsp; ! Calculate the index in the temperature array (cycles every 5 steps)<\/div>\n<div>&nbsp; &nbsp; INDEX = MOD(I-1,5) + 1<\/div>\n<div>&nbsp; &nbsp;&nbsp;<\/div>\n<div>&nbsp; &nbsp; ! Apply the temperature at the current step<\/div>\n<div>&nbsp; &nbsp; ALLSEL,ALL<\/div>\n<div>&nbsp; &nbsp; SF,ALL,CONV,TEMP_ARRAY(INDEX)<\/div>\n<div>*ENDDO<\/div>\n<p>Since I have input some data via GUI, I am wondering whether APDL commands will overread what I have input manually. Any suggestions would be appreciated! Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-378051","topic","type-topic","status-publish","hentry","topic-tag-ansys-apdl","topic-tag-ansys-transient-thermal-2","topic-tag-data-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["67737","170445"],"_bbp_author_ip":["2610:148:2002:c000:3248:5755:4741:33c"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1000"],"_bbp_topic_status":["unanswered"],"_bbp_notification_enabled":["67737"],"_bbp_topic_id":["378051"],"_bbp_forum_id":["27791"],"_bbp_engagement":["67737","170445"],"_bbp_voice_count":["2"],"_bbp_reply_count":["10"],"_bbp_last_reply_id":["379748"],"_bbp_last_active_id":["379748"],"_bbp_last_active_time":["2024-08-22 03:34:53"]},"test":"e1c099fbda6d4964e4d58ceb90eb1e34fffc25aa"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/378051","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\/378051\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=378051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}