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

problem with UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nikiii

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2013, 13:32
Question problem with UDF
  #1
New Member
 
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 13
nikiii is on a distinguished road
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.
nikiii is offline   Reply With Quote

Old   May 26, 2013, 03:01
Default
  #2
Member
 
Shashank
Join Date: Apr 2011
Posts: 74
Rep Power: 15
shashank312 is on a distinguished road
What is the UDS equation you are solving?
shashank312 is offline   Reply With Quote

Old   May 26, 2013, 08:28
Default
  #3
rou
New Member
 
arough
Join Date: Mar 2013
Location: tunisia
Posts: 24
Rep Power: 13
rou is on a distinguished road
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
rou is offline   Reply With Quote

Old   May 26, 2013, 13:56
Default
  #4
Member
 
Shashank
Join Date: Apr 2011
Posts: 74
Rep Power: 15
shashank312 is on a distinguished road
Post your UDF here and folks will take a look.
shashank312 is offline   Reply With Quote

Old   May 27, 2013, 11:39
Default
  #5
New Member
 
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 13
nikiii is on a distinguished road
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.
yashganatra likes this.
nikiii is offline   Reply With Quote

Old   May 29, 2013, 07:36
Default
  #6
rou
New Member
 
arough
Join Date: Mar 2013
Location: tunisia
Posts: 24
Rep Power: 13
rou is on a distinguished road
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?
rou is offline   Reply With Quote

Reply

Tags
derivative, udf, udm, uds


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 07:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


All times are GMT -4. The time now is 18:00.