ok, sorry.
Hmmm also du musst mit DEFINE_ADJUST arbeiten.
Es soll möglich sein mit dein Boundary Face zu arbeiten.
Schaust du diese Beispiel an (dort musst du einfach den Zone-ID deines BC wissen.
/*******************************************************************/
Example of an adjust UDF that uses Lookup_Thread.
Note that if this UDF is applied to a multiphase flow problem,
the thread that is returned is the mixture-level thread
********************************************************************/
#include "udf.h"
/* domain passed to Adjust function is mixture domain for multiphase*/
DEFINE_ADJUST(print_f_centroids, domain)
{
real FC[2];
face_t f;
int ID = 1;
/* Zone ID for wall-1 zone from Boundary Conditions panel */
Thread *thread = Lookup_Thread(domain, ID);
begin_f_loop(f, thread)
{
F_CENTROID(FC,f,thread);
printf("x-coord = %f y-coord = %f", FC[0], FC[1]);
}
end_f_loop(f,thread)
}
Dann du kannst mit Variable auf BC-Face arbeiten (folgenden Flow Variable):
F_U(f,t) face_t f, Thread *t, velocity
F_V(f,t) face_t f, Thread *t, velocity
F_W(f,t) face_t f, Thread *t, velocity
F_T(f,t) face_t f, Thread *t, temperature
F_H(f,t) face_t f, Thread *t, enthalpy
F_K(f t) face_t f, Thread *t, turbulent kinetic energy
F_D(f,t) face_t f, Thread *t, turbulent kinetic energy
dissipation rate
F_YI(f,t,i) face_t f, Thread *t, int i species mass fraction
ich hoff es wird dir helfen.
Viel spass
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP