Documente Academic
Documente Profesional
Documente Cultură
p
Dry Particle Density 1450 kg/m
3
w
Clear Water Density 1000 kg/m
3
c
Schmidt Number 0.7
US0 Reference Settling Velocity 0.005 m/s
RH Floc Settling Parameter 0.7 m
3
/kg
RP Colloidal Settling Parameter 5 m
3
/kg
CMIN Nonsettleable Concentration 0.01 kg/m
3
USMAX Maximum Settling Velocity 0.002 m/s
c ANSYS, Inc. February 7, 2011 17
Modeling the Eect of Sedimentation Concentration in a Secondary Clarier using a UDF
Appendix 2: Compiling the UDF
The resolved system of equations is shown below. Some slight modications are conducted
on the general form of the transport equations to account for the complex physics of the
clarication process. The sedimentation-related terms are marked and associated with the
corresponding UDF macros.
1. Continuity Equation:
V
x
x
+
V
y
y
+
V
y
y
= 0 (1)
2. X-Momentum Equation:
V
x
t
+
V
2
x
x
+
(V
x
V
y
)
y
=
p
x
+
x
2
t
V
x
x
+
1
y
y
t
V
x
y
+
V
y
y
+
gC(
p
w
)
w
(2)
where,
gC(
p
w
)
w
: DEFINE SOURCE(X mom src,c,tc,ds,eqn)
3. Y-Momentum Equation:
V
y
t
+
V
2
y
x
+
(V
x
V
y
)
x
=
p
y
+
1
y
2y
t
V
x
y
+
x
V
x
y
+
V
y
x
2
t
V
y
y
2
(3)
4. Turbulent Kinetic Energy (k) Equation:
k
t
+
V
x
k
x
+
(V
y
k)
y
=
x
+
t
k
x
+
1
y
+
t
k
y
+G
k
+G
b
(4)
where,
G
b
: DEFINE SOURCE (turb k source,c,tc,ds,eqn)
G
b
=
c
C
x
t
+
V
x
x
+
(V
y
)
y
=
x
+
t
+
1
y
+
t
+C
1
k
(G
k
C
3
G
b
)C
2
2
k
(5)
18 c ANSYS, Inc. February 7, 2011
Modeling the Eect of Sedimentation Concentration in a Secondary Clarier using a UDF
where,
C
3
G
b
: DEFINE SOURCE(turb e source,c,tc,ds,eqn)
6. Concentration Equation (Passive Scalar Equation):
C
t
+
(V
x
+ V
s
)C
x
+
(V
y
C)
y
=
x
c
C
x
+
1
y
c
C
y
(6)
where,
(V
x
+V
s
)
x
C +
(V
y
C)
y
: DEFINE UDS FLUX(settling ux,f,tf,i)
c
C
x
+
1
y
c
C
y