-
-
November 7, 2018 at 2:30 pm
pawar002
SubscriberÂ
ID   Hostname Core  O.S.   PID      Vendor           Â
Â
n0-15Â node002Â Â 16/32Â Linux-64Â 120698-120713Â Intel(R) Xeon(R) E5-2683 v4Â
host  node002     Linux-64 120237     Intel(R) Xeon(R) E5-2683 v4Â
Â
MPI Option Selected: ibmmpi
Selected system interconnect: mpi-auto-selected
Â
/define/user-defined interpreted-functions "/home/vrp1/Fluent/ETC_RV/UDF.c" "cpp" 10000 yes
Â
cpp -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/main" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/addon-wrapper" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/io" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/species" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/pbns" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/numerics" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/sphysics" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/storage" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/mphase" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/bc" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/models" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/material" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/amg" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/util" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/mesh" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/udf" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/ht" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/dx" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/turbulence" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/parallel" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/etc" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/ue" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/dpm" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/src/dbns" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/tgrid/src" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/cortex/src" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/client/src" -I"/home/ansys_inc/v190/fluent/fluent19.0.0/multiport/src" -I. -DUDFCONFIG_H="
" "/home/vrp1/Fluent/ETC_RV/UDF.c"
Â
Multicore processors detected. Processor affinity set!
Â
Filling Host Domain 0 [1.10552 sec]
Computing the solar fluxes on the host process using 16 omp threads (as many number of threads as number of fluent node processes). Use the "/parallel/thread-number-control" TUI to select a different number of thread.
Â
Fair Weather Conditions:
 Sun Direction Vector: X: -0.0785403, Y: 0.170758, Z: 0.982178
 Sunshine Fraction: 1
 Direct Normal Solar Irradiation [W/m^2]: 3679.35
Â
Freeing Host Domain
Error: chip-exec: function "wall_flux" not found.
Error: chip-exec: function "wall_flux" not found.
Â
-
November 7, 2018 at 2:56 pm
Rob
Forum ModeratorThe model is expecting a UDF to define the wall_flux but it's not available. When you interpret the UDF has it definitely worked?
-
November 7, 2018 at 3:02 pm
pawar002
Subscriberactually while i am interpreting it in my computer it works well, but when i am trying to submit the job on (OS: Linux based) HPC i am getting above error ("Error: chip-exec: function "wall_flux" not found.").Â
-
November 7, 2018 at 3:43 pm
Rob
Forum ModeratorAre you setting up on Windows and then transferring files to LINUX? If so you need to run this command on the LINUX side:
dos2unix something.c  Â
Windows adds a load of whitespace characters that cause problems on LINUX.Â
-
November 7, 2018 at 4:03 pm
pawar002
Subscriberyes, I am following below mentioned steps while submitting the job,
dos2unix abc.jou
dos2unix udf.c
dos2unix pbs_submit.dat
Â
but still, I am getting an error.
-
November 7, 2018 at 4:06 pm
Rob
Forum ModeratorIn which case can you also check the udf is being loaded on read in. It's possible it's trying to read from the original path.Â
-
November 7, 2018 at 4:19 pm
pawar002
SubscriberError: "/home/vrp1/Fluent/ETC_RV/UDF.c": line 1: syntax errorÂ
UDF Code
#include "udf.h"Â (line:1)
DEFINE_PROFILE(wall_flux,th,i)
{
face_t f;
real flow_time=CURRENT_TIME;
begin_f_loop(f,th)
Â
{
F_PROFILE(f,th,i) = -0.000002*flow_time*flow_time+0.0848*flow_time+36.785;
}
end_f_loop(f,th);
}
Â
Â
-
November 7, 2018 at 4:58 pm
Rob
Forum ModeratorCan you open the file on LINUX and check if there are any white space characters. The code ought to work, but obviously isn't.Â
-
November 7, 2018 at 5:31 pm
-
November 7, 2018 at 8:18 pm
pawar002
Subscribercpp: /home/vrp1/Fluent/ETC_RV/UDF.c: Value too large for defined data type (What does it mean i am using ANSYS 19.0, OS:Linux)
Error: "/home/vrp1/Fluent/ETC_RV/UDF.c": line 1: syntax error. ( i have also tried dos2unix UDF.c)
Â
(everything is working perfectly on windows getting issue while submitting it to the HPC)
Please help me to solve this issue.
Â
Thanks
-
November 7, 2018 at 9:09 pm
Amine Ben Hadj Ali
Ansys EmployeeTry compiling on Linux.
-
November 7, 2018 at 9:15 pm
pawar002
SubscriberHi Abenhadj,
Â
Could you please guide me how to compile UDF on Linux using Journal file?
Â
Thank you
-
November 8, 2018 at 12:08 pm
Rob
Forum ModeratorLook in the TUI and you'll find the commands under
/define/user-defined Â
Then follow the commands. Use q to come back up a level in the TUI and
to display the list of available commands.Â
Â
-
November 8, 2018 at 5:01 pm
pawar002
SubscriberHi rwoolhou,
Â
Thank you so much for your guidance.
I have compiled the UDF on HPCÂ successfully. But interpreting UDF in FLUENT is much easier. could you please explain to me why it was showing syntax error while IÂ interpreted it. But without any modification, it worked perfectly while I am compiling it.
Â
Thank you.Â
-
November 8, 2018 at 5:16 pm
Rob
Forum ModeratorNot sure. I always add the headers in quote marks, eg
#include "udf.h"
Which you put in the original post, but then you omitted them in the screen grab of the editor. That could make a difference, and it was line 1 that gave the error.Â
Â
In general it's better to compile for compute efficiency and because not all macros & utilities are available in interpreted UDFs.Â
Â
-
November 8, 2018 at 5:21 pm
pawar002
SubscriberThank you Rwoolhou for your help.
-
- The topic ‘getting an error while interpreting UDF in HPC’ is closed to new replies.
-
4663
-
1545
-
1386
-
1230
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
