CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

udf----error message

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 15, 2012, 10:08
Default udf----error message
  #1
New Member
 
Mahdi
Join Date: Nov 2010
Posts: 7
Rep Power: 6
mahdiii is on a distinguished road
hello,
I am simulating a wave in tank with specified form of the wave. well, I have written the udf in notepad and then saved it as .c file:

#include "udf.h"

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

but when I want to build libudf in user-defined function>compile it shows this error:
"system cannot find the file specified."

I have installed visual studio 2008 full but couldn't install MSDN library.
I have done what is said in one of the forums about setting paths variables in environment variables window in windows.
and also using winxp.

how can I solve this problem? is there any specific steps to compile a udf?

thank you my friends!
mahdiii is offline   Reply With Quote

Old   February 15, 2012, 11:02
Default
  #2
Senior Member
 
Join Date: Jun 2011
Posts: 108
Rep Power: 6
mali28 is on a distinguished road
Quote:
Originally Posted by mahdiii View Post
hello,
I am simulating a wave in tank with specified form of the wave. well, I have written the udf in notepad and then saved it as .c file:

#include "udf.h"

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

but when I want to build libudf in user-defined function>compile it shows this error:
"system cannot find the file specified."

I have installed visual studio 2008 full but couldn't install MSDN library.
I have done what is said in one of the forums about setting paths variables in environment variables window in windows.
and also using winxp.

how can I solve this problem? is there any specific steps to compile a udf?

thank you my friends!
You have to open Fluent using cmd shell command prompt.
Here is the procedure:
http://cape-forum.com/index.php/topic,5.0.html
mali28 is offline   Reply With Quote

Old   February 16, 2012, 14:48
Default
  #3
New Member
 
Mahdi
Join Date: Nov 2010
Posts: 7
Rep Power: 6
mahdiii is on a distinguished road
thank you my friend .
i will check it!
mahdiii is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 13:03.