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

pressure profile UDF not compiling

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2014, 00:16
Default pressure profile UDF not compiling
  #1
New Member
 
uzi
Join Date: May 2014
Posts: 3
Rep Power: 11
udifi is on a distinguished road
Hi
I tried to compile the example from the fluent help

UDF for specifying steady-state parabolic pressure profile boundary
profile for a turbine vane
************************************************** **********************/

#include "udf.h"

DEFINE_PROFILE(pressure_profile,t,i)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
F_PROFILE(f,t,i) = 1.1e5 - y*y/(.0745*.0745)*0.1e5;
}
end_f_loop(f,t)
}

and it gave me this messag:

Copied d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\selfy.c to d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\libudf\src
udf_names.c and user_nt.udf files in 2d are upto date.
(system "copy "C:\PROGRA~1\ANSYSI~1\v150\fluent"\fluent15.0. 0\sr c\makefile_nt.udf "d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\libudf\win64\2d\mak efile" ")
1 file(s) copied.
(chdir "d:\Users\rnds\Desktop\Udi Try\selfy_files\dp0\FFF\Fluent\libudf")(chdir "win64\2d")udf_names.c
udf_names.c(7) : error C2059: syntax error : '}'
udf_names.c(8) : warning C4034: sizeof returns 0

dose some one know why?
udifi is offline   Reply With Quote

Old   May 9, 2014, 11:13
Default
  #2
New Member
 
hana
Join Date: May 2014
Posts: 23
Rep Power: 11
bluenail is on a distinguished road
without any changing of your code

I could compile in fluent successful.

Maybe this is some technical problem.

if you use window 7.

please check something like a environment variable
bluenail is offline   Reply With Quote

Old   May 11, 2014, 00:21
Default
  #3
New Member
 
uzi
Join Date: May 2014
Posts: 3
Rep Power: 11
udifi is on a distinguished road
I will check.
thank you
udifi is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for pressure profile at outlet: sandeep_tu Fluent UDF and Scheme Programming 8 December 3, 2014 13:17
how to get pressure and pressure gradient using UDF Honglin Fluent UDF and Scheme Programming 0 May 24, 2012 06:47
I want to use pressure of 1 face in udf that compiled on other face iman_1844 Fluent UDF and Scheme Programming 3 June 10, 2010 12:55
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19


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