TAGGED: dpm, dpm-concentration, dpm-udfs
-
-
February 29, 2024 at 6:53 am
Bill Hsu
SubscriberHello everyone,
I try to employ a UDF to calculate the DPM concentration, I add one UDMI before the simulation, and initialize particles uniformly distributed in a room (volume injection). I set up an air conditioner and air purifier to dilute the particles. After the simulation is complete, I use Report - Volume integral - Volume average to compute the concentration (variable: User-Defined Memory ). I'm not sure if the way I compute the concentration is correct or not because the computed value is gradually increase with the time instead of decreasing (should be decreasing). Can someone give me some guidance? The following picture is my UDF code.Â
-
February 29, 2024 at 6:25 pm
Prashanth
Ansys EmployeeHello,Â
I think you need to reset the value of UDMI to zero each time. I think that is the reason it is steadily increasing with time.
-
March 1, 2024 at 9:20 am
Bill Hsu
SubscriberThanks for your suggestion, Prashanth! I use Report - Volume integral - Volume average to compute the UDMI, I'm not sure if it's right or not. Can you help me with this problem?Â
-
March 13, 2024 at 8:39 am
Bill Hsu
SubscriberHello, Prashanth
I didn't find how to reset the UDMI value in the manual and the internet, can you provide guidance about how to set the UDMI to zero each time?
-
March 13, 2024 at 5:27 pm
Prashanth
Ansys EmployeeIt must be very staright forward. Try this:
thread_loop_c(t, d)Â Â {Â Â Â begin_c_loop(c, t){Â C_UDMI(c, t, 0) = 0;}Â Â Â end_c_loop(c, t)Â Â }ÂÂ loop(I,... -
March 19, 2024 at 4:33 am
-
March 19, 2024 at 9:39 am
Prashanth
Ansys EmployeeI think the code works, you can check with a simple unsteady dpm problem.
-
March 20, 2024 at 11:34 am
Bill Hsu
SubscriberHello, Prashanth,
I ran a case that used an air conditioner and an air purifier to dilute the particles in the room. 2400 particles are uniformly distributed in the room initially, and the initial concentration showed good agreement with my calculation. However, after the simulation run, the concentrations at different time steps are the same as the initial concentration. I expected that the particle concentration could decrease as time passed, but it didn't. Did the escape and trap particle also take into account in my UDF? I don't know how to fix it right now.
-
March 20, 2024 at 11:36 am
Bill Hsu
SubscriberThe number of particle tracks was decreased as time passed, but it didn't show how many particles trapped and how many particles escaped.
-
-
-
March 1, 2024 at 7:02 pm
Prashanth
Ansys EmployeeI think volume weighted averaging of dpm concentration is fine (we already have dpm cencentration listed as a variable, UDF might not be necessary). You can also monitor the dpm mass in domain as you remove the particles.
-
March 4, 2024 at 3:02 am
Bill Hsu
SubscriberHello Prashanth, since I adopted the one-way coupling (the interaction with the continuous phase option wasn't active), the dpm concentration wasn't available in the dropdown list, this is the reason why I compiled a UDF code to the Fluent. Or is there any other approach that can calculate the dpm concentration meanwhile keeping the one-way coupling assumption?Â
-
-
March 4, 2024 at 12:21 pm
Prashanth
Ansys EmployeeI don't think there's another option apart from UDF for one way coupled cases.
-
- The topic ‘Problems of DPM concentration UDF’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Script Error
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- convergence issue for transonic flow
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Point exception in erosion calculation
- Errors with multi-connected bodies using AQWA
- Script Error Ansys
-
2337
-
925
-
599
-
591
-
527
© 2025 Copyright ANSYS, Inc. All rights reserved.