|
[Sponsors] |
Error while building udf file: 'ud_io1.h' file not found |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 28, 2022, 06:41 |
Error while building udf file: 'ud_io1.h' file not found
|
#1 |
New Member
Ananya Ghosh
Join Date: Oct 2022
Posts: 1
Rep Power: 0 |
I'm simulating interphase mass transfer from gas to liquid phase using vof model. My udf code:
#include "udf.h" DEFINE_MASS_TRANSFER(liq_gas_source, cell, thread, from_index, from_species_index, to_index, to_species_index) { real m_lg; real T_SAT = 373.15; Thread *gas = THREAD_SUB_THREAD(thread, from_index); Thread *liq = THREAD_SUB_THREAD(thread, to_index); m_lg = 0.; if (C_T(cell, liq) >= T_SAT) { m_lg = -0.1*C_VOF(cell,liq)*C_R(cell,liq)* fabs(C_T(cell,liq)-T_SAT)/T_SAT; } if ((m_lg == 0. ) && (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); } while building this file, console is showing this: (system "copy "C:\PROGRA~1\ANSYSI~1\v211\fluent"\fluent21.1.0\sr c\udf\sconstruct.udf "libudf4\win64\3ddp_node\SConstruct" ") 1 file(s) copied. (system "copy "C:\PROGRA~1\ANSYSI~1\v211\fluent"\fluent21.1.0\sr c\udf\scons_test.bat "libudf4\win64\3ddp_node\scons_test.bat" ") 1 file(s) copied. (chdir "libudf4")(chdir "win64\3ddp_node") C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>rem C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>rem Copyright 1987-2021 ANSYS, Inc. All Rights Reserved. C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>rem C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>set PYTHONHOME=C:\PROGRA~1\ANSYSI~1\v211\fluent/../commonfiles/CPython/3_7/winx64/Release/python C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>set PYTHONPATH=C:\PROGRA~1\ANSYSI~1\v211\fluent/../commonfiles/CPython/3_7/winx64/Release/python C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>set FLUENT_UDF_COMPILER=clang C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>set FLUENT_UDF_CLANG=builtin C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node>"C:\PROGRA~1\A NSYSI~1\v211\fluent/../commonfiles/CPython/3_7/winx64/Release/python/scons" scons: Reading SConscript files ... Compiler used is "C:\PROGRA~1\ANSYSI~1\v211\fluent"\ntbin\clang\bin \clang-cl Linker used is "C:\PROGRA~1\ANSYSI~1\v211\fluent"\ntbin\clang\bin \lld-link Copy("C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node\resolve.exe", "C:\PROGRA~1\ANSYSI~1\v211\fluent\ntbin\win64\reso lve.exe") c_sources ['udf_names.c'] c_sources_ [] scons: done reading SConscript files. scons: Building targets ... "C:\PROGRA~1\ANSYSI~1\v211\fluent"\ntbin\clang\bin \clang-cl /c /DUDF_EXPORTING /DUDF_NT /DWIN64 /EHa /wd4224 -Wno-return-type -Wno-implicit-function-declaration -Wno-comment -Wno-incompatible-library-redeclaration -Wno-reserved-user-defined-literal /clang:-std=c99 -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\win6 4\3ddp_node -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ main -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ addon-wrapper -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ io -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ species -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ pbns -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ numerics -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ sphysics -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ storage -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ mphase -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ bc -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ models -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ material -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ amg -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ util -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ mesh -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ udf -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ ht -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ dx -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ turbulence -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ acoustics -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ parallel -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ etc -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ ue -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ dpm -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ dbns -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\cort ex\src -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\clie nt\src -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\tgri d\src -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\PRIM E\tgrid\src -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\mult iport\src -I C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\mult iport\mpi_wrapper\src -I C:\PROGRA~1\ANSYSI~1\v211\fluent\include -I "C:\Users\lenovo\Desktop\Ansys Files\Helical coil and straight pipe_files\user_files\straight pipe\short pipe\vofudf\libudf4\win64\3ddp_node" -I C:\PROGRA~1\ANSYSI~1\v211\fluent\ntbin\clang\MSVC\ 14.10.25017\include -I C:\PROGRA~1\ANSYSI~1\v211\fluent\ntbin\clang\x64\l ib\clang\10.0.0\include -I C:\PROGRA~1\ANSYSI~1\v211\fluent\ntbin\clang\10\In clude\10.0.18362.0\shared -I C:\PROGRA~1\ANSYSI~1\v211\fluent\ntbin\clang\10\In clude\10.0.18362.0\ucrt -I C:\PROGRA~1\ANSYSI~1\v211\fluent\ntbin\clang\10\In clude\10.0.18362.0\um udf_names.c In file included from udf_names.c:3: In file included from C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ udf\udf.h:22: In file included from C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ main\global.h:249: In file included from C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ storage\var.h:10: C:\PROGRA~1\ANSYSI~1\v211\fluent\ntbin\clang\10\In clude\10.0.18362.0\shared\basetsd.h(322,12): warning: cast to 'void * __ptr32' from smaller integer type 'unsigned long' [-Wint-to-void-pointer-cast] return((void * POINTER_32) (unsigned long) (ULONG_PTR) p); ^ In file included from udf_names.c:3: C:\PROGRA~1\ANSYSI~1\v211\fluent\fluent21.1.0\src\ udf\udf.h(79,12): fatal error: 'ud_io1.h' file not found # include "ud_io1.h" ^~~~~~~~~~ 1 warning and 1 error generated. scons: *** [udf_names.obj] Error 1 scons: building terminated because of errors. How can solve this problem? Please help its urgent |
|
Tags |
ansys fluent, interphase mass transfer, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 04:52 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |