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/)
-   -   invalid type conversion: double -> pointer to char. (https://www.cfd-online.com/Forums/fluent-udf/237179-invalid-type-conversion-double-pointer-char.html)

Boyan July 4, 2021 22:24

invalid type conversion: double -> pointer to char.
 
Hi, I was trying to create a udf file for a sinusoidal velocity at the inlet, but error after interpreting shows "invalid type conversion: double -> pointer to char." at line 11.

Please help me with this problem, I'm new to fluent.

The following is my code

#include "udf.h"

DEFINE_PROFILE(velocity_magnitude, t, i)
{

real t = CURRENT_TIME;


begin_f_loop(f,t)
{
F_PROFILE(f,t,i) = 0.4*sin(9*t)+0.02;
}
end_f_loop(f,t)
}

Thank you very much.

pakk July 5, 2021 01:46

Try to compile.


All times are GMT -4. The time now is 17:08.