-
-
January 21, 2026 at 3:03 am
24212040751
SubscriberThe paper I referred to is:
Xu W, Dong CJ, Li DS. Numerical simulation on influences of wind speed to leaking diffusion of liquid ammonia. Advanced Materials Research. 2015 Jan 27;1073:383-7.
#include "udf.h"#define T_evap -33.0 // Evaporation temperature in CelsiusDEFINE_PROPERTY(gasification_model, c, t){real T_d = C_T(c, t); // Temperature of the dropletreal T_env = C_T(c, t); // Temperature of the surrounding environmentreal m_d = C_MASS(c, t); // Mass of the dropletreal c_d = 2.0; // Specific heat of the droplet (example value)real A_d = 0.1; // Surface area of the droplet (example value)real h = 1000.0; // Heat transfer coefficient (example value)real h_latent = 2260.0; // Latent heat of vaporization for ammonia (J/g)// Check if the droplet is in the liquid phase (T_d < T_evap)if (T_d < T_evap) {// Liquid phase: Apply heat transfer equationreturn h * A_d * (T_env - T_d) / (m_d * c_d);}else {// Gas phase: Apply phase change equation with latent heatreturn h * A_d * (T_d - T_env) / (m_d * c_d) + h_latent;}}DEFINE_DPM_FORCE(droplet_force, f, t, c, dt){real u = C_U(c,t); // Velocity of the dropletreal v = C_V(c,t); // Velocity of the dropletreal w = C_W(c,t); // Velocity of the dropletreal gravity = 9.81; // Acceleration due to gravityreal drag_force = calculate_drag_force(u, v, w); // Call function for drag force calculation// Additional forces like Brownian, added mass can be defined herereturn drag_force + gravity;} -
January 21, 2026 at 9:43 am
Rob
Forum ModeratorSee comments https://innovationspace.ansys.com/forum/forums/topic/compile-the-udf-code-and-apply-it-to-the-dpm/
What is the DPM_FORCE for as gravity & flow are already included by default.
-
Viewing 1 reply thread
- 您必须登录才能回复此主题。
Innovation Space
Trending discussions
- Application of EDC occurs flame extinguishing
- 用EDC计算发现燃料不能顺利喷出
- 热仿真计算收敛
- Must EDC model need an initial flow field?
- Compile the UDF code and apply it to the DPM.
- Please help me check if there are any issues with the UDF.
- Negative droplet growth rate in Fluent wet steam model
- Difficulty in Complex Source Term Linearization
Top Contributors
-
4934
-
1638
-
1386
-
1242
-
1021
Top Rated Tags
© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.

