CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Problem Loading UDF (http://www.cfd-online.com/Forums/fluent-udf/117072-problem-loading-udf.html)

vagaikwa May 1, 2013 12:37

Problem Loading UDF
 
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?

vasava May 2, 2013 01:45

I think you have some missing dll files. What operating system are you using?

vagaikwa May 2, 2013 02:21

Windows 7..

ghost82 May 2, 2013 03:19

Quote:

Originally Posted by vagaikwa (Post 424466)
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

vasava May 2, 2013 05:43

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.

ghost82 May 2, 2013 05:47

Quote:

Originally Posted by vasava (Post 424597)
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.

vasava May 2, 2013 07:00

Quote:

Originally Posted by ghost82 (Post 424599)
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 May 2, 2013 07:03

@vagaikwa: Did you install Visual Studio for UDF compilation? Also can you share your UDF here? Lets see if that part is ok.

vagaikwa May 2, 2013 11:43

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 May 2, 2013 11:45

#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

vasava May 3, 2013 01:38

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.

ghost82 May 3, 2013 13:44

...and you have to recompile your udf with the system you are using; first delete the libudf folder.

Daniele


All times are GMT -4. The time now is 19:05.