Error LNK 1107 When Linking UDF with Precompiled Fortran ObjectFiles
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: https://image.ibb.co/d6ymjc/error.png 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 https://image.ibb.co/czeOxx/host.png and those in 3ddp_node are https://image.ibb.co/eAgxPc/node.png The objective files are precompiled with gfortran compiler in Ubuntu. The flags for the object files are https://image.ibb.co/bTjqcx/gfortran.png Much appreciation if you could point out the potential mistakes that I might have made! Bo |
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. |
All times are GMT -4. The time now is 10:17. |