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

"No user defined functions have been loaded"

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

Like Tree1Likes
  • 1 Post By SAM S

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2016, 04:02
Default "No user defined functions have been loaded"
  #1
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
After solving the compilation errors when I try to to hook the mass transfer source udf under phase interaction I am getting the error "No user defined functions have been loaded". What should be the mistake now? Can anyone help me please.

Thank you
SAM S is offline   Reply With Quote

Old   March 21, 2016, 04:30
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Maybe you did not solve the compilation problems...
pakk is offline   Reply With Quote

Old   March 21, 2016, 04:54
Default
  #3
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
Thank you for the reply pakk. Herewith I have included the message I got when I build the udf library and loaded it. Could you please have a look at it and advice me what to rectify.

> Copied e:\project/source.c to libudf\src
Copied e:\project/header.h to libudf\src
Creating user_nt.udf file for 2ddp_host ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v160\fluent"\fluent16.0.0\sr c\udf\makefile_nt.udf "libudf\win64\2ddp_host\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\2ddp_host")# 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.31101.0
Copyright (C) Microsoft Corporation. All rights reserved.

Creating library libudf.lib and object libudf.exp
Creating user_nt.udf file for 2ddp_node ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v160\fluent"\fluent16.0.0\sr c\udf\makefile_nt.udf "libudf\win64\2ddp_node\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\2ddp_node")# 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.31101.0
Copyright (C) Microsoft Corporation. All rights reserved.

Creating library libudf.lib and object libudf.exp

Done.

Opening library "E:\project\libudf"...
Library "E:\project\libudf\win64\2ddp_host\libudf.dll" opened
Opening library "E:\project\libudf"...
Library "E:\project\libudf\win64\2ddp_node\libudf.dll" opened
Opening library "E:\project\libudf"...
Library "E:\project\libudf\win64\2ddp_node\libudf.dll" opened
Opening library "E:\project\libudf"...
Library "E:\project\libudf\win64\2ddp_node\libudf.dll" opened
Opening library "E:\project\libudf"...
Library "E:\project\libudf\win64\2ddp_node\libudf.dll" opened
liq_gas_source
Done.
SAM S is offline   Reply With Quote

Old   March 21, 2016, 04:58
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
This suggests that one function is loaded: liq_gas_source.

What type is this? Did you define it with:
Code:
DEFINE_SOURCE (liq_gas_source, c, t, dS, eqn)
pakk is offline   Reply With Quote

Old   March 21, 2016, 05:22
Default
  #5
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
Yes it is been loaded but when I try to hook ( phase interaction --> mass --> mechanism --> user defined), am getting the error.
I will give the code here

#include "udf.h"
#include "math.h"
DEFINE_MASS_TRANSFER(liq_gas_source,cell,thread,fr om_index,from_species_index,to_index, to_species_index)
{
real m_lg;
real T_SAT = 373.15;
real vof_cutoff = 0.05;
Thread *liq = THREAD_SUB_THREAD(thread, from_index);
Thread *gas = THREAD_SUB_THREAD(thread, to_index);
m_lg = 0.0;
if ( (C_VOF(cell,thread) > vof_cutoff ) && (C_VOF(cell,thread) < (1 - vof_cutoff) ))
{
if ((m_lg == 0.0) && (C_T(cell,liq) >= T_SAT))
{
m_lg = -0.1*C_VOF(cell,liq)*C_R(cell,liq)*fabs(C_T(cell,li q)-T_SAT)/T_SAT;
}
if (C_T(cell, gas) <= T_SAT)
{
m_lg = 0.1*C_VOF(cell,gas)*C_R(cell,gas)*fabs(T_SAT-C_T(cell,gas))/T_SAT;
}
}
return (m_lg);
}
SAM S is offline   Reply With Quote

Old   March 21, 2016, 05:44
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
"In order to hook a DEFINE_MASS_TRANSFER UDF to Fluent, you must first issue the TUI command solve/set/expert and enter no at the Linearized Mass Transfer UDF? prompt."

You did that?
pakk is offline   Reply With Quote

Old   March 21, 2016, 06:47
Default
  #7
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
Thank you for your help. I solved it now
SAM S is offline   Reply With Quote

Old   April 17, 2016, 08:53
Default
  #8
New Member
 
Wang Jie
Join Date: Apr 2016
Posts: 7
Rep Power: 9
qhwj1990 is on a distinguished road
Quote:
Originally Posted by SAM S View Post
Thank you for your help. I solved it now
I meet the same problem,could you tell me how do you solve it?
qhwj1990 is offline   Reply With Quote

Old   April 19, 2016, 02:22
Default
  #9
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
In your fluent TUI, you have to type "solve/set/expert" and enter. Next give "no" for linearised mass transfer. now check if your udf is loaded.
SAM S is offline   Reply With Quote

Old   June 20, 2016, 19:09
Default
  #10
New Member
 
SHUJAN
Join Date: Jun 2016
Posts: 17
Rep Power: 9
MDSHUJAN is on a distinguished road
Quote:
Originally Posted by SAM S View Post
Thank you for your help. I solved it now
Sam. I am in similar type of problem, and also my udf is similar to you (LEE model). Can you tell me in detail that how you hook that udf. After build, and loading , i see error that no udf is loaded, when i try to hook it.
MDSHUJAN is offline   Reply With Quote

Old   June 20, 2016, 19:31
Default
  #11
New Member
 
SHUJAN
Join Date: Jun 2016
Posts: 17
Rep Power: 9
MDSHUJAN is on a distinguished road
Quote:
Originally Posted by SAM S View Post
Thank you for your help. I solved it now
Hi. Can you say in detail, how you solve this problem? Which version of ANSYS you can using ?
MDSHUJAN is offline   Reply With Quote

Old   June 21, 2016, 03:59
Default
  #12
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 10
SAM S is on a distinguished road
I am using Ansys 16, and for that problem you need to type the command I earlier mentioned in this thread. You have to provide the answer as no when there is a question about linearized mass transfer.
wxchu84 likes this.
SAM S is offline   Reply With Quote

Old   May 29, 2023, 07:29
Default
  #13
New Member
 
Tokk
Join Date: May 2023
Posts: 1
Rep Power: 0
Tokzhan is on a distinguished road
Quote:
Originally Posted by SAM S View Post
In your fluent TUI, you have to type "solve/set/expert" and enter. Next give "no" for linearised mass transfer. now check if your udf is loaded.
I have same problem. How to solve
Tokzhan is offline   Reply With Quote

Old   August 18, 2023, 02:57
Default Error: No user-defined functions of type udf-type-exchange-property have been loaded
  #14
New Member
 
Victoria
Join Date: Sep 2022
Posts: 4
Rep Power: 3
Shivani is on a distinguished road
I have managed to execute the UDF without any issues, but I am currently facing an error while trying to choose the heat transfer coefficient for interaction.

Error: No user-defined functions of type udf-type-exchange-property have been loaded.
Error Object: #f

Can someone help me in resolving it?
Shivani is offline   Reply With Quote

Old   August 18, 2023, 03:20
Default
  #15
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 33
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
your udf is not compiled properly
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

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
User defined functions abhishek.iiest Fluent UDF and Scheme Programming 4 May 22, 2015 10:15
Allocating user defined memory djn FLUENT 2 April 14, 2015 11:59
user defined scalar vs species transport gvj_mech FLUENT 0 March 27, 2014 15:33
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 19:18
CFX 5.5 Roued CFX 1 October 2, 2001 17:49


All times are GMT -4. The time now is 17:54.