CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Unable to open file when loading UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2022, 05:30
Default Unable to open file when loading UDF
  #1
New Member
 
Join Date: May 2022
Posts: 2
Rep Power: 0
Rampa is on a distinguished road
Hi everyone, I'm trying to simulate 2D hybrid rocket combustion using an UDF for the inlet mass flow rate at the solid fuel boundary. When I compile the UDF (using the method involving the Visual Studio command prompt) everything works fine and fluent returns this:


Code:
Copied C:\Users\alera\OneDrive\Desktop\UDF/udf_rr_HTPB_gradFL.c to libudf\src
Creating user_nt.udf file for 2ddp_host ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v192\fluent"\fluent19.2.0\src\udf\makefile_nt.udf "libudf\win64\2ddp_host\makefile" ")
        1 file copied.
(chdir "libudf")(chdir "win64\2ddp_host")# Generating ud_io1.h
udf_rr_HTPB_gradFL.c
# Generating udf_names.c because of makefile udf_rr_HTPB_gradFL.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj udf_rr_HTPB_gradFL.obj
Microsoft (R) Incremental Linker Version 14.29.30038.1
Copyright (C) Microsoft Corporation.  All rights reserved.

   Creation of library libudf.lib and object libudf.exp
Creating user_nt.udf file for 2ddp_node ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v192\fluent"\fluent19.2.0\src\udf\makefile_nt.udf "libudf\win64\2ddp_node\makefile" ")
        1 file copied.
(chdir "libudf")(chdir "win64\2ddp_node")# Generating ud_io1.h
udf_rr_HTPB_gradFL.c
# Generating udf_names.c because of makefile udf_rr_HTPB_gradFL.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj udf_rr_HTPB_gradFL.obj
Microsoft (R) Incremental Linker Version 14.29.30038.1
Copyright (C) Microsoft Corporation.  All rights reserved.

   Creation of library libudf.lib and object libudf.exp

Done.

Then when I press load fluent prints this thing below and "crashes" (it doesn't close but basically becomes unusable and weird, commands are no more executed for example, I can't retry loading and the only way is to close the application):


Code:
Opening library "C:\Users\alera\OneDrive\Desktop\UDF\libudf"...
Library "C:\Users\alera\OneDrive\Desktop\UDF\libudf\win64\2ddp_host\libudf.dll" opened

Unable to open file

 The fl process could not be started.
MPI Application rank 0 exited before MPI_Finalize() with status -1073740791

I've already tried starting fluent in parallel and serial mode, in single and double precision, and basically searched through all internet but found nothing. Can someone please help me? I'm going crazy with this error.

P.S. my Ansys version is 19.2 and my OS is windows 11

Thank you in advance
Rampa is offline   Reply With Quote

Old   May 8, 2022, 05:54
Default
  #2
New Member
 
Join Date: May 2022
Posts: 2
Rep Power: 0
Rampa is on a distinguished road
Solved: The problem was in the UDF itself that executed a piece of code that would force fluent to exit if a .txt input file was not present in the src folder. The error was so generic that I couldn't understand it. I wish my prof that gave me the UDF said me this beforehand .

Sorry for the bothering
Rampa is offline   Reply With Quote

Reply

Tags
load error, udf, unable to open file


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 16:05
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59


All times are GMT -4. The time now is 22:05.