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

UDF doesn't appear in the Excute on command

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2014, 09:17
Default UDF doesn't appear in the Excute on command
  #1
New Member
 
Richard l
Join Date: Apr 2014
Posts: 1
Rep Power: 0
richardlicha is on a distinguished road
I want to set different reflection coefficient in the wall(Cells zone, ID of wall is 2), corresponding to y coordinates. So I write a UDF to assign them in UDM, then UDS flux function can read them later. But there are always errors:
make[1]: stat: .c: Too many levels of symbolic links
cc -o .c
cc: no input files
make[1]: *** [.c] Error 1
make[1]: stat: .c: Too many levels of symbolic links
make[1]: Target `default' not remade because of errors.

Here is my UDF:
#include "udf.h"
#define intima_y 0.001852
#define iel_y 0.001862
#define media_y 0.001866
#define mywall 2
DEFINE_ON_DEMAND(cha_init)
{


Thread *cell_thread_wall;

Domain *d=Get_Domain(1);

cell_t c;
real xc[ND_ND];


Set_User_Memory_Name(5,"wall_lag");
cell_thread_wall=Lookup_Thread(d,mywall);

Message0("Starting designating the wall_UDM's\n");
begin_c_loop(c, cell_thread_wall) /* loops over cells in a cell thread */
{
C_CENTROID(xc,c,cell_thread_wall);
if(xc[1]>media_y){
C_UDMI(c,cell_thread_wall,5)=0.1486;
}

else if((xc[1]>=iel_y) && (xc[1]<=media_y)){
C_UDMI(c,cell_thread_wall,5)=1.73e-2;
}
else if((xc[1]>=intima_y) && (xc[1]<iel_y)){
C_UDMI(c,cell_thread_wall,5)=1.728e-1;
}
else
C_UDMI(c,cell_thread_wall,5)=0.1486;
}
end_c_loop(c, cell_thread_wall)

Message0("Done!!!\n");
}
richardlicha is offline   Reply With Quote

Reply

Tags
udf


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
UDF programming fullmonty FLUENT 5 June 30, 2011 03:40
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 18:14.