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

UDF in DPM+Eulerian multiphase

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Display Modes
Old   May 12, 2015, 10:35
Default UDF in DPM+Eulerian multiphase
  #1
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 257
Rep Power: 6
CeesH is on a distinguished road
dear all,

I'm writing a DPM_SCALAR_UPDATE to use in an Euler-Euler-Lagrange simulation. Several terms in my UDF reference liquid properties, and because of the multiphase domain I assume I have to call the proper phase thread in order for the UDF to work. However, I'm a bit lost on how to do that.

For example, when I use DPM in combination with a single liquid phase, I can use
Code:
C_R(c,tr)
to call the liquid density. How do I get the proper tr in multiphase?

Thanks in advance!

Best regards,
Cees
CeesH is offline   Reply With Quote

Old   May 13, 2015, 04:28
Default
  #2
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 257
Rep Power: 6
CeesH is on a distinguished road
THREAD_SUB_THREAD(t,0) - got it
CeesH is offline   Reply With Quote

Old   May 15, 2015, 03:02
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 670
Rep Power: 9
pakk is on a distinguished road
And to be more complete for other people who might find this using google, since you mention DPM: use P_CELL_THREAD(p) to find the cell thread of the cell that the particle is currently in, so it will be:

THREAD_SUB_THREAD(P_CELL_THREAD(p),0);
CeesH likes this.
pakk is offline   Reply With Quote

Old   June 27, 2015, 04:38
Default
  #4
Member
 
BijanKianoush
Join Date: May 2014
Location: Iran Tehran
Posts: 84
Rep Power: 3
HyperNova is on a distinguished road
Hi friends,
is it possible to use DPM with Eulerian multiphase together? i am modelling bubble plume, for bubbles i am using DPM, for the reservoir i used to use VOF(water and air above it) but eulerian can solve energy equation for both phases.
HyperNova is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for coal combustion in multiphase flow niisha24 Fluent UDF and Scheme Programming 10 March 9, 2015 02:56
multiphase udf ak2009 Fluent UDF and Scheme Programming 0 June 7, 2012 00:15
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
DPM with UDF - Step-by-Step Procedure???? Prashanth FLUENT 3 April 3, 2009 17:45
So many questions in DPM & UDF - Help! URGENT! Prashanth FLUENT 0 March 3, 2009 23:26


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