CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   divergence-free velocity field - 2D problem (http://www.cfd-online.com/Forums/fluent/48375-divergence-free-velocity-field-2d-problem.html)

pres May 30, 2008 11:23

divergence-free velocity field - 2D problem
 
Hello,

I took the velocity gradients for the solution of 2D flow in the DEFINE_ADJUST() as below

dudx = C_U_G(c,t); dvdy = C_V_G(c,t);

DIV = dudx + dvdy;

and I obtained the values of DIV different than zero. How this is possible? Is there any kind of numerical error here?

pres May 31, 2008 12:28

Re: divergence-free velocity field - 2D problem
 
In order to complete my question I have to mention that the velocity gradients were defined in the following way:

dudx = C_U_G(c,t)[0]; dvdy = C_V_G(c,t)[1];

DIV = dudx + dvdy;

this results in non-zero values of DIV ?



All times are GMT -4. The time now is 03:51.