Parallel temperature prandtl udf
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; } |
There is nothing to parallelise here... Just use it.
|
Thanks for your answer, but when I compile it in fluent, it shows error, that the code is not for parallel use.
|
Can you copy that error? I've never seen that one before when you compile...
|
And I assumed you had it working for serial, is that correct?
|
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. |
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". |
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" |
I had split into two lines and wrote in notepad and saved in .c format.
|
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. |
'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. |
Many many thanks for your concern on this thread.
Thanks again. |
All times are GMT -4. The time now is 11:57. |