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

Diameter variation eulerian model

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 5, 2012, 12:25
Default Diameter variation eulerian model
  #1
New Member
 
Alessio
Join Date: Apr 2012
Posts: 4
Rep Power: 5
alekso is on a distinguished road
Hi
I'm tryng to write an udf for diameter-time dipendent laws. For example

diam=0.003-0.3*current_time

where current_time is the flow time (in seconds). But seems it doesn't works

This is my UDF

#include "udf.h"

DEFINE_PROPERTY(diam,c,t)
{

Thread **pt = THREAD_SUB_THREADS(t);
Thread *tp = pt[0]; //
Thread *ts = pt[1];
real diam;

real current_time = RP_Get_Real("flow-time");

diam=0.003-0.3*current_time;


return diam;
}

Is it possible to print every time step the diameter on the window to check if the udf works?

Thank you.
alekso 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
Use of k-epsilon and k-omega Models Jade M Main CFD Forum 12 June 2, 2015 13:16
Bubble size for eulerian model thecfduser FLUENT 1 April 28, 2010 11:09
Puzzling about the "diameter" in Eulerian Model yuanyuan FLUENT 2 October 22, 2009 08:38
non-granular diameter Eulerian model jan FLUENT 0 December 8, 2006 11:48
the Eulerian model and the lower volume fraction hx li FLUENT 2 October 27, 2005 06:17


All times are GMT -4. The time now is 09:56.