-
-
February 29, 2024 at 12:23 pm
guan shengyi
SubscriberHi all
I am trying to use an UDF to define mass diffusion coefficients for fluid in the system.
I am attempting to redefine the fluid diffusion coefficient using `DEFINE_DIFFUSIVITY`, but I am encountering issues. My goal is to modify the diffusion coefficient based on a pressure condition using a scaling factor, and I am using `C_DIFF_EFF(c,t,i)` to retrieve the diffusion coefficient. However, when storing this value in a User-Defined Memory (UDMI) variable, it remains 0. Can you help me identify the issue? Below is my UDF.
DEFINE_DIFFUSIVITY(DD, c, t,i)/*two-phase fluid*/
{
real Kg;/*diffusion coefficient*/
if (C_P(c, t) < 20e+05)
{
Kg = 10e-20*C_DIFF_EFF(c, t, 1);
}
else if (C_P(c, t) > 20e+05)
{
Kg = C_DIFF_EFF(c, t, 1);
}
C_UDMI(c, t, 0) = C_DIFF_EFF(c, t, 1);
return Kg;
} -
March 4, 2024 at 12:38 pm
SRP
Ansys EmployeeHi,
I suggest you to initialized kg to zero and try to store the modified kg in UDMI.
-
- The topic ‘define mass diffusion coefficients for porous media and multiphase’ 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.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- 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
-
4132
-
1487
-
1318
-
1158
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.