-
-
January 31, 2020 at 11:17 am
matti956
SubscriberHi all,
I am rather good at fluent, however there is a field that I have never really had to use, UDFs. I've had a look at tutorials, and it is not very clear, to be honest. But let me explain my problem first.
Basically I want to maintain a fixed particles concentration in a cell zone (I have 5 cell zones in my whole fluid domain). The particles move from one to the other. What I want to do is to "get" the particles concentration in cell zone "A", have it subtracted to a fixed value, and then after few calculations, output this value as the number of particles to be injected back into the model.
I would think the function below would be the solution, but honestly I do not know how to put everything together.
C_STORAGE_R(c,t,SV_DPMS_CONCENTRATION)
My model is unsteady!
-
January 31, 2020 at 12:50 pm
Amine Ben Hadj Ali
Ansys EmployeeYou need to do that on Lagrangian side by removing particles from one region and injecting new one in other region.
-
January 31, 2020 at 12:57 pm
matti956
SubscriberHello!
Thank you for your answer. I do not really understand what you are saying tho. The number of particles leaving cell zone A is varying with time, therefore I have to compute at every time step either the number of particles leaving the cell zone and inject it back into it, or calculate the concentration of particles in that cell zone, make quick maths to get the number of particles that I have to inject back.
Either way, I am pretty sure I need to set a UDF. But again, although I am ok with Fluent itself, I am quite new to particles simulations.
By the way, if that can help, I am not using any multiphase model. Only DPM.
Many thanks!
-
January 31, 2020 at 1:04 pm
Amine Ben Hadj Ali
Ansys EmployeeDPM is multi phase. Even if you want to get the concentration well balanced you will need to inject new particles, remove other particles or at least modifiy the particles or particles number per parcel to get the balanced concentration.
This is not a simple step and we cannot help here on this open community. What I can say yes you can access the dpm concentration (eulerian) variable via a cell macro (please have a look into the manual /Â Â Macros to access source terms on CFD cells for the DPM model)
-
February 3, 2020 at 2:05 pm
matti956
SubscriberI'm still really confused. I do not know why Ansys didn't include a way of keeping the particles concentration constant in a cell zone by automatically injecting the appropriate amount of particles if some have left the zone. But ok I will try to find a way. Thank you!
-
February 3, 2020 at 2:46 pm
Amine Ben Hadj Ali
Ansys EmployeeYou raised the question on the ANSYS Customer Portal. This thread will be locked.
Â
-
- The topic ‘UDF to get particle concentration into a volume and inject new particles’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
3892
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.