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

about F_UDMI

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 24, 2009, 01:47
Default about F_UDMI
  #1
New Member
 
liuxiao
Join Date: Mar 2009
Posts: 10
Rep Power: 8
lx33101128 is on a distinguished road
#include "udf.h"
DEFINE_ADJUST(test, d)
{
Domain *subdomain;
Thread *t;
face_t f;
int zone_ID = 1;/*the zone_ID of wall*/
subdomain =Get_Domain(1);
t=Lookup_Thread(subdomain,zone_ID);
begin_f_loop(f,t)
{
Message("test1");
F_UDMI(f,t,0) =0;
Message("test2");
}
end_f_loop(f, t)
}


followings are the error information:

test1
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.



the error information tells that i can not access the F_UDMI,but there are examples in the manual which use it. why??
lx33101128 is offline   Reply With Quote

Old   March 24, 2009, 03:56
Default
  #2
New Member
 
Join Date: Mar 2009
Posts: 4
Rep Power: 8
e0125583 is on a distinguished road
maybe it's a stupid question, but did you set the number of user-defined memories to 1 before compiling the udf? (define-userdefined-memory)
I tried it and the udf works in my case.
e0125583 is offline   Reply With Quote

Old   March 24, 2009, 04:48
Default
  #3
New Member
 
liuxiao
Join Date: Mar 2009
Posts: 10
Rep Power: 8
lx33101128 is on a distinguished road
it can't be possible. i have tried many times. it works the same. did you hook the adjust in the User-Defined-Function Hook window?
lx33101128 is offline   Reply With Quote

Old   March 24, 2009, 05:26
Default
  #4
New Member
 
Join Date: Mar 2009
Posts: 4
Rep Power: 8
e0125583 is on a distinguished road
yes I did. the only thing I changed in the source code is the zone-ID, because I do not have a zone-ID 1 in my case file. did you try the udf on another zone-ID? As far as I experienced, zone-ID 1 is always skipped when reading a mesh file and therefor not defined.
e0125583 is offline   Reply With Quote

Old   March 24, 2009, 07:56
Default
  #5
New Member
 
liuxiao
Join Date: Mar 2009
Posts: 10
Rep Power: 8
lx33101128 is on a distinguished road
Quote:
Originally Posted by e0125583 View Post
yes I did. the only thing I changed in the source code is the zone-ID, because I do not have a zone-ID 1 in my case file. did you try the udf on another zone-ID? As far as I experienced, zone-ID 1 is always skipped when reading a mesh file and therefor not defined.
yes i have changed the zone-ID as the wall's, but it works the same. it can be compiled.however, it can not iterate. i change another computer.the result is the same. it's very strange that you can do that. how did you do that?look forward to your reply!!
lx33101128 is offline   Reply With Quote

Old   March 26, 2009, 06:17
Default
  #6
New Member
 
Join Date: Mar 2009
Posts: 4
Rep Power: 8
e0125583 is on a distinguished road
I am running fluent 6.2.16 on a linux system (32bit).
I use a simple cube with inlet,outlet and 4 walls. I set the number of userdefined memories to 1. then I compile and load the udf. I hook test::libudf to the adjust-function hook. Then I initialize and start iterating. I get the message test1test2 for every face of the specified zone-ID in the console.
e0125583 is offline   Reply With Quote

Old   March 28, 2009, 09:20
Thumbs up
  #7
New Member
 
liuxiao
Join Date: Mar 2009
Posts: 10
Rep Power: 8
lx33101128 is on a distinguished road
thanks very very very much! the problem has been solved.
lx33101128 is offline   Reply With Quote

Old   August 28, 2009, 03:11
Default
  #8
Member
 
Ivan
Join Date: May 2009
Posts: 85
Rep Power: 8
ivanbuz is on a distinguished road
can you tell us how you solved it? I have a UDF with F_UDMI and it does not work, and I have to change it to C_UDMI and make it work.

Thanks!


Quote:
Originally Posted by lx33101128 View Post
thanks very very very much! the problem has been solved.
ivanbuz is offline   Reply With Quote

Old   October 14, 2009, 09:41
Default
  #9
New Member
 
Bogdan
Join Date: Oct 2009
Posts: 3
Rep Power: 7
alexbog8 is on a distinguished road
F_UDMI works only for boundary faces
alexbog8 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 20:45.