|
[Sponsors] |
July 3, 2014, 08:59 |
to get values from udf
|
#1 |
New Member
oguzayin
Join Date: Jan 2014
Location: France
Posts: 12
Rep Power: 12 |
Hi all,
I have a problem to getting the results(output file) from udf. Can anybody help me please . My udf is as follows , DEFINE_UDS_FLUX(particle_flux, f, t, i) { real NV_VEC(vs_vec), NV_VEC(A); real settling_flux; real x[ND_ND]; NV_D(vs_vec, = , vs_x, vs_y, vs_z); F_AREA(A, f, t); if (!BOUNDARY_FACE_THREAD_P(t)) settling_flux = NV_DOT(vs_vec, A); else settling_flux = 0.0; return (F_FLUX(f, t) / rho + settling_flux); } For example how can i get the output value of the " vs_vec " thanks in advance |
|
July 3, 2014, 10:11 |
|
#2 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Quote:
*add 3 user defined memories (UDMs) *In your code: C_UDMI(f,t,0)=vs_x;C_UDMI(f,t,1)=vs_y;C_UDMI(f,t,2 )=vs_z; *You can now access them in Fluent. |
||
July 3, 2014, 10:18 |
|
#3 |
New Member
oguzayin
Join Date: Jan 2014
Location: France
Posts: 12
Rep Power: 12 |
thank you a lot for your interest. I will try it now
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 00:53 |
return values from udf | garvitgoel | FLUENT | 4 | June 16, 2014 13:14 |
Availability of previous time level values in UDF | ranga sudarsan | FLUENT | 0 | September 1, 2008 09:17 |
Tablular values as input to UDF | BS | FLUENT | 0 | March 30, 2008 18:59 |
Accessing node values using a UDF | Nico | FLUENT | 2 | December 20, 2007 02:50 |