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

Fluent - "No user defined functions have been loaded" error!!!!

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By srrmm27

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2017, 10:17
Default Fluent - "No user defined functions have been loaded" error!!!!
  #1
New Member
 
srrmm27
Join Date: Jan 2017
Posts: 2
Rep Power: 0
srrmm27 is on a distinguished road
Hey everyone,
I am trying to simulate a multiphase flow model in a heat pipe using VOF and udf method. I opened fluent via Visual studio 2013 x64 cross command prompt so as to fix the 'nmake' error and I have compiled my UDF successfully.And after loading the compiled udf, when I select 'user-defined' option in Define -> Phase -> Interaction -> mass, I get the error message:"No user defined have been loaded". I also set the Linearized mass transfer to "no" using "solve -> set -> expert" command from TUI, but I still get the error.
When I googled it, I found that there is problem with "loading udfs" in Ansys16 cracked version, so my question is: is there a fix for this issue for the cracked version, or is there any other version of ansys that doesn't result in this kind of error?
P.S: I have also tried to load udf using the Define -> user-defined -> functions ->intrepreted. But it gives me a error in a line that is beyond the last line of my sourceterm. The error it throws is "C:\\Users\\XXXX src\\sourceterm.c: line 65: label "store_vof_norm" not found (pc=58)".
Any help is appreciated.
Cheers,
srrmm27

Attachment:
My sourceterm.c:
#include "udf.h"
#include "sg_mphase.h"
#include "mem.h"
#include "metric.h"
#include "flow.h"
#include "sg.h"
#define T_SAT 373
#define LAT_HT 2455e3
DEFINE_SOURCE(vap_src,cell,pri_th,dS,eqn)
{
real m_dot_v;
Thread *mix_th, *sec_th;
mix_th = THREAD_SUPER_THREAD(pri_th);
sec_th = THREAD_SUB_THREAD(mix_th,1);
/*m_dot_v=0.0;*/
if (C_T(cell,mix_th)>T_SAT)
{
m_dot_v = 0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*(C_T(cell, mix_th)-T_SAT)/T_SAT;
dS[eqn] = 0.0;
}
else if (C_T(cell,mix_th)<T_SAT)
{
m_dot_v = -0.1*C_VOF(cell,pri_th)*C_R(cell, pri_th)*(T_SAT-C_T(cell,mix_th))/T_SAT;
dS[eqn] = -0.1*C_R(cell,pri_th)*(T_SAT-C_T(cell,mix_th))/T_SAT;
}
return m_dot_v;
}
DEFINE_SOURCE(liq_src,cell,sec_th,dS,eqn)
{
real m_dot_l;
Thread *mix_th, *pri_th;
mix_th = THREAD_SUPER_THREAD(sec_th);
pri_th = THREAD_SUB_THREAD(mix_th,0);
/*m_dot_l=0.0;*/
if (C_T(cell,mix_th)>T_SAT)
{
m_dot_l = -0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*(C_T(cell, mix_th)-T_SAT)/T_SAT;
dS[eqn] = -0.1*C_R(cell,sec_th)*(C_T(cell,mix_th)-T_SAT)/T_SAT;
}
else if (C_T(cell,mix_th)<T_SAT)
{
m_dot_l = 0.1*C_VOF(cell,pri_th)*C_R(cell,pri_th)*(T_SAT-C_T(cell,mix_th))/T_SAT;
dS[eqn] =0.0;
}
return m_dot_l;
}
DEFINE_SOURCE(enrg_src,cell,mix_th,dS,eqn)
{
real enrg_dot;
Thread *pri_th, *sec_th;
pri_th = THREAD_SUB_THREAD(mix_th,0);
sec_th = THREAD_SUB_THREAD(mix_th,1);
if (C_T(cell,mix_th)>T_SAT)
{
enrg_dot = -0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*LAT_HT*(C_ T(cell,mix_th)-T_SAT)/T_SAT;
dS[eqn] = -0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*LAT_HT/T_SAT;
}
else if (C_T(cell,mix_th)<T_SAT)
{
enrg_dot = 0.1*C_VOF(cell,pri_th)*C_R(cell,pri_th)*LAT_HT*(T_ SAT-C_T(cell,mix_th))/T_SAT;
dS[eqn] = -0.1*C_VOF(cell,pri_th)*C_R(cell, pri_th)*LAT_HT/T_SAT;
}
return enrg_dot;
}
Ahmed Alkaisi likes this.
srrmm27 is offline   Reply With Quote

Old   February 6, 2017, 10:30
Default
  #2
Member
 
Ahmed Alkaisi's Avatar
 
