villager |
November 17, 2012 15:28 |
2D looping over cells or faces
Hello!
1) I can't loop over cells or faces in 2D Fluent Case. Is it possible?
In this example, program works until line "begin_f_loop", where error happens: segmentation fault.
If it is important, I use parallel udf (lnamd64 arch).
Code:
#include "udf.h"
DEFINE_EXECUTE_AT_END (d0)
{
Domain *domain;
domain = Get_Domain(1);
Message("domain");
face_t f;
Thread * f_thread;
thread_loop_f(f_thread, domain) /*loops over all face threads in domain*/
{
Message("f_thread %d\n",*f_thread);
begin_f_loop(f, f_thread)
{
Message("loop\n");
}
end_f_loop(f, f_thread)
}
}
2) I need to change net molar reaction rates in fluid zone, DEFINE_NET_REACTION_RATE doesn't provide possibility to get net rates just to change them m-times (I need smth like that: rr[i]=rr[i]*m). Is there any way to access net rates, calculated by FLUENT and to modify them?
|