|
[Sponsors] |
Error LNK 1107 When Linking UDF with Precompiled Fortran ObjectFiles |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 15, 2018, 02:00 |
Error LNK 1107 When Linking UDF with Precompiled Fortran ObjectFiles
|
#1 |
New Member
bo wang
Join Date: Feb 2018
Posts: 2
Rep Power: 0 |
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 |
|
April 10, 2018, 12:35 |
|
#2 |
New Member
sowmi
Join Date: Mar 2017
Posts: 14
Rep Power: 9 |
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. |
|
Tags |
fortran, udf compile |
|
|
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 |