


{"id":282585,"date":"2023-05-05T14:32:10","date_gmt":"2023-05-05T14:32:10","guid":{"rendered":"\/forum\/forums\/topic\/change-jobname-of-a-harmonic-analysis-which-is-inside-a-modal-analysis-with-apdl\/"},"modified":"2023-05-05T14:36:30","modified_gmt":"2023-05-05T14:36:30","slug":"change-jobname-of-a-harmonic-analysis-which-is-inside-a-modal-analysis-with-apdl","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/change-jobname-of-a-harmonic-analysis-which-is-inside-a-modal-analysis-with-apdl\/","title":{"rendered":"Change jobname of a harmonic analysis which is inside a modal analysis with APDL"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I built a modal analysis in ANSYS workbench with an APDL command inside the Solution branch that runs a harmonic analysis, so the harmonic files (rst, mode, full, etc..) are written inside the modal analysis directory.<\/p>\n<p>To separate files generated by both analysis (modal and harmonic), I want to name files generated by the harmonic apdl command with something different than the actuel jobname of the modal analysis (the default name is &#8220;file&#8221;, so for example i want to rename as &#8220;fileh&#8221;, h for &#8220;harmonic&#8221;).<\/p>\n<p>Here is my APDL command (which is inside the &#8220;Solution&#8221; branch of my modal analysis) :<\/p>\n<p>RESUME ! load the .db file&nbsp;<\/p>\n<p>\/com,*********** Defining Loadings ***********<br \/>\/com,*********** Create Base Excitation**********<\/p>\n<p>*DIM,_loadvari6528z,TABLE,1,1,1,TIME<br \/>*TAXIS,_loadvari6528z(1),1,1.<br \/>_loadvari6528z(1,1,1) = magnitude<\/p>\n<p>*DIM,_loadvari6528zi,TABLE,1,1,1,TIME<br \/>*TAXIS,_loadvari6528zi(1),1,1.<br \/>_loadvari6528zi(1,1,1) = phase<\/p>\n<p>FINISH<\/p>\n<p>\/GOPR<\/p>\n<p>\/SOLU<\/p>\n<p>ANTYPE, MODAL, RESTART &nbsp; &nbsp;! restarting the modal analysis<br \/>MODCONT, ON, ON ! enforced motion turned on<\/p>\n<p>\/NOPR<\/p>\n<p>\/SOLU<\/p>\n<p>\/COM,*********** Defining Base Excitation ***********<\/p>\n<p>[Selection of my base excitation]<\/p>\n<p>D,all,uz,1<\/p>\n<p>ALLSEL,all<br \/>SOLVE<br \/>FINISH<\/p>\n<p>\/com,*********** Performing MSUP Harmonic Solve ***********<br \/>\/SOLU<\/p>\n<p>ANTYPE, HARM<\/p>\n<p>HROPT, MSUP, , , YES ! I want to get the mcf file of the harmonic analysis<br \/>[Settings for my harmonic analysis]<\/p>\n<p>\/com,*********** Applying Base Excitation(s) ***********<\/p>\n<p>DVAL,1,acc,%_loadvari6528z%,%_loadvari6528zi%<\/p>\n<p>EXPASS,off<\/p>\n<p>SOLVE<br \/>FINISH<\/p>\n<p>\/EXIT<\/p>\n<p>I don&#8217;t know where to put my &#8220;FILNAME&#8221; command, because if I put it on the session level, it says &#8220;fileh.mode and fileh.full doesn&#8217;t exist&#8221;, as if &#8220;fileh&#8221; was my modal analysis jobname&#8230;<\/p>\n<p>Do you have any idea of how changing the harmonic files names ?<\/p>\n<p>Thank you,<\/p>\n<p>Adrien<\/p>\n","protected":false},"template":"","class_list":["post-282585","topic","type-topic","status-closed","hentry","topic-tag-ansys-apdl","topic-tag-ansys-mapdl-1","topic-tag-ansys-mechanical-apdl","topic-tag-apdl","topic-tag-apdl-command","topic-tag-harmonic","topic-tag-harmonicmodalanalysis-1","topic-tag-modal-analysis","topic-tag-mode-superposition"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["284164","23687"],"_bbp_author_ip":["23.192.164.14"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1301"],"_edit_lock":["1683297263:217090"],"_bbp_likes_count":["1"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["282585"],"_bbp_forum_id":["27791"],"_bbp_engagement":["23687","284164"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["283030"],"_bbp_last_active_id":["283030"],"_bbp_last_active_time":["2023-05-09 11:52:03"]},"test":"adrien-vetsafrangroup-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/282585","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\/282585\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=282585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}