Current location - Trademark Inquiry Complete Network - Futures platform - Why can't ansys 18 display vof volume fraction?
Why can't ansys 18 display vof volume fraction?
VOF: Volume fraction, fluid volume function, which is defined as the ratio of target fluid volume to grid volume for each grid of flow field. As long as we know the value of this function on each grid, we can track the moving interface.

#include "udf.h "

# contains "math.h"

Definition _ Profile (Entry _ x _ Speed, Thread, Index)

{

real x[ND _ ND];

Real y, z;

face _ t f;

Start loop (f, thread)

{

F_CENTROID(x, f, thread);

//x = x[0];

y = x[ 1];

//z = x[2];

if(y & lt; 0.0 18 1)

F_PROFILE(f, thread, index) = 2.0994 * log (y)+9.4438;

other

F_PROFILE(f, thread, index) =15;

}

End_f_loop(f, thread)

}