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

Rewriting a simple UDF for parallel processing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2022, 04:36
Default Rewriting a simple UDF for parallel processing
  #1
New Member
 
Ahmad Koolivand
Join Date: Aug 2022
Location: Shiraz,Iran
Posts: 3
Rep Power: 4
AhmadKoolivand is on a distinguished road
Send a message via Skype™ to AhmadKoolivand
How can I rewrite this UDF for parallel processing? This UDF stores velocities of outlet faces in a UDM.

#include"udf.h"

double u[70]; /* velocity matrix at outlet*/

DEFINE_EXECUTE_AT_END(outlet_store)
{


face_t f;

int IDo=6; /*outlet ID*/

int n=0;


Domain *domain=Get_Domain(1);

Thread *thread=Lookup_Thread(domain,IDo);


begin_f_loop(f,thread)
{
F_UDMI(f,thread,0)=F_U(f,thread);
u[n]=F_UDMI(f,thread,0);
printf("u: %g\n", u[n]);
printf("n: %d\n", n);
printf("UDM: %g\n", F_UDMI(f,thread,0));
n+=1;

}
end_f_loop(f,thread)


}
AhmadKoolivand 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
simple UDF doesn't read input from external file. interprets/compiles without errors ahmad_xjtu Fluent UDF and Scheme Programming 5 March 23, 2018 03:03
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26
help for a simple UDF Greg FLUENT 2 April 14, 2008 11:53
UDF for post processing mvee FLUENT 0 May 23, 2007 13:13
UDF in batch processing tucker FLUENT 0 January 26, 2006 17:39


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