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 compiling UDF. (https://www.cfd-online.com/Forums/fluent-udf/143421-error-compiling-udf.html)

darkluix88 October 24, 2014 04:13

Error compiling UDF.
 
Hi guys,
I want to create an udf to input a sinusoidal movement to a wall of a tank, so I have made a .c file with this code (found on web) for example:

#include "udf.h"

DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime)
{
vel[0]=(0.30823)*((1 - exp(-0.417*time))*1.0472*cos(1.0472*time) + ((0.417*exp(-0.417*time))*sin(1.0472*time)));
}

Now, I receive an error "nmake" (or something similar) when I try to load it and build a libudf. I'm using fluent 14 and to compile udf "Vs2012 Express for desktop" or "Dev-C++"...I've read by tutorials also something regarding folders and sdk commands' prompt, but I didn't understand :-(

can anyone help me to resolve this problem step to step, please?
Thanks in advance

pakk October 27, 2014 05:55

Please provide the exact error message that you see when you try to compile.

darkluix88 October 27, 2014 05:57

Hi pakk,
thanks for the help but I've resolved the problem loading fluent with the prompt of commands :)


All times are GMT -4. The time now is 23:47.