Fluids

Fluids

Problem getting /report/dpm-sample with injections and boundaries working in batch mode

    • keishlaortiz
      Subscriber

      Hello,


      I'm simulating the cardiovascular system on ANSYS, where my goal is to inject nanoparticles at certain locations in the cardiovascular system to see if it reaches the target area(s). I want to get the amount of nanoparticles trapped or escaped in certain boundaries. So far, I could get that information from the .dpm files generated for each inlet, outlet and arteries wall from Report/Discrete-Phase/Sample from the GUI since I can select the desired boundaries and injections. However, I would like to run multiple simulations from the command prompt using journal files but when I ran the command from journal: "/report/dpm-sample injection_name () "boundary1" "boundary2" ... "boundaryn" () () no yes" it's giving me an error indicating that the injection name is not a valid command. My question is what's the correct command to get the dpm-sample reports choosing the desired injections and boundaries?


      My journal file looks like this:



      /file/read-case-data sce1_v8.cas


      /solve/initialize/hyb-initialization


      /file/auto-save/data-frequency 1


      /report/dpm-sample v8 () "wall-artery" "inlet1" "outlet1" "outlet2" "outlet3" "outlet4" "outlet5" "outlet6" "outlet7" "outlet8" "outlet9" "outlet10" "outlet11" "outlet12" "outlet13" "outlet14" "outlet15" "outlet16" "outlet17" "outlet18" "outlet19" "outlet20" "outlet21" "outlet22" "outlet23" () () no yes


      exit



       v8 is the injection name, so far the previous commands work perfectly, the error is with the repot dpm sample command. Any help would be really appreciated. Thanks.

    • Rob
      Ansys Employee

      What happens if you manually type in the command, ie type


      /report/dpm-sample


      v8


      list of surfaces


      etc


       


      Trouble shooting TUI commands is best done this way, and on the model you're running as the commands can change slightly depending on models. 


      As an aside your journal will read the case, initialise, report DPM tracks and then close: it's not going to do anything else. 


       

    • keishlaortiz
      Subscriber

      Hi.


      Thanks for the reply, however, that's how I got the TUI command (by troubleshooting them in ANSYS Fluent console) to write the journal file and still didn't work. However, I changed something in my model that will not require to get the results in the .dpm files.

    • Geckoo
      Subscriber

      I would also like to do dpm-sampling in batch mode. I do not receive an error message using


      /solve/initialize/initialize-flow
      /report/dpm-sample/inj130bar () outlet int_fluid () plane-x76 plane-x46 () yes no
      /solve/iterate 199


      However, I receive lots of plane-x76.dpm.n files. How do I get one merged report file?

    • Rob
      Ansys Employee

      If it works you should get one file, a .dpm.n extension suggests that something didn't quite work. What's in the file?

    • Geckoo
      Subscriber

      Many of the files are empty and a few contain some thousand lines of data in the form





      -4.60E-02
      5.41E-03
      7.99E-03
      -2.08E+02
      1.12E-01
      -2.82E+00
      3.65E-06
      2.99E+02
      1.82E-12
      2.55E-14
      7.12E+01
      2.80E-04
      2.80E-04
      inj130bar:181)



      That is the typical form I guess. I merged all the files in the windows cmd using



      FOR %f IN (plane-x46*) DO type %f >> ..merge.txt & echo. >> ..merge.txt

Viewing 5 reply threads
  • You must be logged in to reply to this topic.