|
[Sponsors] |
March 13, 2006, 11:36 |
UDF works in 2D but not in 3D? Suggestions?
|
#1 |
Guest
Posts: n/a
|
I have a simple UDF to simulate sloshing of a tank. It works in 2D but not 3D. Anyone know why? I can't seem to find any documentation on 3D and UDF's. The UDF is below as a source term that I use in the BC's to the momentum eqn.
#include "udf.h" #define period 1.689 #define amplitude 0.005 DEFINE_SOURCE(cell_x_source, cell, thread, dS, eqn) { real source; source =(-1.0*amplitude)*pow((2.0*M_PI/period),2.0)*C_R(cell,thread)*sin((2.0*M_PI/period)*CURRENT_TIME); dS[eqn] = 0.0; return source; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF using c_face_loop(c,t,i) | frederic | FLUENT | 3 | January 16, 2017 23:17 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
UDF problem with Parallel Solver | manu | FLUENT | 0 | January 24, 2008 14:31 |
UDF : Chemical Reaction in Catalytic Converter | adhimac | FLUENT | 1 | March 27, 2001 14:04 |
UDF modification | merac | FLUENT | 4 | March 1, 2001 06:42 |