|
[Sponsors] |
The UDF library you are trying to load (libudf) is not compiled for parallel use |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 31, 2023, 17:56 |
The UDF library you are trying to load (libudf) is not compiled for parallel use
|
#1 |
New Member
Mohammed AlMosallam
Join Date: Feb 2013
Posts: 2
Rep Power: 0 |
I am working with ANSYS Fluent 19R1 and VS2015 and when I try to load my UDF I get the following error:
Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).\n\nThe system cannot find the file specified. \n\nC:\Users\mhsn7\Documents\case\libudf\win64\2dd p_host\libudf.dll Error Object: #f The message after "load" and "build" the UDF is: Copied C:\Users\~\velocity_inlet.c to libudf\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. ** ************************************************** **************************Creating user_nt.udf file for 2ddp_host ... (system "copy "C:\PROGRA~1\ANSYSI~1\v193\fluent"\fluent19.3.0\sr c\udf\makefile_nt.udf "libudf\win64\2ddp_host\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2ddp_host")# Generating ud_io1.h I updated the path variable in "View Advanced System Setting" for VS2015 and Fluent as given in (https://www.cfd-online.com/Wiki/Flue...ows_7_64bit.3F). I started Fluent in serial as well as parallel mode with 0 nodes. An error exists in both modes. My UDF code is serial: #include"udf.h" #define D 300e-6 /* Pipe diameter */ #define L 2400e-6 /* Pipe length */ #define freq 1250 /* frequency */ #define pi 3.141592653589 /* frequency */ /* UDF for Specifying Transient Velocity Profile at the Inlet */ DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = 0.02 + 0.005*cos(7.85*t); } end_f_loop(f, thread) } Anyone please got a clue what the problem might be? Is it a must to write UDF files for parallel execution? Thanks in advance Mohammed |
|
April 1, 2023, 14:22 |
A solution to the problem
|
#2 |
New Member
Mohammed AlMosallam
Join Date: Feb 2013
Posts: 2
Rep Power: 0 |
A note for similar future questions by users:
I just installed VS 2019 alongside ANSYS 2019R1. Updated Environmental Variable in the "path" (View advanced system settings) see (Compile Fluent UDF with Windows 10 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools; C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\bi n\HostX64\x64; C:\Program Files\ANSYS Inc\v193\fluent\ntbin\win64; I started fluent from (x64 native tools command prompt (part of VS 2019)) using the serial option. The compilation process is done without any issues. N.B. ANSYS 2019R1 fluent does not work in my case with VS 2015. Possibly if the most recent version of Visual Studio (VS 2022) is installed with the above-mentioned update of system variables, the compilation process will go smoothly. Thank you. Mohammed |
|
Tags |
compile, error at host, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |