|
[Sponsors] |
April 5, 2012, 13:25 |
Diameter variation eulerian model
|
#1 |
New Member
Alessio
Join Date: Apr 2012
Posts: 4
Rep Power: 14 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of k-epsilon and k-omega Models | Jade M | Main CFD Forum | 40 | January 27, 2023 08:18 |
Bubble size for eulerian model | thecfduser | FLUENT | 1 | April 28, 2010 12:09 |
Puzzling about the "diameter" in Eulerian Model | yuanyuan | FLUENT | 2 | October 22, 2009 09: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 07:17 |