CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Parallel temperature prandtl udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2021, 10:49
Default Parallel temperature prandtl udf
  #1
New Member
 
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8
gauravkmr is on a distinguished road
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;
}
gauravkmr is offline   Reply With Quote

Old   March 9, 2021, 15:42
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
There is nothing to parallelise here... Just use it.
pakk is offline   Reply With Quote

Old   March 9, 2021, 15:48
Default
  #3
New Member
 
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8
gauravkmr is on a distinguished road
Thanks for your answer, but when I compile it in fluent, it shows error, that the code is not for parallel use.
gauravkmr is offline   Reply With Quote

Old   March 10, 2021, 03:08
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Can you copy that error? I've never seen that one before when you compile...
pakk is offline   Reply With Quote

Old   March 10, 2021, 03:10
Default
  #5
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
And I assumed you had it working for serial, is that correct?
pakk is offline   Reply With Quote

Old   March 10, 2021, 03:14
Default
  #6
New Member
 
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8
gauravkmr is on a distinguished road
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.
gauravkmr is offline   Reply With Quote

Old   March 10, 2021, 09:30
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote

Old   March 10, 2021, 09:32
Default
  #8
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Oh, I hope that you did not really put

Code:
#include "udf.h" DEFINE_PRANDTL_T(user_pr_t,c,t)
literally as one line... In all the examples in the manual, this is split into two lines:

Code:
#include "udf.h"
DEFINE_PRANDTL_T(user_pr_t,c,t)
If you put this as one line, it will probably not compile, and the compiler should have given you an error in line 1...
pakk is offline   Reply With Quote

Old   March 11, 2021, 03:10
Default
  #9
New Member
 
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8
gauravkmr is on a distinguished road
I had split into two lines and wrote in notepad and saved in .c format.
gauravkmr is offline   Reply With Quote

Old   March 11, 2021, 03:51
Default
  #10
New Member
 
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8
gauravkmr is on a distinguished road
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.
gauravkmr is offline   Reply With Quote

Old   March 11, 2021, 04:24
Default
  #11
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
'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".
pakk is offline   Reply With Quote

Old   March 11, 2021, 06:36
Default
  #12
New Member
 
Gaurav Kumar
Join Date: Jan 2018
Location: Delhi
Posts: 17
Rep Power: 8
gauravkmr is on a distinguished road
Many many thanks for your concern on this thread.
Thanks again.
gauravkmr is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:06.