|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 12 ![]() |
Hi,
I solved a UDS for voltage. Now I am trying to obtain the derivative of voltage by writing this UDF: # include "udf.h" # define domain_ID 1 DEFINE_ON_DEMAND(store_gradient) { Domain *domain; cell_t c; Thread *t; domain=Get_Domain(1); thread_loop_c (t,domain) { begin_c_loop (c,t) { C_UDMI(c,t,0) = NV_MAG(C_UDSI_G(c,t,0)); } end_c_loop (c,t) } } It compiled successfully, but when I display the contour of UDM, in all the domain it has magnitude zero!!! What's the wrong Thank you for advising me. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Shashank
Join Date: Apr 2011
Posts: 74
Rep Power: 14 ![]() |
What is the UDS equation you are solving?
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
arough
Join Date: Mar 2013
Location: tunisia
Posts: 24
Rep Power: 12 ![]() |
Hello,I have a problem with UDF
in fluent a message appear: 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: () can any one help me |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Shashank
Join Date: Apr 2011
Posts: 74
Rep Power: 14 ![]() |
Post your UDF here and folks will take a look.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 12 ![]() |
hi;
thank you for your attention. but i solved my problems. dear rou after compiling your UDF you must press enter in fluent page then type solve/set/expert and press enter. you must type yes in front of the second text "keep temporary solver memory from being freed?". after it you can execute on demand. good luck. |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
arough
Join Date: Mar 2013
Location: tunisia
Posts: 24
Rep Power: 12 ![]() |
hi,
thank you for your help nikiii but when I initialize the program it write no UDF I don't know what's the problem? |
|
![]() |
![]() |
![]() |
Tags |
derivative, udf, udm, uds |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 06:56 |
UDF problem | mansha goraya | FLUENT | 0 | October 29, 2007 00:31 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 07:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 09:58 |