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

Steady DPM particle concentration in one-way coulping

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2020, 07:55
Default Steady DPM particle concentration in one-way coulping
  #1
New Member
 
JSH
Join Date: Dec 2019
Posts: 6
Rep Power: 6
jshjsh is on a distinguished road
As we know, Fluent can not directly give DPM concentration in one-way coulping
Lagrangian method (disable the" interaction with the continuous phase") .I noticed there are some UDF Micro can be used to calculate the DPM concentration, such as residence time Micro, Mass flow rate Micro......, these Micros can be used in a DEFINE_ON_DEMAND or DEFINE_ADJUST. However, they only work in two-way coulpling (enable the" interaction with the continuous phase"). I guess that this two Macros should be used in a iteration process, in the one-way coupling, the flow field is constant, only the particle equation is solved, so the UDF can not work. But in the two-way coupling, Fluent can give directly the concentration, in which I needn't the UDF. So how to fix this problem in one-way coupling?
jshjsh is offline   Reply With Quote

Old   April 15, 2020, 08:18
Default Macros
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
DEFINE_ON_DEMAND, DEFINE_ADJUST, etc. are general purpose macros and have nothing to do with Particle Tracking. These functions, and there are a few more similar ones, can be used to do any thing that is possible and allowed within Fluent. To determine concentration, you need to determine number of particles in a cell and then take ratio of mass of all those particles to the volume of the cell. You can certainly use UDF for this. However, if this is to be done only once or twice, you can use a less sophisticated approach of sampling the particles. Sampling will write a text file that has coordinates as well as mass of the particles given. You need to compare the locations of the particles with the locations of the cells and their volume in the mesh. Once matched, you can take ratio of mass and volume to get concentration. Similar approach would be used in UDF. If you are well versed with UDF and/or C programming, then it won't take more than a few minutes to write it.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 18, 2020, 07:25
Default
  #3
New Member
 
JSH
Join Date: Dec 2019
Posts: 6
Rep Power: 6
jshjsh is on a distinguished road
Quote:
Originally Posted by vinerm View Post
DEFINE_ON_DEMAND, DEFINE_ADJUST, etc. are general purpose macros and have nothing to do with Particle Tracking. These functions, and there are a few more similar ones, can be used to do any thing that is possible and allowed within Fluent. To determine concentration, you need to determine number of particles in a cell and then take ratio of mass of all those particles to the volume of the cell. You can certainly use UDF for this. However, if this is to be done only once or twice, you can use a less sophisticated approach of sampling the particles. Sampling will write a text file that has coordinates as well as mass of the particles given. You need to compare the locations of the particles with the locations of the cells and their volume in the mesh. Once matched, you can take ratio of mass and volume to get concentration. Similar approach would be used in UDF. If you are well versed with UDF and/or C programming, then it won't take more than a few minutes to write it.
Thank you very much , vinerm, I have known the steps, and I can read the message from trajectory file. However, the real problem is how to make the UDF works. e.e. the Macro C_DPMS_CONCENTRATION can give the concentration, I put it in a DEFINE_ON_DEMAND or DEFINE_ADJUST Macro. Unfortunately, the UDF cannot work in a one-way coupling (but it can work well in a two-way coupling, in which I do not need it and the conc can is obtained in GUI), how do you think it?
jshjsh is offline   Reply With Quote

Old   April 20, 2020, 04:46
Default Concentration
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Isn't that obvious? If Fluent does not solve for concentration of Lagrangian phase, it is obvious that it won't have anything defined in C_DPMS_CONCENTRATION. You have to use a DEFINE_ macro that gives you access to a Tracked_Particle. Then you have to determine that cell in which the particle lies. Using the information about the cell volume and particle frequency, you can determine particle concentration.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply

Tags
dpm concentration, udf macro usage


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 considering particle size oball Fluent UDF and Scheme Programming 4 October 6, 2019 15:42
Steady/ Transient Calculations Saidul ANSYS 0 May 4, 2015 20:15
DPM particle tracking in stirred tank parisa- FLUENT 1 August 7, 2012 13:03
DPM particle tracking parisa- Main CFD Forum 2 June 15, 2011 06:12
steady or unsteady DPM ??? Marina FLUENT 5 July 5, 2006 05:52


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