


{"id":377874,"date":"2024-08-11T03:44:19","date_gmt":"2024-08-11T03:44:19","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/sbatch-fluent\/"},"modified":"2024-08-11T03:44:19","modified_gmt":"2024-08-11T03:44:19","slug":"sbatch-fluent","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/sbatch-fluent\/","title":{"rendered":"Sbatch fluent"},"content":{"rendered":"<p>Hello,&nbsp;<br \/>I am trying to run fluent by commands.&nbsp;<br \/>Using the interactive window is something like:<\/p>\n<div>\n<div>srun fluent -r23.2.0 2ddp -g -t20 -case &lt;\/case-directory\/case-name.cas.h5 -data&gt;<\/div>\n<div>\/solve\/dual-time-iterate &lt;time-steps&gt; &lt;Max number of iterations&gt;<\/div>\n<div>\/file\/write-case-data &lt;\/case-directory\/case-newname.cas.h5<\/div>\n<div>\/exit\/close-fluent<\/div>\n<div>&nbsp;<\/div>\n<div>This works really good, then i can read the results and everything works well.<\/div>\n<div>But trying the same commands through an sbatch file shows me the error after running the case and the data, considering the commands like a directory.&nbsp;<br \/>The sbatch looks something like this because is how the cluster works.&nbsp;<\/p>\n<\/div>\n<div>\n<div>#!\/bin\/bash<\/div>\n<div>#&#8212;&#8212;&#8212;&#8212;&#8212;Script SBATCH &#8212;&#8212;&#8212;&#8212;&#8212;-<\/div>\n<div>#SBATCH -J Simulacion<\/div>\n<div>#SBATCH -p general<\/div>\n<div>#SBATCH -n 1<\/div>\n<div>#SBATCH -c 20<\/div>\n<div>#SBATCH &#8211;mem-per-cpu=1000<\/div>\n<div>#SBATCH &#8211;mail-user=mail@mail.com<\/div>\n<div>#SBATCH &#8211;mail-type=ALL<\/div>\n<div>#SBATCH -o Simulacion152040_%j.err.out<\/div>\n<div>#SBATCH -e Simulacion152040_%j.err.out<\/div>\n<p><\/p>\n<div>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Toolchain&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div>ml purge<\/div>\n<div>ml intel\/2022.00<\/div>\n<div># &#8212;&#8212;&#8212;&#8212;&#8212;-Modulos&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/div>\n<div>ml &nbsp;ANSYS\/2023R2 &nbsp;<\/div>\n<div># &#8212;&#8212;&#8212;&#8212;&#8212;-Comando&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/div>\n<div>export OMP_PLACES=cores<\/div>\n<div>&nbsp;<\/div>\n<div>srun fluent -r23.2.0 2ddp -g -t20 -case &lt;\/case-directory\/case-name.cas.h5 -data&gt;<\/div>\n<div>\/solve\/dual-time-iterate &lt;time-steps&gt; &lt;Max number of iterations&gt;<\/div>\n<div>\/file\/write-case-data &lt;\/case-directory\/case-newname.cas.h5<\/div>\n<div>\/exit\/close-fluent<\/div>\n<div>&nbsp;<\/div>\n<div>Running this, i got:&nbsp;<\/p>\n<\/div>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/08\/11-08-2024-1723347765-mceclip0.png\"><\/div>\n<div>&nbsp;<\/div>\n<div>Is there a way from fluent to do all this properly?&nbsp;<\/div>\n<div>Thanks in advance<\/div>\n","protected":false},"template":"","class_list":["post-377874","topic","type-topic","status-publish","hentry","topic-tag-fluent-ansys-1","topic-tag-fluent-cfd-ansys-1","topic-tag-command","topic-tag-command-line","topic-tag-fluent","topic-tag-text-commands-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["337635","199"],"_bbp_author_ip":["200.89.69.147"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["197"],"_bbp_topic_status":["unanswered"],"_bbp_notification_enabled":["337635","337635","337635","337635"],"_bbp_topic_id":["377874"],"_bbp_forum_id":["27796"],"_bbp_engagement":["199","337635"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["378018"],"_bbp_last_active_id":["378018"],"_bbp_last_active_time":["2024-08-12 19:30:33"]},"test":"blanca-cerdaug-uchile-cl"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/377874","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\/377874\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=377874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}