


{"id":167649,"date":"2022-03-23T14:20:05","date_gmt":"2022-03-23T14:20:05","guid":{"rendered":"\/forum\/forums\/topic\/problem-on-succesive-simulation-runs-and-dpm-file-naming-with-a-journal-file\/"},"modified":"2022-03-24T16:07:26","modified_gmt":"2022-03-24T16:07:26","slug":"problem-on-succesive-simulation-runs-and-dpm-file-naming-with-a-journal-file","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/problem-on-succesive-simulation-runs-and-dpm-file-naming-with-a-journal-file\/","title":{"rendered":"Problem on succesive simulation runs and dpm file naming with a journal file"},"content":{"rendered":"<div class=\"Item-Body\">\n<div class=\"Message userContent\">\n<p>I try to run a transient particle simulation and sample at the outlet several times with a journal file as given below in Fluent. My final aim is to have several sample files (.dpm) at the end. To this end, I used the do-loop but I couldn&#039;t make it work. However, without using the do function, the code works fine for one simulation run. <\/p>\n<p>I have two questions: <\/p>\n<p>1) How can I make this code work? When I run this code, first I get the warning &quot;Warning: An error or interrupt occurred while reading the journal file. Some commands may not have been completed.&quot; on Fluent GUI and then &quot;Error: eof inside list, Error Object: ()&quot; in the console.<\/p>\n<p>2) I want to change the dpm sample file which is generated automatically by Fluent, when I run the &quot;\/report\/dpm-sample&quot; command in the last row. How can I change the file name for each trial in the loop below? For example: outlet_1.dpm, outlet_2.dpm etc.,.. I looked through the TUI command list, but the commands to write a file are related with data case files.<\/p>\n<p>Thank you in advance,<\/p>\n<p>Journal File:<\/p>\n<p>(define numbOfIterations 2); Define number of max. iterations per time step<\/p>\n<p>(define delta_t 0.06); Define time step size [s]<\/p>\n<p>(define no_t_s 2); Number of time steps<\/p>\n<p>(do ((x1 1 (+ x1 1))) ((&gt; x1 3)) ; define count &#8211; variable , start value and increment, define stop condition<\/p>\n<p> \/solve\/initialize\/initialize-flow y y ; do the Initialization, y y to discard the old data and clear history<\/p>\n<p> \/report\/dpm-sample injection-0 injection-1 () outlet () () n n ; start sampling<\/p>\n<p> \/solve\/set\/time-step delta_t ; set the time step<\/p>\n<p> \/solve\/dual-time-iterate no_t_s numbOfIterations; Perform unsteady iterations for a specified number of time steps<\/p>\n<p> \/report\/dpm-sample );<\/p>\n","protected":false},"template":"","class_list":["post-167649","topic","type-topic","status-closed","hentry","topic-tag-dpm","topic-tag-fluent","topic-tag-journal","topic-tag-journal-file"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_btv_view_count":["562"],"_bbp_likes_count":["0"],"_bbp_subscription":["247112"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["167649"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","247112"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["209372"],"_bbp_last_active_id":["209372"],"_bbp_last_active_time":["2022-03-24 16:07:26"]},"test":"fatihgulec66gmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/167649","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\/167649\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=167649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}