|December 7, 2009, 09:49||
UDF. as always.
Join Date: Dec 2009
Posts: 1Rep Power: 0
I am going to gain an understanding of UDF format. The case is the simplest: 2D tube with an actuator disk model inside. I want to use a DEFINE_SOURCE option to add x-momentum source. The disk has been marked as a separate zone in GAMBIT (width X – 1 cell, height Y – 10 cells).
When I use a constant profile like:
#define CON 100.0
DEFINE_SOURCE(cell_x_source, c, t, dS, eqn)
C_CENTROID(x, c, t);
source = CON;
dS[eqn] = 0;
Everything is fine.
But for a linear or parabolic profile like:
real source, y;
y = x;
source = 100. - 100.*((.7-y)/.5)*((.7-y)/.5);
dS[eqn] = 0.0;
It doesn’t work – profile is not parabolic after calculations. (y-coordinate changes from 0.2 to 1.2 ).
Could you help me with such stupid problem? Thanks!
|Thread||Thread Starter||Forum||Replies||Last Post|
|Dynamic Mesh UDF||Qureshi||FLUENT||6||January 17, 2017 10:50|
|UDF parallel error: chip-exec: function not found?????||shankara.2||Fluent UDF and Scheme Programming||1||January 16, 2012 23:14|
|How to add a UDF to a compiled UDF library||kim||FLUENT||3||October 26, 2011 21:38|
|UDF...UDF...UDF...UDF||Luc SEMINEL||FLUENT||0||November 25, 2002 05:03|
|UDF, UDF, UDF, UDF||Luc SEMINEL||Main CFD Forum||0||November 25, 2002 05:01|