CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF: DEFINE_UDS_FLUX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2005, 10:40
Default UDF: DEFINE_UDS_FLUX
  #1
Bing Ma
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
  Reply With Quote

Old   March 3, 2005, 20:10
Default Re: UDF: DEFINE_UDS_FLUX
  #2
Erica
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
  Reply With Quote

Old   March 4, 2005, 08:13
Default Re: UDF: DEFINE_UDS_FLUX
  #3
Bing
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
  Reply With Quote

Old   March 20, 2005, 05:35
Default Re: UDF: DEFINE_UDS_FLUX
  #4
fluidwork
Guest
 
Posts: n/a
I think you can use this: " F_FLUX(f,t) " .
  Reply With Quote

Old   July 29, 2014, 04:05
Default
  #5
New Member
 
Join Date: Jun 2014
Posts: 16
Rep Power: 11
sunjian is on a distinguished road
Hi, Bing. Could you tell me how you solved the problem? I met a similar problem. Thank you very much.
sunjian is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:30.