UDF, air flow through a cell----get velocity in
I am simulating particle-laden air flow through a porous zone. The source term in the transport equation need the velocity and concentration of the air when it flow into a cell. In another word, only two sides of a cell are needed in the calculation in a 2D case---- x, y velocity/concentration when flow direction is opposite to the normal direction of a face.
The current code I wrote as followed (part of the code) has 4 source output values (2D). Could you help me to correct it? Thank a lot.
source = scalar*CEcell*flowrate/C_VOLUME(c,t);
dS[eqn] = CEcell*flowrate/C_VOLUME(c,t);
|All times are GMT -4. The time now is 12:49.|