CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Error UDF results (https://www.cfd-online.com/Forums/fluent-udf/194937-error-udf-results.html)

aaangie October 27, 2017 11:18

Error UDF results
 
Dear all.
My question is: i need to simulate a flow through a regenerator. Inlet boundary condition is periodic, imposed by
#include "udf.h"
#include "metric.h"
#include "mem.h"

DEFINE_PROFILE(vs,t,i)
{
face_t f;
real ti=CURRENT_TIME;
begin_f_loop(f,t)
{
F_PROFILE(f,t,i)=1.6*sin(33.33*M_PI*ti);
}
end_f_loop(f,t)
}

But in the results, for time=0.015 the velocity in the inlet is 2.57 and not 1.6 like it must to be.
Inlet velocity is biger that my imposed velocity.
What it can be? Is some thing is wrong?
Please, help me, Im desperate.


All times are GMT -4. The time now is 15:00.