|
[Sponsors] |
October 24, 2014, 05:13 |
Error compiling UDF.
|
#1 |
Member
Join Date: Sep 2014
Posts: 43
Rep Power: 12 |
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 |
|
October 27, 2014, 06:55 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Please provide the exact error message that you see when you try to compile.
|
|
October 27, 2014, 06:57 |
|
#3 |
Member
Join Date: Sep 2014
Posts: 43
Rep Power: 12 |
Hi pakk,
thanks for the help but I've resolved the problem loading fluent with the prompt of commands |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |