|
|
可以没有出口,入口udf如下
#include "udf.h"
#include "math.h"
DEFINE_PROFILE(unsteady_velocity, thread, position)
{face_t f;
begin_f_loop(f, thread)
{
real t = RP_Get_Real("flow-time" ;
F_PROFILE(f, thread, position) =sin(3.1415926*t));
}
end_f_loop(f, thread)
} |
|