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

Error: udf compilation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2016, 00:19
Default Error: udf compilation
  #1
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
Hi, when I open fluent using cmd prompt am getting the error

Error: sopenoutputfile: unable to open file for output
Error Object: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\cleanup-fluent-HP-3964.bat"

Later when I build udf library ignoring previous error I end up with

Copied e:\project/source.c to libudf\src
Copied e:\project/header.h to libudf\src
Creating user_nt.udf file for 2ddp ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v160\fluent"\fluent16.0.0\sr c\udf\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\2ddp")# Generating ud_io1.h
source.c
# Generating udf_names.c because of makefile source.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj source.obj
Microsoft (R) Incremental Linker Version 12.00.31010.0
Copyright (C) Microsoft Corporation. All rights reserved.

Creating library libudf.lib and object libudf.exp
source.obj : error LNK2019: unresolved external symbol fabs referenced in function liq_gas_source
source.obj : error LNK2001: unresolved external symbol _fltused
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
libudf.dll : fatal error LNK1120: 3 unresolved externals

Please can anyone advice me what to do to solve this.
Thank you.
SAM S is offline   Reply With Quote

Old   March 21, 2016, 01:12
Default Problem with UDF hooking
  #2
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
Finally there is no compilation error after I switched my msvs version but when I try to to hook the mass source udf under phase interaction I am getting the error "No user defined functions have been loaded". What should be mistake now? Can anyone help me.

Thank you
SAM S is offline   Reply With Quote

Old   April 5, 2016, 02:17
Default
  #3
New Member
 
Abhay Rana
Join Date: Mar 2016
Posts: 6
Rep Power: 10
abhay.uiet is on a distinguished road
have u figured it out yet???
I have similar problem
abhay.uiet is offline   Reply With Quote

Old   April 5, 2016, 05:04
Default
  #4
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
Hi, I was using the macro mass transfer in my udf so for this case the following command has to be given in TUI. "solve/set/expert" then for linearized mass transfer? give no. It worked for me. I got this help from another thread in forum.
SAM S is offline   Reply With Quote

Reply


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
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 05:21
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 05:56
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 06:07
Compilation error with uparm.f Raghu Siemens 2 May 30, 2007 02:09
Compilation Error.... Arnab Siemens 4 September 12, 2004 15:54


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