CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Error LNK 1107 When Linking UDF with Precompiled Fortran ObjectFiles

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2018, 02:00
Default Error LNK 1107 When Linking UDF with Precompiled Fortran ObjectFiles
New Member
bo wang
Join Date: Feb 2018
Posts: 2
Rep Power: 0
bo_5042 is on a distinguished road
Hi all,

I'm working on a conjugated heat transfer problem on ANSYS FLUENT 18.2 (academic version) on a x64 Windows 10 OS. I intend to link precompiled FORTRAN object files to UDF to generate a time-dependent radiative flux boundary condition on a solid-gas interface. I got stuck with error LNK 1107. The error message is:

In the error message, af_mc_cp.c is the source UDF file, calc_type_intr.o, calc_type_derv.o, calc_type.o, and calculation_q.o are precompiled object files.

To link the object files to the UDF, I followed the instructions in Chapter 5 Compiling UDFs in the Ansys Fluent Customization Manual (v18.2). No relevant information about this error has been given in the manual.

I tried to remove the external function in the UDF, as well as the object files, with modification made to the user_nt.udf files accordingly. The UDF works properly. I think this suggests that the error is about the linking process rather than the UDF itself. Online search of LNK 1107 also confirms it's an linking error. However, I didn't get a clue due to the lack of pertinent knowledge.

The set-ups in user_nt.udf in 3ddp_host are

and those in 3ddp_node are

The objective files are precompiled with gfortran compiler in Ubuntu. The flags for the object files are

Much appreciation if you could point out the potential mistakes that I might have made!

bo_5042 is offline   Reply With Quote

Old   April 10, 2018, 12:35
New Member
Join Date: Mar 2017
Posts: 14
Rep Power: 8
Sowmi is on a distinguished road
Hai Bo
I am too working in conjugate heat transfer between fluid and solid region in fluent. I need to modify heat flux term in coupled boundary condition with additional source term. I am trying to use UDF to get heat flux profile. Whether using UDF it will be possible to apply heat flux to the boundary. Can u give me few suggestions.
Sowmi is offline   Reply With Quote


fortran, udf compile

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Linking issues User Fortran Anil CFX 3 February 24, 2017 22:48
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 01:52
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Linking fortran and c vasanth Main CFD Forum 3 January 29, 2005 13:38
how to link a fortran procedure with UDF? yinyue FLUENT 0 October 4, 2004 04:49

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