Ahmed Alkaisi
Join Date: Aug 2015
Location: Australia
Posts: 80
Rep Power: 11
Ahmed Alkaisi is on a distinguished road
Send a message via Skype™ to Ahmed Alkaisi
Quote:
Originally Posted by srrmm27 View Post
Hey everyone,
I am trying to simulate a multiphase flow model in a heat pipe using VOF and udf method. I opened fluent via Visual studio 2013 x64 cross command prompt so as to fix the 'nmake' error and I have compiled my UDF successfully.And after loading the compiled udf, when I select 'user-defined' option in Define -> Phase -> Interaction -> mass, I get the error message:"No user defined have been loaded". I also set the Linearized mass transfer to "no" using "solve -> set -> expert" command from TUI, but I still get the error.
When I googled it, I found that there is problem with "loading udfs" in Ansys16 cracked version, so my question is: is there a fix for this issue for the cracked version, or is there any other version of ansys that doesn't result in this kind of error?
P.S: I have also tried to load udf using the Define -> user-defined -> functions ->intrepreted. But it gives me a error in a line that is beyond the last line of my sourceterm. The error it throws is "C:\\Users\\XXXX src\\sourceterm.c: line 65: label "store_vof_norm" not found (pc=58)".
Any help is appreciated.
Cheers,
srrmm27

Attachment:
My sourceterm.c:
#include "udf.h"
#include "sg_mphase.h"
#include "mem.h"
#include "metric.h"
#include "flow.h"
#include "sg.h"
#define T_SAT 373
#define LAT_HT 2455e3
DEFINE_SOURCE(vap_src,cell,pri_th,dS,eqn)
{
real m_dot_v;
Thread *mix_th, *sec_th;
mix_th = THREAD_SUPER_THREAD(pri_th);
sec_th = THREAD_SUB_THREAD(mix_th,1);
/*m_dot_v=0.0;*/
if (C_T(cell,mix_th)>T_SAT)
{
m_dot_v = 0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*(C_T(cell, mix_th)-T_SAT)/T_SAT;
dS[eqn] = 0.0;
}
else if (C_T(cell,mix_th)<T_SAT)
{
m_dot_v = -0.1*C_VOF(cell,pri_th)*C_R(cell, pri_th)*(T_SAT-C_T(cell,mix_th))/T_SAT;
dS[eqn] = -0.1*C_R(cell,pri_th)*(T_SAT-C_T(cell,mix_th))/T_SAT;
}
return m_dot_v;
}
DEFINE_SOURCE(liq_src,cell,sec_th,dS,eqn)
{
real m_dot_l;
Thread *mix_th, *pri_th;
mix_th = THREAD_SUPER_THREAD(sec_th);
pri_th = THREAD_SUB_THREAD(mix_th,0);
/*m_dot_l=0.0;*/
if (C_T(cell,mix_th)>T_SAT)
{
m_dot_l = -0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*(C_T(cell, mix_th)-T_SAT)/T_SAT;
dS[eqn] = -0.1*C_R(cell,sec_th)*(C_T(cell,mix_th)-T_SAT)/T_SAT;
}
else if (C_T(cell,mix_th)<T_SAT)
{
m_dot_l = 0.1*C_VOF(cell,pri_th)*C_R(cell,pri_th)*(T_SAT-C_T(cell,mix_th))/T_SAT;
dS[eqn] =0.0;
}
return m_dot_l;
}
DEFINE_SOURCE(enrg_src,cell,mix_th,dS,eqn)
{
real enrg_dot;
Thread *pri_th, *sec_th;
pri_th = THREAD_SUB_THREAD(mix_th,0);
sec_th = THREAD_SUB_THREAD(mix_th,1);
if (C_T(cell,mix_th)>T_SAT)
{
enrg_dot = -0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*LAT_HT*(C_ T(cell,mix_th)-T_SAT)/T_SAT;
dS[eqn] = -0.1*C_VOF(cell,sec_th)*C_R(cell,sec_th)*LAT_HT/T_SAT;
}
else if (C_T(cell,mix_th)<T_SAT)
{
enrg_dot = 0.1*C_VOF(cell,pri_th)*C_R(cell,pri_th)*LAT_HT*(T_ SAT-C_T(cell,mix_th))/T_SAT;
dS[eqn] = -0.1*C_VOF(cell,pri_th)*C_R(cell, pri_th)*LAT_HT/T_SAT;
}
return enrg_dot;
}
Can you help me in multiphase evaporation - condensation, please? 😅

Sent from my SM-G900I using CFD Online Forum mobile app
Ahmed Alkaisi is offline   Reply With Quote

Reply

Tags
ansys16.0, fluent - udf, multiphase modelling, vof phase change


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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 06:34
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 13:34


All times are GMT -4. The time now is 12:45.