|
[Sponsors] |
Fluent - "No user defined functions have been loaded" error!!!! |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 6, 2017, 09:17 |
Fluent - "No user defined functions have been loaded" error!!!!
|
#1 |
New Member
srrmm27
Join Date: Jan 2017
Posts: 2
Rep Power: 0 |
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; } |
|
February 6, 2017, 09:30 |
|
#2 | |
Member
|
Quote:
Sent from my SM-G900I using CFD Online Forum mobile app |
||
Tags |
ansys16.0, fluent - udf, multiphase modelling, vof phase change |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 00:21 |
Mesquite - Adaptive mesh refinement / coarsening? | philippose | OpenFOAM Running, Solving & CFD | 94 | January 27, 2016 09:40 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 19:43 |
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x | Saxwax | OpenFOAM Installation | 25 | November 29, 2013 05:34 |
checking the system setup and Qt version | vivek070176 | OpenFOAM Installation | 22 | June 1, 2010 12:34 |