|
[Sponsors] |
problem to make a UDF parallel, the "hello world version" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 10, 2011, 09:19 |
problem to make a UDF parallel, the "hello world version"
|
#1 |
New Member
Pierre-Louis Schmitt
Join Date: Jan 2011
Posts: 10
Rep Power: 15 |
I think my last post was a bit to long and the UDF way to complex to have an answer so I made a "Hello world" version of the problem.
#include <udf.h> DEFINE_SR_RATE(my_rate_ox, f, t, r, mw, yi, rr) { face_t fr; int ID1,ID2; ID1=7; ID2=21; Domain *domain=Get_Domain(1); Thread *tr=Lookup_Thread(domain,ID2); if (THREAD_ID(t)==ID1) {begin_f_loop(fr,tr) { printf("Hello world\n"); } end_f_loop(fr,tr) } *rr = 0.000001; } It seems hard to make Fluent loop over a face thread different from the "t" defined on the DEFINE_SR_RATE's arguments. Do you know a way to overpass this problem. Thanks in advance. Pilou |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
A UDF Problem in Parallel Mode | Jun | FLUENT | 1 | October 26, 2011 13:49 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
problem loading UDF in parallel fluent | Tim | FLUENT | 12 | July 12, 2008 13:59 |