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

Problem Loading UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 1, 2013, 12:37
Default Problem Loading UDF
  #1
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 5
vagaikwa is on a distinguished road
Hello,

I purchased a student license version Ansys 14.5. I am running Fluent 14.5 in it. I am trying to load a UDF in it and when I click on Build, it says that fl6326s.exe is missing from your computer. Error code: 126

What can be done about it?
vagaikwa is offline   Reply With Quote

Old   May 2, 2013, 01:45
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 545
Rep Power: 12
vasava will become famous soon enough
I think you have some missing dll files. What operating system are you using?
vasava is offline   Reply With Quote

Old   May 2, 2013, 02:21
Default
  #3
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 5
vagaikwa is on a distinguished road
Windows 7..
vagaikwa is offline   Reply With Quote

Old   May 2, 2013, 03:19
Default
  #4
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 918
Rep Power: 15
ghost82 will become famous soon enough
Quote:
Originally Posted by vagaikwa View Post
Hello,

I purchased a student license version Ansys 14.5. I am running Fluent 14.5 in it. I am trying to load a UDF in it and when I click on Build, it says that fl6326s.exe is missing from your computer. Error code: 126

What can be done about it?
I don't know the answer but maybe a problem related to system variables?
Doesn't fl6326s.exe refer to Fluent version 6.3.26?But you have ansys 14.5...Check system variables, the problem might be there..

Daniele
ghost82 is offline   Reply With Quote

Old   May 2, 2013, 05:43
Default
  #5
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 545
Rep Power: 12
vasava will become famous soon enough
Before installation did you check if all the pre-requisites are installed? In the very first step when you begin the installation procedure, there is an option to check and install the pre-requisites.

Last edited by vasava; May 2, 2013 at 07:01.
vasava is offline   Reply With Quote

Old   May 2, 2013, 05:47
Default
  #6
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 918
Rep Power: 15
ghost82 will become famous soon enough
Quote:
Originally Posted by vasava View Post
I think fl6326s.exe has something to do with serial processing and nothing to do with the version of the Ansys.

Before installation did you check if all the pre-requisites are installed? In the very first step when you begin the installation procedure, there is an option to check and install the pre-requisites.
Yes, it is the solver process, but it refers to version 6.3.26 and this is strange in my opinion.
ghost82 is offline   Reply With Quote

Old   May 2, 2013, 07:00
Default
  #7
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 545
Rep Power: 12
vasava will become famous soon enough
Quote:
Originally Posted by ghost82 View Post
Yes, it is the solver process, but it refers to version 6.3.26 and this is strange in my opinion.
Yes!! You are right. I will edit my comment before someone takes it seriously.
vasava is offline   Reply With Quote

Old   May 2, 2013, 07:03
Default
  #8
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 545
Rep Power: 12
vasava will become famous soon enough
@vagaikwa: Did you install Visual Studio for UDF compilation? Also can you share your UDF here? Lets see if that part is ok.
vasava is offline   Reply With Quote

Old   May 2, 2013, 11:43
Default
  #9
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 5
vagaikwa is on a distinguished road
Thanks for your replies guys..I have fluent 6.3.26 installed already..I guess I need to uninstall it..I moved my udf and my cas/dat file to a different location..And then I run the the fluent14.5 through SDK command prompt. But now it is giving me this error..

The UDF library you are trying to load (libudf) is not compiled for 2ddp on the current platform (win64)
vagaikwa is offline   Reply With Quote

Old   May 2, 2013, 11:45
Default
  #10
Member
 
Join Date: Apr 2012
Posts: 48
Rep Power: 5
vagaikwa is on a distinguished road
#include "udf.h"

#include "stdio.h"

#include "math.h"

#define lambda 0.11

#define erbc 0.45

#define mup 0.001

DEFINE_PROPERTY(cumul_viscosity,c,t)

{

real mu_blood,gamma,a,n,m;

double s1, ko,shear_rate;

gamma = C_STRAIN_RATE_MAG(c,t);



/*Calculating Dimensionless shear rate*/



shear_rate = 1+pow((lambda*gamma),2);

s1 = (double) log ((double) shear_rate);

ko = ((double) log ((double) s1))/((double) s1);



if(shear_rate>=1.5)

{

n = 0.8092*(pow(erbc,3))-0.8246*(pow(erbc,2))-0.3503*erbc+1;

m=122.28*(pow(erbc,3))-51.213*(pow(erbc,2))+16.305*erbc+1;

}



/*Low shear rate*/



else

{

n = ko*(-0.8913*(pow(erbc,3))+2.0679*(pow(erbc,2))-1.7814*erbc)+1;

m=70.782*(pow(erbc,3))-22.454*(pow(erbc,2))+9.7193*erbc+1;

}

a = 0.5*(n-1);



/*Multiplying dimensionless shear rate by viscosity of plasma 0.001*/



mu_blood = mup*m*(pow(shear_rate,a));

return mu_blood;

}

Here is my udf
vagaikwa is offline   Reply With Quote

Old   May 3, 2013, 01:38
Default
  #11
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 545
Rep Power: 12
vasava will become famous soon enough
This error is because you have not setup the visual studio properly. I think you must read threads related to this issue and try to fix this.
vasava is offline   Reply With Quote

Old   May 3, 2013, 13:44
Default
  #12
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 918
Rep Power: 15
ghost82 will become famous soon enough
...and you have to recompile your udf with the system you are using; first delete the libudf folder.

Daniele
ghost82 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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 01:43
Compiling / Loading UDF Martijn FLUENT 1 December 16, 2008 20:06
I have problem of UDF with turbulent premx source. Z FLUENT 0 February 16, 2005 04:34
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


All times are GMT -4. The time now is 15:52.