找回密码
 立即注册

QQ登录

只需一步,快速开始

微信扫码登录

搜索
查看: 18|回复: 0

[求助] 2024R1fluent中udf无法正常编译

[复制链接]

1

主题

0

回帖

6

积分

列兵

积分
6
发表于 2 小时前 | 显示全部楼层 |阅读模式
有没有大佬帮忙解决一下fluent中udf无法正常编译的问题,疑似是无法正常导入2022VS的编译环境,在搜索完2010VS版本的编译环境不存在后就不搜索了

Copy "C:\Users\123\Desktop\udf-2.22.c" to "libudf\src"


Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.
Compiler and linker: Clang (builtin)
MissingConfiguration: registry dir C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ not found on the filesystem:
  File "C:\Users\123\Desktop\libudf\win64\3ddp_host\SConstruct", line 20:
    env = Environment(variables=vars)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Environment.py", line 999:
    apply_tools(self, tools, toolpath)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Environment.py", line 102:
    env.Tool(tool)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Environment.py", line 1844:
    tool(self)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\__init__.py", line 269:
    self.generate(env, *args, **kw)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\default.py", line 40:
    for t in SCons.Tool.tool_list(env['PLATFORM'], env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\__init__.py", line 1255:
    linker = FindTool(linkers, env) or linkers[0]
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\__init__.py", line 1140:
    if t.exists(env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\linkloc.py", line 104:
    if msvs_exists(env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 476:
    return (len(get_installed_visual_studios(env)) > 0)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 424:
    if vs.get_executable(env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 129:
    executable = self.find_executable(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 105:
    vs_dir = self.get_vs_dir(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 138:
    vs_dir = self.find_vs_dir(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 100:
    vs_dir = self.find_vs_dir_by_vc(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 69:
    dir = SCons.Tool.MSCommon.vc.find_vc_pdir(env, self.vc_version)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vc.py", line 469:
    raise MissingConfiguration("registry dir {} not found on the filesystem".format(comps))

Copyright 1987-2024 ANSYS, Inc. All Rights Reserved.
Compiler and linker: Clang (builtin)
MissingConfiguration: registry dir C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ not found on the filesystem:
  File "C:\Users\123\Desktop\libudf\win64\3ddp_node\SConstruct", line 20:
    env = Environment(variables=vars)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Environment.py", line 999:
    apply_tools(self, tools, toolpath)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Environment.py", line 102:
    env.Tool(tool)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Environment.py", line 1844:
    tool(self)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\__init__.py", line 269:
    self.generate(env, *args, **kw)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\default.py", line 40:
    for t in SCons.Tool.tool_list(env['PLATFORM'], env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\__init__.py", line 1255:
    linker = FindTool(linkers, env) or linkers[0]
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\__init__.py", line 1140:
    if t.exists(env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\linkloc.py", line 104:
    if msvs_exists(env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 476:
    return (len(get_installed_visual_studios(env)) > 0)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 424:
    if vs.get_executable(env):
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 129:
    executable = self.find_executable(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 105:
    vs_dir = self.get_vs_dir(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 138:
    vs_dir = self.find_vs_dir(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 100:
    vs_dir = self.find_vs_dir_by_vc(env)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vs.py", line 69:
    dir = SCons.Tool.MSCommon.vc.find_vc_pdir(env, self.vc_version)
  File "E:\Ansys\ANSYS Inc\v241\commonfiles\CPython\3_10\winx64\Release\python\lib\site-packages\scons-4.0.1-py3.10.egg\SCons\Tool\MSCommon\vc.py", line 469:
    raise MissingConfiguration("registry dir {} not found on the filesystem".format(comps))

DESKTOP-HVHRLHE: Opening library "C:\Users\123\Desktop\libudf"...
ERROR: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).
����������������������


C:\\Users\\123\\Desktop\\libudf\\win64\\3ddp_host\\libudf.dll

Done.

DESKTOP-HVHRLHE: Opening library "C:\Users\123\Desktop\libudf"...
ERROR: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).
����������������������


C:\\Users\\123\\Desktop\\libudf\\win64\\3ddp_node\\libudf.dll

Error: An error occurred in the previous operation.
       The details can be found in the text output.
Error Object: #f




您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

咨询QQ:1359218528|发帖须知!|Archiver|手机版|UG爱好者论坛 ( 京ICP备10217105号-2 )

GMT+8, 2026-8-4 13:10

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表