|
[Sponsors] |
March 21, 2016, 04:02 |
"No user defined functions have been loaded"
|
#1 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 10 |
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 |
|
March 21, 2016, 04:30 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Maybe you did not solve the compilation problems...
|
|
March 21, 2016, 04:54 |
|
#3 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 10 |
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. |
|
March 21, 2016, 04:58 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
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) |
|
March 21, 2016, 05:22 |
|
#5 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 10 |
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); } |
|
March 21, 2016, 05:44 |
|
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
"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? |
|
March 21, 2016, 06:47 |
|
#7 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 10 |
Thank you for your help. I solved it now
|
|
April 17, 2016, 08:53 |
|
#8 |
New Member
Wang Jie
Join Date: Apr 2016
Posts: 7
Rep Power: 9 |
||
April 19, 2016, 02:22 |
|
#9 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 10 |
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.
|
|
June 20, 2016, 19:09 |
|
#10 |
New Member
SHUJAN
Join Date: Jun 2016
Posts: 17
Rep Power: 9 |
||
June 20, 2016, 19:31 |
|
#11 |
New Member
SHUJAN
Join Date: Jun 2016
Posts: 17
Rep Power: 9 |
||
June 21, 2016, 03:59 |
|
#12 |
Member
Join Date: Oct 2015
Posts: 34
Rep Power: 10 |
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.
|
|
May 29, 2023, 07:29 |
|
#13 |
New Member
Tokk
Join Date: May 2023
Posts: 1
Rep Power: 0 |
||
August 18, 2023, 02:57 |
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 |
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? |
|
August 18, 2023, 03:20 |
|
#15 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 33 |
your udf is not compiled properly
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |