CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

TUI commands for sample profiles in DPM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2019, 12:45
Default TUI commands for sample profiles in DPM
  #1
Member
 
Sebi
Join Date: Mar 2019
Posts: 49
Rep Power: 7
bloodflow is on a distinguished road
Hi all,

I am trying to solve my model in batch mode, but dont quite get how to input the same options using TUI commands instead of GUI. I have to initialize my case, then set up the DPM sample trajectories for a specific region, then stop this at the end of the solution.

I know to get into the sampling it is

/report/dpm-sample

You then should chose which injection you are sampling, the zones/boundaries to sample and the UDF you are using. Using the console I cant make my way through this menu without errors, let alone transferring it to a TUI command line so could anyone help?

The first thing it shows is

/report> dpm-sample
(injection-0)
Injection name(1) ["injection-0"]

How do I confirm this is the injection I want to use?

Then it goes to listing the boundaries that can be chosen, how do I chose (interior-blood:008) from these?

(interior-blood:004 interior-blood:008 inlet:009 outlet:010 interior-blood inlet wall outlet)
Boundary name(1) ["interior-blood:004"]
bloodflow is offline   Reply With Quote

Old   April 17, 2019, 23:18
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
try
Code:
 report dpm-sample \" injection-0 \"
if its not work for you out here whole code you are using

best regards
AlexanderZ is offline   Reply With Quote

Old   April 18, 2019, 06:09
Default
  #3
Member
 
Sebi
Join Date: Mar 2019
Posts: 49
Rep Power: 7
bloodflow is on a distinguished road
Thank you for your reply. I compile all my UDF's and then export my case, so my batch file looks like this:

rc Cylinder2.cas
/solve/initialize/hyb-initialization
/solve/dti 6400 50
exit
yes

But I need to add in the DPM-sample part. So in effect something like

rc Cylinder2.cas
/solve/initialize/hyb-initialization
/report/dpm-sample "injection-0" "interior-blood:008" "discrete-phase-sample :: LIBDUF" "no"
/report/dpm-sample "start"
/solve/dti 6400 50
/report/dpm-sample "stop"
exit
yes

Where those are the options I would want, but I dont know how to format them in the correct way. I tried that command but only got errors.
bloodflow is offline   Reply With Quote

Old   April 18, 2019, 06:43
Default
  #4
Member
 
Sebi
Join Date: Mar 2019
Posts: 49
Rep Power: 7
bloodflow is on a distinguished road
I have made some progress, with this script:

rc Cylinder2.cas
/solve/initialize/hyb-initialization
/report/dpm-sample/ This is required to clear/refresh
/report/dpm-sample/ injection-0 () interior-blood:008 () () discrete_phase_sample::libudf no
/solve/dti 2 20
exit
yes

This script works, and outputs the sampling data to files of the form "interior-blood:008.dpm.n" where "n" is the node the particles were tracked on. Usually when using GUI you can "stop" the sampling which merges all of these seperate files, but I cant find a way for this to happen using TUI commands, but a simple script to merge them (linux) would be:

cat interior-blood_008.dpm.* > completeparticledata

Generic form of important line would be:

/report/dpm-sample/ your-injection-name () your-sampling-location () () your-UDF-name no

The purpose of the brackets is to move forward in the menu without adding any options. So the first brackets end the injection menu (I only have 1 injection). I am sampling an interior not a plane, so I enter the interior location, then end that menu with one brackets, and skip the "planes" menu with the second brackets.

Last edited by bloodflow; April 18, 2019 at 08:37.
bloodflow is offline   Reply With Quote

Old   February 5, 2020, 22:23
Default dpm sampling with TUI commands
  #5
New Member
 
Mohammadreza
Join Date: Feb 2019
Posts: 3
Rep Power: 7
mrhaghighatjoo is on a distinguished road
Hi
I got a TUI command for taking a sample of injection(injection_nickel) at the desired plane(z=0.5).

file/rc case.cas
file/rd case.dat
q
solve/iterate 9000
/report/dpm-sample/injection_nickel() () z=0.5() no no
solve/iterate 1000
/report/dpm-sample/
exit

I used the brackets after the names in order to select the injection name(injection_nickel) and the plane (z=0.5). I do not want to check the particle behavior on the boundaries, therefore, I just wrote () in the journal file- that is no boundaries are selected.
The first "report" line is used for starting taking the sample for 1000 iterations and the second "report" line means stop sampling.
Good luck
mrhaghighatjoo is offline   Reply With Quote

Reply

Tags
batch, tui


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM particle tracking in TUI (without displaying) hankjones1 FLUENT 4 April 4, 2023 15:28
Write to file uisng TUI commands in FLUENT delliganesh07 FLUENT 0 April 9, 2019 15:35
TUI Commands from GUI? Carlos FLUENT 6 May 22, 2013 19:05
OpenFOAM14 for Mac OSX Darwin 104 gschaider OpenFOAM Installation 118 July 20, 2008 06:19
*** Missing TUI commands??? *** Carlos FLUENT 2 February 24, 2008 07:53


All times are GMT -4. The time now is 04:18.