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/)
-   -   problem in loading a udf (https://www.cfd-online.com/Forums/fluent-udf/98924-problem-loading-udf.html)

roop_windscar March 22, 2012 01:32

problem in loading a udf
 
Error Object: #f
1 file(s) copied.
(system "copy "C:\PROGRA~1\ANSYSI~1\v120\fluent"\fluent12.0.16\s rc\makefile_nt.udf libudf\win64\3ddp\makefile")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\3ddp")()
'nmake' is not recognized as an internal or external command,
operable program or batch file.
'nmake' is not recognized as an internal or external command,
operable program or batch file.

Please help me out with this problem... i am trying to load a UDF for giving a transient velocity and when i load it in compiled format this error comes.. what should i do.. should i use iterpreted/compiled???

Thanks in advance...

byronsmith March 22, 2012 04:32

hai,
Check whether the environment variables are set properly for the VC++ installation. moreover ensure that the udf and case files are in the same location.

with regards
byronsmith

roop_windscar March 22, 2012 05:56

thank u byronsmith.. i will try it out...
#include "udf.h"
DEFINE_PROFILE(unsteady_velocity, thread, position)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f, thread)
{
F_PROFILE(f, thread, position) = 20. + 5.0*sin(10.*t);
}
end_f_loop(f, thread)
}

this is the program given in the tutorials... i saved it as .c format using notepad and opened it using fluent thats when i got the error.. if this works out i have alter this program for other cases... can u give me any instructions bcos i am new to udf's....:)

ReeKo March 22, 2012 08:26

Check http://www.cfd-online.com/Wiki/Fluen...UDF.29_Related to find the answer to your problem. It helped me too not only solving that issue.

Regards


All times are GMT -4. The time now is 11:40.