TAGGED: dpm, dpm-concentration, dpm-udfs
-
-
February 29, 2024 at 6:53 amBill HsuSubscriber
Hello 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 pmPrashanthAnsys Employee
Hello,Â
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 amBill HsuSubscriber
Thanks 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 amBill HsuSubscriber
Hello, 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 pmPrashanthAnsys Employee
It 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 amPrashanthAnsys Employee
I think the code works, you can check with a simple unsteady dpm problem.
-
March 20, 2024 at 11:34 amBill HsuSubscriber
Hello, 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 amBill HsuSubscriber
The 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 pmPrashanthAnsys Employee
I 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 amBill HsuSubscriber
Hello 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 pmPrashanthAnsys Employee
I 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.
- Non-Intersected faces found for matching interface periodic-walls
- Script error Code: 800a000d
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Fluent fails with Intel MPI protocol on 2 nodes
- Cyclone (Stairmand) simulation using RSM
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
-
1281
-
591
-
543
-
524
-
366
© 2024 Copyright ANSYS, Inc. All rights reserved.