|
[Sponsors] |
March 9, 2021, 10:49 |
Parallel temperature prandtl udf
|
#1 |
New Member
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8 |
How can I parallelize the following temperature prandtl number udf??
/* Specifying a Constant Temperature Prandtl Number */ #include "udf.h" DEFINE_PRANDTL_T(user_pr_t,c,t) { real pr_t; pr_t = 0.25; return pr_t; } |
|
March 9, 2021, 15:42 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
There is nothing to parallelise here... Just use it.
|
|
March 9, 2021, 15:48 |
|
#3 |
New Member
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8 |
Thanks for your answer, but when I compile it in fluent, it shows error, that the code is not for parallel use.
|
|
March 10, 2021, 03:08 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Can you copy that error? I've never seen that one before when you compile...
|
|
March 10, 2021, 03:10 |
|
#5 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
And I assumed you had it working for serial, is that correct?
|
|
March 10, 2021, 03:14 |
|
#6 |
New Member
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8 |
Following is the error:
The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). I had not worked it for serial, I just wrote the script and compiled then it shows the above error. |
|
March 10, 2021, 09:30 |
|
#7 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
This is not the error you get when you compile. This is the error you get when you try to load. (Read it!)
Show the error that you get after you click "build". |
|
March 10, 2021, 09:32 |
|
#8 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Oh, I hope that you did not really put
Code:
#include "udf.h" DEFINE_PRANDTL_T(user_pr_t,c,t) Code:
#include "udf.h" DEFINE_PRANDTL_T(user_pr_t,c,t) |
|
March 11, 2021, 03:10 |
|
#9 |
New Member
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8 |
I had split into two lines and wrote in notepad and saved in .c format.
|
|
March 11, 2021, 03:51 |
|
#10 |
New Member
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8 |
When I click build then TUI shows the below message.
Copied E:\Projects\Gaurav\Simulation\18\pr2.c to libudf45\src Creating user_nt.udf file for 3ddp_host ... (system "copy "C:\PROGRA~1\ANSYSI~1\v201\fluent"\fluent20.1.0\sr c\udf\makefile_nt.udf "libudf45\win64\3ddp_host\makefile" ") 1 file(s) copied. (chdir "libudf45")(chdir "win64\3ddp_host")'nmake' is not recognized as an internal or external command, operable program or batch file. Creating user_nt.udf file for 3ddp_node ... (system "copy "C:\PROGRA~1\ANSYSI~1\v201\fluent"\fluent20.1.0\sr c\udf\makefile_nt.udf "libudf45\win64\3ddp_node\makefile" ") 1 file(s) copied. (chdir "libudf45")(chdir "win64\3ddp_node")'nmake' is not recognized as an internal or external command, operable program or batch file. Done. |
|
March 11, 2021, 04:24 |
|
#11 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
'nmake' is not recognized as an internal or external command,
operable program or batch file. This is your error. Search for this text on this forum. It is a Fluent installation / configuration problem, it has nothing to do with your code. Your code is not even read. I am no expert on how to solve that.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
March 11, 2021, 06:36 |
|
#12 |
New Member
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8 |
Many many thanks for your concern on this thread.
Thanks again. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inlet temperature as a function of outlet temperature UDF | wimblo | Fluent UDF and Scheme Programming | 5 | November 25, 2021 07:06 |
problem in temperature and liquid fraction value in the udf | durg | FLUENT | 0 | October 23, 2018 02:52 |
Outlet temperature to temperature boundary condition of velocity inlet. (UDF) | dillon | Fluent UDF and Scheme Programming | 3 | March 25, 2018 12:06 |
Parallel UDF Segmentation fault error | KevinZ09 | Fluent UDF and Scheme Programming | 1 | January 9, 2017 06:30 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |