|
[Sponsors] |
how to distinguish different injections in UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 2, 2020, 04:52 |
how to distinguish different injections in UDF
|
#1 |
New Member
Yang Yaji
Join Date: Jul 2020
Posts: 2
Rep Power: 0 |
Hello,all!
I want to consult how to distinguish DPM injections in UDF programming. I am modeling underwater oil/gas leakage with DPM and I set two injections in DPM for oil and gas respectively. I write a macro to define gas bubble sizes in DEFINE_EXECUTE_AT_END. Now I want this macro to work only on gas particles when called by FLUENT, but I don’t know how to code to distinguish oil particles and gas particles. Thank you! |
|
October 12, 2020, 10:18 |
I have the same question
|
#2 |
Member
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 6 |
I'm using two injections to define carbon microspheres with different surface groups. And I need to find a method to separate the two injections separately.
Did you find a way to distinguish them? Thanks in advance! Achini |
|
November 24, 2022, 05:23 |
the marco about the initial values of the particle may help
|
#3 |
New Member
liuhanwen
Join Date: Nov 2022
Posts: 1
Rep Power: 0 |
Hi, maybe you can loop all the injections and particles first, and using the macros below to identify if the particle belongs to the injections you want to handle. The values These macros return are the initial values of the particles. And the beginning of the macro may be 'TP' or 'P', I am not sure about the difference.
Tracked_Particle position i= 0, 1, 2 TP_INIT_POS(tp)[i] Tracked_Particle velocity i= 0, 1, 2 TP_INIT_VEL(tp)[i] Tracked_Particle diameter TP_INIT_DIAM(tp) Tracked_Particle temperature TP_INIT_TEMP(tp) Tracked_Particle density TP_INIT_RHO(tp) Tracked_Particle mass TP_INIT_MASS(tp) |
|
Tags |
dpm;fluent;udf;injection |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for vapor pressure | anuarun | Fluent UDF and Scheme Programming | 13 | June 23, 2024 14:12 |
udf for one dimensional linear motion based on force | maccheese | Fluent UDF and Scheme Programming | 2 | September 1, 2019 03:18 |
Save output of udf in another udf! | JuanJoMex | FLUENT | 0 | February 8, 2018 13:43 |
Replicating Scalable Wall Function with a UDF | yousefaz | FLUENT | 0 | August 4, 2017 03:30 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |