ANSYS FLUENT – Compile UDF – Solution to ‘nmake’ error

A common error when you compile a UDF file is ‘nmake’:

nmake‘ is not recognized as an internal or external command, operable program or batch file. ‘nmake‘ is not recognized as an internal or external command, operable program or batch file.

And usually it happens because you haven’t Visual Studio installed, you can install any VS version, I always recommend installing the last version.




In this tutorial, I teach you the steps that you need to compile your UDF files

Remember is important use Prompt x64 because ANSYS FLUENT is installed in x64 too.

Readers Comments (8)

  1. Hi, I have tried to follow this video. However, there was occurred an error. that is Error: Error code: 193\n
    Error Object: #f.
    Could you help me to fix it?
    Thank you very much!

    Reply
  2. Hello please can you make video on how to add Fuelcell module addin on ANSYS? I can’t seem to find how to yet. Am new to the software

    Reply
  3. Hi,

    We got the following error:
    “The UDF library you are trying to load (libudf) is not compiled for 2ddp on the current plateform”

    I would appreciate you for any help to resolve this error.

    Thank you,
    Hamid

    Reply
    • Hi friend,
      Are you try the file of this tutorial?
      Check that when you open Fluent is selected 2D.
      Regards

      Reply
  4. I followed this tutorial but I get error code 193 when loading the UDF but the udf is built and the DLL file has been created in my working directory.. So please help me out in this problem

    Reply
    • Hi friend
      You try this:
      1) Uninstalled some old C++ versions (They appeared in Windows Control Panel);
      2) Installed Microsoft Windows SDK (last version) (available on Microsoft website)
      3) Installed Microsoft Visual Studio (last version) (available on Microsoft website)
      4) Start Fluent from CMD Shell (as this tutorial)
      Regards

      Reply

Leave a comment

Your email address will not be published.


*