UDF Error

  • 215 Views
  • Last Post 26 July 2019
  • Topic Is Solved
soloviev posted this 25 June 2019

Hello,

I am trying to load a previously run model on a new workstation. I copied the case and data file, libudf folder, and the udf file itself to my new working folder. I loaded the case and date files and get the following error: 

The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). The system cannot find the file specified. (file name is libudf.dll)

 

When I do this on other workstations I have no problem. The compiler loaded on these is visual studio. I also attempted to unload and reload the udf and re-build the folder, which did not work. It gave the same error. 

 

In the directory, the libudf folder is created, but the file which Fluent cannot find is not created when the library is built.

 

What could be causing this?

 

Thank you,

Alex

 

 

Order By: Standard | Newest | Votes
abenhadj posted this 26 June 2019

Actually it has to work on different windows workstations running different OS. But sometimes if the UDF libraray is linked to some  different DLL tis would fail. It would also fail if you are using different Fluent versions.

Safer is to recompile.

Best regards,

Amine

soloviev posted this 26 June 2019

Thank you for the quick response.

 

I did try to recompile by unload and reload the udf and re-build the folder, which did not work. It gave the same error. 

 

Thanks,

Alex

abenhadj posted this 26 June 2019

Either there is lock here. Please unload the library, eliminate any hooks save case in other directory . Close Fluent open Fluent recompile UDF and load it then read case and hook it.

Best regards,

Amine

soloviev posted this 26 June 2019

Good afternoon,

I just attempted the solution you suggested and unfortunately received the same error again. 

 

Thanks,

Alex

abenhadj posted this 27 June 2019

Are you able to compile anything on this machine?

Best regards,

Amine

soloviev posted this 27 June 2019

With regards to Fluent, I have tried other UDFs and were not able to compile those either. 

 

Thanks,

Alex

soloviev posted this 27 June 2019

Additionally, I just attempted to set up the model from scratch rather than loading a case file, and ran into the same error as listed above.

 

Thanks,

Alex

soloviev posted this 27 June 2019

When compiling in a new case file, I get the following output when loading "(chdir "libudf")(chdir "win64\3ddp_host")'nmake' is not recognized as an internal or external command, operable program or batch file"

rwoolhou posted this 27 June 2019

The computer you're on doesn't have a compiler, or it's not linked correctly. 

soloviev posted this 27 June 2019

Visual Studio 2017 was downloaded. I just downloaded 2019 to see if this version will work better. How do I link it with fluent?

 

Thanks,

Alex

rwoolhou posted this 27 June 2019

2017 is the one we currently use. I can't remember the exact steps: there will be some explanations in the Installation section. 

abenhadj posted this 27 June 2019

Try launching Fluent from the command prompt of visual studio. All required environment variables are parsed virtually into the system variables.

Best regards,

Amine

soloviev posted this 27 June 2019

I attempted to open fluent from the command prompt of visual studio and it did not work. 

c:\Program Files\ANSYS inc\v192\fluent\ntbin\win64

is the command I used. What is the correct one?

I will also look into the directions for linking the fluent and VS.

Thanks,

Alex

abenhadj posted this 28 June 2019

in VS 2017 and then x-86_x64 Cross Tools Command Prompt type cl t check if compiler is working.

Do you have access as ASC to customer portal solutions?

Best regards,

Amine

soloviev posted this 28 June 2019

I apologize for all of the questions. This is very new for us. 

I was just in the normal command window in VS. How do I get to the x-6_x64 Cross Tools Command Prompt?

 

We can log onto the customer portal, yes.

 

Thanks,

Alex

abenhadj posted this 28 June 2019

then please look after solution number 2049257.

 

The command prompt I was referring to is located under Visual Studio 2017 under start programs. That is not the windows CMD.

Best regards,

Amine

soloviev posted this 28 June 2019

Hello again,

 

I was able to find the command prompt you mentioned and after inputting cl t I received the following error:

 

/out:t.exe
t
LINK : fatal error LNK1104: cannot open file 't.exe'

abenhadj posted this 28 June 2019

If "cl" result in that then you need to cleanup everything and re-install as Admin with the instructions from the Solution suggested.

Best regards,

Amine

soloviev posted this 28 June 2019

Thank you. I will follow the solution you provided.

 

Thanks,

Alex

soloviev posted this 28 June 2019

Hello again,

I followed the directions in the given solution and unfortunately I received the same error. 

 

Thanks,

Alex

soloviev posted this 28 June 2019

I seemingly have gotten it working on my workstation.

 

I am now trying to remotely run my model on a HPC cluster from fluent running on the workstation. 

When I do this, the error occurs again. I am wondering if fluent is not able to compute the job remotely with UDFs?

Thanks,

Alex

abenhadj posted this 01 July 2019

Does it mean: working on the machine is fine (compiling) but by remote (via Remote desktop?) not? 

 

Best regards,

Amine

soloviev posted this 01 July 2019

Hello,

 

Yes, I have it working on the local machine. I have fluent set up with remote Linux nodes and a remote working directory and when using that option it gives the error from before.

 

Thanks,
Alex

abenhadj posted this 01 July 2019

Summary: 1/Linux nodes 2/host is windows 3/you can compile on the nodes directly?

Best regards,

Amine

soloviev posted this 01 July 2019

Hello,

I am not sure what your last reply meant. What would direct fluent to compile on the nodes directly if that is not the default?

Thanks,

Alex

abenhadj posted this 01 July 2019

I wanted to summarize the problem. Are you able to compile on Linux nodes by just logging on them directly without using remote Linux nodes from Fluent launcher?

Best regards,

Amine

abenhadj posted this 01 July 2019

Summary is required so that system experts might help here.

Best regards,

Amine

soloviev posted this 01 July 2019

Hello,


We are relatively new to compiling code. Not sure how to test this. I was under the impression that Linux had a compiler already installed correct?

 

Thanks,
Alex

abenhadj posted this 02 July 2019

You need to check if gcc is installed.

Best regards,

Amine

soloviev posted this 02 July 2019

Thank you.

 

I have checked that gcc is installed and it is. I also tested the compiler using a .c file and it indeed compiled the code.

 

Thanks, 

Alex

Show More Posts
Close