|
[Sponsors] |
March 3, 2005, 10:40 |
UDF: DEFINE_UDS_FLUX
|
#1 |
Guest
Posts: n/a
|
Hi,
I am trying to use DEFINE_UDS_FLUX to modify the user scalar equation. I got the following error message from fluent: Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () My UDF is as follows, #include "udf.h" #define DEN_L 2480.0 DEFINE_UDS_FLUX(my_uds_flux, f, t, i) { real NV_VEC(psi_vec), NV_VEC(A); NV_D(psi_vec, =, F_U(f,t), F_V(f,t), F_W(f,t)); NV_S(psi_vec, *=, DEN_L); F_AREA(A, f, t); return NV_DOT(psi_vec, A); } I will be so grateful is anyone can tell me what is wrong with this UDF. Thank you. Bing Ma |
|
March 3, 2005, 20:10 |
Re: UDF: DEFINE_UDS_FLUX
|
#2 |
Guest
Posts: n/a
|
The same error I encountered. I didn't solve it now, but in your case there need to define some variable,such as real A[ND_ND]; , you can have a try.
BR Erica |
|
March 4, 2005, 08:13 |
Re: UDF: DEFINE_UDS_FLUX
|
#3 |
Guest
Posts: n/a
|
Hi Erica,
Thank you for your reply. I found the answer now. It is because the face variables are not available inside the domain, they are only available at the domain boundaries. Good luck for you. Bing |
|
March 20, 2005, 05:35 |
Re: UDF: DEFINE_UDS_FLUX
|
#4 |
Guest
Posts: n/a
|
I think you can use this: " F_FLUX(f,t) " .
|
|
July 29, 2014, 04:05 |
|
#5 |
New Member
Join Date: Jun 2014
Posts: 16
Rep Power: 11 |
Hi, Bing. Could you tell me how you solved the problem? I met a similar problem. Thank you very much.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22: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 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |