


{"id":53212,"date":"2021-03-11T16:21:48","date_gmt":"2021-03-11T16:21:48","guid":{"rendered":"\/forum\/forums\/topic\/fluent-unsteady-dpm-injection-file-formatting\/"},"modified":"2021-03-11T16:21:48","modified_gmt":"2021-03-11T16:21:48","slug":"fluent-unsteady-dpm-injection-file-formatting","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/fluent-unsteady-dpm-injection-file-formatting\/","title":{"rendered":"Fluent unsteady DPM injection file formatting"},"content":{"rendered":"<p>Hello!nI am trying to get an unsteady DPM simulation running using a .inj file and am running into errors regarding the injection file formatting. In the documentation (2020-R2) the following is said of unsteady .inj formats:nnThe unsteady file must have a two-line header of the following format:n(z=4 13)n  ( x y z u v w diameter t parcel-mass mass n-in-parcel time flow-time  name)nIn the first line, you can replace z=4 with an arbitrary label that must not contain any white-space characters. You must not change the rest of the header, but you can add any number of white space characters between its elements. The header is automatically written by ANSYS Fluent into every sampling file for unsteady particle tracking.nThe unsteady file for a file injection has the following form:nCode:n(( x y z u v w diameter temperature parcel-mass mass n-in-parcel  time flow-time) name)n nSo I have tried to replicate this with the following (showing only two injections, for the sake of example):n(z=4 13)n( x y z u v w diameter t parcel-mass mass n-in-parcel time flow-time name)n((2.958076e+00 -8.214376e-01 8.320422e-01 -6.094111e-02 7.928544e-02  0.000000e+00 1.000000e-02 2.930000e+02 1.000000e-01 1.000000e-01  1.000000e+00 0.000000e+00 0.000000e+00) injection0:0 )n((2.816757e+00 -1.182306e+00 1.249779e+00 -4.697874e-02 8.827796e-02  0.000000e+00 1.000000e-02 2.930000e+02 1.000000e-01 1.000000e-01  1.000000e+00 0.000000e+00 0.000000e+00) injection0:1 )nThis is giving me the following error:nError: CAR: invalid argument [1]: wrong type [not a pair]nError Object: z=4nSo it seems to be falling down immediately on the header formatting with a type error, which I am surprised by as I think the header is just a copy\/paste job in all cases?nTo try and see where I was going wrong I manually created some dummy injection points and wrote the resulting .inj file out, getting this (some bits omitted):nCode:n((injection-1 ((type . inert) (injection-type . group) (cone-type .  solid-cone) (numpts . 5) (dpm-fname .  ) (surfaces . #f) (boundary  -1) (stochastic-on . #f) (random-eddy-on . #f) (ntries . 1)  (time-scale-constant . 0.15) (cloud-on . #f) (cloud-min-dia . 0.)  (cloud-max-dia . 100000.) n&#8230;n(x-pos2 . 3.2) (y-pos . -1.75) (y-pos2 . -1.75) (z-pos . 0.5) (z-pos2 .  0.5) (ff-center-x . 0) (ff-center-y . 0) (ff-center-z . 0)  (ff-virtual-origin-x . 0) (ff-virtual-origin-y . 0) (ff-virtual-origin-z  . 1) (ff-normal-x . 1) (ff-normal-y . 0) (ff-normal-z . 0) (x-vel . 0)  (x-vel2 . 0.) (y-vel . 0.5) (y-vel2 . 0.5) (z-vel . 0) (z-vel2 . 0.)  (x-ang-vel . 0) (x-ang-vel2 . 0.) (y-ang-vel . 0) (y-ang-vel2 . 0.)  (z-ang-vel . 0) (z-ang-vel2 . 0.) (atomizer-x-axis . 0) (atomizer-y-axis  . 0) (atomizer-z-axis . 1) (diameter . 1e-06) (diameter2 . 1e-06)  (temperature . 300) (temperature2 . 300.) (flow-rate .  9.999999999999999e-21) (flow-rate2 . 9.999999999999999e-21)  (unsteady-start . 0) (unsteady-stop . 0)  (start-at-flow-time-in-unsteady-inj-file . 0)  (interval-to-repeat-in-unsteady-inj-file . 0) (unsteady-ca-start . 0)  (unsteady-ca-stop . 0) (vapor-pressure . 10000) (inner-diameter . 0.001)  (outer-diameter . 0.005) (half-angle . 0.34906585) (plain-length .  0.001) (plain-corner-size . 1e-05) (plain-const-a . 4.9)  (pswirl-inj-press . 1000000) (airbl-rel-vel . 100) (effer-quality .  0.08500000000000001) (effer-t-sat . 373) (ff-orifice-width . 0.001)  (phi-start . 0) (phi-stop . 6.283185310001) (sheet-const . 12)  (lig-const . 0.5) (effer-const . 0.3300000000000001)  (effer-half-angle-max . 0.261799388) (ff-sheet-const . 3)  (atomizer-disp-angle . 6) (x-axis . 0) (y-axis . 0) (z-axis . 1)  (vel-mag . 0) (ang-vel-mag . 0) (cone-angle . 0) (inner-radius . 0)  (radius . 0) (swirl-frac . 0) (total-flow-rate . 9.999999999999999e-21)  (total-mass . 9.999999999999999e-21) (rr-min . 1e-06) (rr-max . 0.0001)  (rr-mean . 1e-05) (rr-spread . 3.5) (rr-numdia . 10) (x-posr . 0)  (y-posr . 0) (z-posr . 0) (x-posu . 0) (y-posu . 0) (z-posu . 0))))nAm I just misunderstanding the formatting as described in the documentation? Should there be periods between entries to adhere to being of pair type?nAny insight appreciated!n<\/p>\n","protected":false},"template":"","class_list":["post-53212","topic","type-topic","status-closed","hentry","topic-tag-dpm","topic-tag-fluent","topic-tag-injection","topic-tag-unsteady"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["25524"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":["*\u0000#?z??\u0000lD?\u0012?\u0006?\f"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["2161"],"_bbp_subscription":["233164"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["53212"],"_bbp_forum_id":["27792"],"_bbp_engagement":["199","5120","180578","187204","187407"],"_bbp_voice_count":["5"],"_bbp_reply_count":["10"],"_bbp_last_reply_id":["150707"],"_bbp_last_active_id":["150707"],"_bbp_last_active_time":["2021-04-26 08:32:56"]},"test":"jack_townsend"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/53212","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\/53212\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=53212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}