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

UDF Cavitation problems: Error: chip-exec: function "mass_source_init::libudf" not fo

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2014, 04:29
Default UDF Cavitation problems: Error: chip-exec: function "mass_source_init::libudf" not fo
  #1
New Member
 
Agnes
Join Date: Jun 2014
Posts: 7
Rep Power: 11
Walderdbeere is on a distinguished road
I try to implement UDF:

DEFINE_CAVITATION_RATE

The udf:

/************************************************** *********************
UDF that is an example of a cavitation model different from default.
Can be interpreted or compiled.
************************************************** **********************/
#include "udf.h"
#define c_evap 1.0
#define c_con 0.1

DEFINE_CAVITATION_RATE(c_rate,c,t,p,rhoV,rhoL,mafV ,p_v,cigma,f_gas, m_dot)
{
real p_vapor = *p_v;
real dp, dp0, source;
p_vapor += MIN(0.195*C_R(c,t)*C_K(c,t), 5.0*p_vapor);
dp = p_vapor - ABS_P(p[c], op_pres);
dp0 = MAX(0.1, ABS(dp));
source = sqrt(2.0/3.0*rhoL[c])*dp0;
if(dp > 0.0)
*m_dot = c_evap*rhoV[c]*source;
else
*m_dot = -c_con*rhoL[c]*source;
}

After compilation I see announcement:

Creating user_nt.udf file for 3d ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v145\fluent"\fluent14.5.0\sr c\makefile_nt.udf "libudf\ntx86\3d\makefile" ")
Liczba skopiowanych plik˘w: 1.
(chdir "libudf")()
(chdir "ntx86\3d")()
# Generating ud_io1.h
c_rate1.c
# Generating udf_names.c because of makefile c_rate1.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj c_rate1.obj
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creating library libudf.lib and object libudf.exp

Done.

During calculation:

Error: chip-exec: function "mass_source_init::libudf" not found.
Error: chip-exec: function "singhal_fluent::libudf" not found.

iter continuity x-velocity y-velocity z-velocity k epsilon vf-water-vap time/iter
Error: chip-exec: function "mass_source_adjust::libudf" not found.
Error: chip-exec: function "singhal_fluent::libudf" not found.


Where is the problem?
Walderdbeere is offline   Reply With Quote

Old   June 9, 2014, 07:03
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26
ghost82 will become famous soon enough
I have no problem with your compiled udf.
Turn on the Singhal et al cavitation model (in fluent command window, solve-->set-->expert), retain all defaults and change to yes to use the Singhal model.
Then compile the udf and hook the udf in function hooks in cavitation mass rate.

Daniele
ghost82 is offline   Reply With Quote

Old   June 9, 2014, 07:37
Default
  #3
New Member
 
Agnes
Join Date: Jun 2014
Posts: 7
Rep Power: 11
Walderdbeere is on a distinguished road
Thank you very much, now it's working, but I don't have the results, that I expected. Nothing has happend, there is no vapour in my model and I don't know why. I compared with the Zwart model, which is in Fluent and in this solutions I see vapour.
Walderdbeere 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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
Problems with changing turbulent viscosity by UDF sarah_ron FLUENT 0 February 14, 2005 00:31
Problems with loading udf Mukund FLUENT 6 July 6, 2004 02:13
DEFINE_GEOM UDF Problems Pat FLUENT 0 August 14, 2003 13:16
Some problems about UDF in fluent5.4 Mark FLUENT 2 August 14, 2001 08:03


All times are GMT -4. The time now is 03:35.