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

"No user defined functions have been loaded"

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

Reply
 
LinkBack Thread Tools 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: 2
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: 891
Rep Power: 12
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: 2
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: 891
Rep Power: 12
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: 2
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: 891
Rep Power: 12
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: 2
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, 07:53
Default
  #8
New Member
 
Wang Jie
Join Date: Apr 2016
Posts: 7
Rep Power: 2
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, 01:22
Default
  #9
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 2
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, 18:09
Default
  #10
New Member
 
SHUJAN
Join Date: Jun 2016
Posts: 11
Rep Power: 2
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, 18:31
Default
  #11
New Member
 
SHUJAN
Join Date: Jun 2016
Posts: 11
Rep Power: 2
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, 02:59
Default
  #12
Member
 
Join Date: Oct 2015
Posts: 34
Rep Power: 2
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.
SAM S is offline   Reply With Quote

Reply

Thread Tools
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 On
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 09:15
Allocating user defined memory djn FLUENT 2 April 14, 2015 10: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 18:18
CFX 5.5 Roued CFX 1 October 2, 2001 16:49


All times are GMT -4. The time now is 20:11.