Fluids

Fluids

Environment and Linking issues

    • zwhite
      Subscriber

      I am trying to run a UDF on my geometry by get errors about momentum instability. The code can run on another geometry that I have that imports a just a msh.cas file. The code can compile and load but the terminal output is different Ansys' help documentation. I think the environment is not being recognized when I open this model through workbench. How can I get my terminal to output a similar message as Ansys Fluent, in that it resolves the "usage: cl [ option... ] filename... [ /link linkoption... ]"

    • zwhite
      Subscriber

      My Ansys terminal output:

      Preparing mesh for display...

      Done.

      Copied C:\Users\me\Downloads\MY_UDF.c to libudf\src

      (system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_host\SConstruct" ")

      1 file(s) copied.

      (system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\src\udf\scons_default.bat "libudf\win64\3ddp_host\scons_test.bat" ")

      1 file(s) copied.

      Files udf_names.c and user_nt.udf in 3ddp_host are up-to-date.

      (system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\src\udf\makefile_nt.udf "libudf\win64\3ddp_host\makefile" ")

      1 file(s) copied.

      (chdir "libudf")(chdir "win64\3ddp_host")

      C:\Users\me\Downloads\TryV1_files\dp0\FFF-1\Fluent\libudf\win64\3ddp_host>rem

       

      C:\Users\me\Downloads\TryV1_files\dp0\FFF-1\Fluent\libudf\win64\3ddp_host>rem Copyright 1987-2021 ANSYS, Inc. All Rights Reserved.

       

      C:\Users\me\Downloads\TryV1_files\dp0\FFF-1\Fluent\libudf\win64\3ddp_host>rem

      Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x64

      Copyright (C) Microsoft Corporation. All rights reserved.

       

      usage: cl [ option... ] filename... [ /link linkoption... ]

       

      Microsoft (R) Program Maintenance Utility Version 12.00.21005.1

      Copyright (C) Microsoft Corporation. All rights reserved.

       

      (system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\src\udf\sconstruct.udf "libudf\win64\3ddp_node\SConstruct" ")

      1 file(s) copied.

      (system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\src\udf\scons_default.bat "libudf\win64\3ddp_node\scons_test.bat" ")

      1 file(s) copied.

      Files udf_names.c and user_nt.udf in 3ddp_node are up-to-date.

      (system "copy "C:\PROGRA~1\ANSYSI~1\v212\fluent"\fluent21.2.0\src\udf\makefile_nt.udf "libudf\win64\3ddp_node\makefile" ")

      1 file(s) copied.

      (chdir "libudf")(chdir "win64\3ddp_node")

      C:\Users\me\Downloads\TryV1_files\dp0\FFF-1\Fluent\libudf\win64\3ddp_node>rem

       

      C:\Users\me\Downloads\TryV1_files\dp0\FFF-1\Fluent\libudf\win64\3ddp_node>rem Copyright 1987-2021 ANSYS, Inc. All Rights Reserved.

       

      C:\Users\me\Downloads\TryV1_files\dp0\FFF-1\Fluent\libudf\win64\3ddp_node>rem

      Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x64

      Copyright (C) Microsoft Corporation. All rights reserved.

       

      usage: cl [ option... ] filename... [ /link linkoption... ]

       

      Microsoft (R) Program Maintenance Utility Version 12.00.21005.1

      Copyright (C) Microsoft Corporation. All rights reserved.

       

      Done.

      • zwhite
        Subscriber

        Ansys help documentation output

        Copied E:\/E:\udfexample.c to libudf\src

        Creating user_nt.udf file for 3d_host ...

        (system "copy C:\Program Files\ANSYS Inc\v212\fluent\fluent21.2.0\src\udf\makefile_nt.udf "libudf\

        win64\3d_host\makefile" ")

                1 file(s) copied.

        (chdir "libudf")(chdir "win64\3d_host")# Generating ud_io1.h

        udfexample.c

        # Generating udf_names.c because of makefile udfexample.obj

        udf_names.c

        # Linking libudf.dll because of makefile user_nt.udf udf_names.obj udfexample.obj

        Microsoft (R) Incremental Linker Version 12.00.31101.0

        Copyright (C) Microsoft Corporation.  All rights reserved.

         

           Creating library libudf.lib and object libudf.exp

        Creating user_nt.udf file for 3d_node ...

        (system "copy C:\Program Files\ANSYS Inc\v212\fluent\fluent21.2.0\src\udf\makefile_nt.udf "libudf\

        win64\3d_host\makefile" ")

                1 file(s) copied.

        (chdir "libudf")(chdir "win64\3d_node")# Generating ud_io1.h

        udfexample.c

        # Generating udf_names.c because of makefile udfexample.obj

        udf_names.c

        # Linking libudf.dll because of makefile user_nt.udf udf_names.obj udfexample.obj

        Microsoft (R) Incremental Linker Version 12.00.31101.0

        Copyright (C) Microsoft Corporation.  All rights reserved.

         

           Creating library libudf.lib and object libudf.exp

         

        Done.

        Additional Info:

        I open a workbench file that uses the Fluent workbench template in creating a geometry and mesh. Fluent is opened through workbench and I open workbench directly through my start window. The built-in compiler also causes momentum instability with this geometry but not with the independent mesh.cas file.

        Environment variables paths:

        C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools

        C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC

        C:\Program Files\ANSYS Inc\v212\fluent\ntbin\win64

        C:\Program Files\ANSYS Inc\v212\fluent\ntbin\clang\lib

        C:\Program Files\ANSYS Inc\v212\fluent\ntbin\clang\10\Include\10.0.18362.0\ucrt

Viewing 1 reply thread
  • You must be logged in to reply to this topic.