Trying to add a compiled UDFs on FLUENT

  • 76 Views
  • Last Post 03 September 2019
michel posted this 01 September 2019

Hello student community! I am working on a project that involves 6DOF, so when I tryed to upload my code on FLUENT´S Functions Compiled UDFs the following error appears and I do not know how to resolve, first I thought that I didnt had Visual Studio Intalled on my computer, but after i have had intalled it the same error keep appearign

The portuguese lpart stands for "the sistem can not fin the specified arquive" and " 'nmake' is not recognized as an internal or external  command, a program operable or a batch file"

image.pngimage.png

 

Thank you! 

Order By: Standard | Newest | Votes
michel posted this 01 September 2019

 

 

 

 

abenhadj posted this 02 September 2019

Can you launch Fluent from VS command prompt x86_64 compile and try again. Please insert screenshots as ANSYS Staff do not download attachments.

Best regards,

Amine

michel posted this 02 September 2019

Dear Amine,

Do you know what I am doing wrong or what I need to do for this simulation work?

I am sending the code that I wrote and the error that appears when I try to upload to User-defined>functions>compiled>Compiled UDFs.

a) This is the error that appears:

"

Error: The UDF library you are trying to load (libudff) is not compiled for parallel use on the current platform (win64).\n\nO sistema n�o pode encontrar o arquivo especificado.

\n\nC:\Users\sarah\Documents\Michel\Floating boat\Floating boat\Case and Data\Case and Data\Case1\libudff\win64\3d_host\libudf.dll

Error Object: #f

Copied C:\Users\sarah\Documents\Michel\Floating boat\Floating boat\Case and Data\Case and Data\Case1/C:\Users\sarah\Documents\Michel\Floating boat\Floating boat\Case and Data\Case and Data\Case1\6DOF.c to libudff\src

 

****************************************************************************

****************************************************************************

** WARNING: Automatically switched to run in parallel -t1 mode. **

** Detected non-parallelized UDF usage, enabling parallel usage. **

** If you encounter any issues, please re-run with -t0 flag. **

****************************************************************************

****************************************************************************udf_names.c and user_nt.udf files in 3d_host are upto date.

(system "copy "D:\ANSYS Inc\v193\fluent"\fluent19.3.0\src\udf\makefile_nt.udf "libudff\win64\3d_host\makefile" ")

1 arquivo(s) copiado(s).

(chdir "libudff")(chdir "win64\3d_host")'nmake' n�o � reconhecido como um comando interno

ou externo, um programa oper�vel ou um arquivo em lotes.

 

****************************************************************************

****************************************************************************

** WARNING: Automatically switched to run in parallel -t1 mode. **

** Detected non-parallelized UDF usage, enabling parallel usage. **

** If you encounter any issues, please re-run with -t0 flag. **

****************************************************************************

****************************************************************************udf_names.c and user_nt.udf files in 3d_node are upto date.

(system "copy "D:\ANSYS Inc\v193\fluent"\fluent19.3.0\src\udf\makefile_nt.udf "libudff\win64\3d_node\makefile" ")

1 arquivo(s) copiado(s).

(chdir "libudff")(chdir "win64\3d_node")'nmake' n�o � reconhecido como um comando interno

ou externo, um programa oper�vel ou um arquivo em lotes.

 

Done.

 

"

 

b) and this is the code that I need to insert:

 

"

#include "udf.h"

#include "math.h"

 

DEFINE_SDOF_PROPERTIES(move, prop, dt, time, dtime)

{

prop[SDOF_MASS]= 600;

prop[SDOF_IXX]= 207.8370;

prop[SDOF_IYY]= 1362.5733;

prop[SDOF_IZZ]= 1195.0679;

prop[SDOF_ZERO_TRANS_X]= TRUE;

prop[SDOF_ZERO_TRANS_Y]= FALSE;

prop[SDOF_ZERO_TRANS_Z]= TRUE;

prop[SDOF_ZERO_ROT_X]= TRUE;

prop[SDOF_ZERO_ROT_Y]= TRUE;

prop[SDOF_ZERO_ROT_Z]= FALSE;

}

"

abenhadj posted this 03 September 2019

Are you able to compile on the machine a dummy UDF? Ignore at first the warning about parallel remove any libudf in the directory compile then first before reading case file.

Best regards,

Amine

Close