|
[Sponsors] |
January 12, 2022, 11:49 |
error LNK2019: unresolved external symbol
|
#1 |
New Member
David
Join Date: May 2020
Posts: 7
Rep Power: 6 |
Hello everyone, I got the error below while trying to build the UDF for the Zwart Cavitation Model in FLUENT 2019.
Creating library libudf.lib and object libudf.exp zgb_model2(3).obj : error LNK2019: unresolved external symbol __imp__op_pres referenced in function _c_rate C:\PROGRA~1\ANSYSI~1\v194\fluent\fluent19.4.0\mult iport\win64\mpi\shared\mport.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86' C:\PROGRA~1\ANSYSI~1\v194\fluent\fluent19.4.0\win6 4\3ddp_node\fl_mpi1940.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86' libudf.dll : fatal error LNK1120: 1 unresolved externals This is the UDF code; #include "udf.h" #define c_evap 5.0 #define c_con 0.01 #define alfa_n 0.0005 #define Rb 0.000001 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*3.0*alfa_n*(1-mafV[c])/Rb*rhoV[c]*source; else *m_dot = -c_con*3.0*mafV[c]*rhoV[c]/Rb*source; } Please can anyone help? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Caffa 3D code | Waliur Rahman | Main CFD Forum | 0 | May 29, 2018 01:53 |
CGNS Compiling | Diego | Main CFD Forum | 17 | December 21, 2014 02:40 |
using METIS functions in fortran | dokeun | Main CFD Forum | 7 | January 29, 2013 05:06 |
POSDAT problem | piotka | STAR-CD | 4 | June 12, 2009 09:43 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |