|
[Sponsors] |
August 25, 2009, 17:47 |
URGENT!!! Please help with UDM!!
|
#1 |
New Member
Join Date: Jun 2009
Posts: 11
Rep Power: 17 |
Hi all,
I have to finish a project and i just anderstood that i have to use UDM in order to find the solution i need. I have the following udf which is used as boundary condition for a UDS simulation: #include"udf.h" DEFINE_PROFILE(uds_at_wall, t, position) {face_t f; cell_t c0; real k = 200; real D = 25;real Vwall = 55;real x[ND_ND],xc[ND_ND],dx[ND_ND],rootk,dy,drootkdy;Thread *t0 = t->t0; begin_f_loop(f, t) { c0 = F_C0(f,t); rootk=C_UDSI(c0,t0,position); F_CENTROID(xw,f,t); C_CENTROID(xc,c0,t0); NV_VV(dx,=,xc,-,xw); dy=ND_MAG(dx[0],dx[1],dx[2]); F_PROFILE(f, t, position) = rootk*D/((-Vwall+k)*dy+D); } end_f_loop(f, t) I have already used it succesfully but now i have to use these boundary values in an other UDF. I tried to add the following code in the udf in order to use a UDM: begin_f_loop(f,t) { C_UDMI(f,t,0) = C_UDSI(f,t,0); } end_f_loop(f,t) Unfortunately, the values in Display/contour/user defines memory/ isn't the same as display/contour/user define scalar. It's my first time that i use UDM, so please help me. thank you in advance for your valuable help. P.S.: sorry for the long msg. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Segmentation violation | louiza | FLUENT | 16 | June 27, 2017 16:41 |
UDM derivatives for - for EHD flow | Sandilya Garimella | FLUENT | 7 | September 9, 2013 04:17 |
No data is written into UDM | ivanbuz | Fluent UDF and Scheme Programming | 1 | August 13, 2009 19:49 |
how could i get the value of udm on last time step | Rebecca | FLUENT | 0 | June 10, 2007 09:00 |
UDM: statistically averaged variabls | lcw | FLUENT | 4 | January 8, 2006 03:39 |