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

Two discrete phases

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By `e`

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2015, 23:52
Default Two discrete phases
  #1
New Member
 
Join Date: Apr 2015
Posts: 16
Rep Power: 11
why? is on a distinguished road
Hi All

If my simulation has two different Lagrangian particle phases, how can I get the particle data for each one of them separately in one UDF. How to make my UDF differentiate between the particle data from the two different particle phases in a single UDF?


Thanks
why? is offline   Reply With Quote

Old   April 13, 2015, 00:13
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
If you're using two injection streams then you can differentiate between these two streams with their respective ID numbers. Here's a quote from a recent post of mine on looping through injection streams and particles:

Quote:
Originally Posted by `e` View Post
As for looping through all particles, try this code (source):

Code:
Injection *I, *Ilist = Get_dpm_injections();
Particle *p;

...

loop(I, Ilist) // loop through all injections
{
    loop(p, I->p) // loop through all particles
    {
        // all particles execute this code
    }
}
why? likes this.
`e` is offline   Reply With Quote

Reply


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
Problem in Multiphase setup with phases NiBa FLUENT 4 December 2, 2023 04:42
iteration questions in discrete phase iknowjesus FLUENT 4 March 13, 2015 07:07
Call for Papers: Discrete Dynamics in Nature and Society dishengbin Main CFD Forum 1 June 8, 2014 12:00
multiphaseEulerFoam: PtrDictionary<phaseModel> phases_ of multiphasesystem fluid maybee OpenFOAM Programming & Development 9 January 27, 2014 07:24
Discrete event simulation vs. fixed time (discrete time simulation) jenjon FLUENT 0 March 10, 2013 07:58


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