CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

URGENT!!! Please help with UDM!!

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 25, 2009, 16:47
Default URGENT!!! Please help with UDM!!
  #1
New Member
 
Join Date: Jun 2009
Posts: 9
Rep Power: 8
dfytanid is on a distinguished road
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.
dfytanid is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation violation louiza FLUENT 15 January 9, 2014 13:57
UDM derivatives for - for EHD flow Sandilya Garimella FLUENT 7 September 9, 2013 03:17
No data is written into UDM ivanbuz Fluent UDF and Scheme Programming 1 August 13, 2009 18:49
how could i get the value of udm on last time step Rebecca FLUENT 0 June 10, 2007 08:00
UDM: statistically averaged variabls lcw FLUENT 4 January 8, 2006 03:39


All times are GMT -4. The time now is 23:10.