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

DEFINE_INIT parallel udf error during solution initialization

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2013, 10:37
Default DEFINE_INIT parallel udf error during solution initialization
  #1
New Member
 
nadesan
Join Date: Oct 2012
Posts: 11
Rep Power: 14
nadesan is on a distinguished road
hi,

I wrote a parallel udf to initialize the x, y and z velocity, for a 3D open channel flow case, using "DEFINE_INIT". Following is my code

#include "udf.h"
#include "metric.h"
#include "mem.h"
#define ymax 0.001
DEFINE_INIT(flow_field,d)
{
#if !RP_HOST
face_t f;
Thread *tf;
real x[ND_ND];
real y;
/**loop over all face threads in the domain**/
thread_loop_f(tf,d)
{
/**loop over all faces in the face thread**/
begin_f_loop(f,tf)
if PRINCIPAL_FACE_P(f,tf)
{
F_CENTROID(x,f,tf);
y=x[1];
F_U(f,tf)=(ymax+y)*(ymax-y)*48.6/(ymax*ymax);
F_V(f,tf)=0.0;
F_W(f,tf)=0.0;
}
end_f_loop(f,tf)
}
#endif
}

The code is in tact while compiling and loading. But while i am initializing the solution i am getting an error which reads
"stack backtrace generated for node id=0 (pid=17332) on signal 11"
.
.
.
.
.
.
.
.
.
.

999999: mpt_read:error:read failed trying to read 4 bytes: Resource temporarily unavailable.
The fluent process could not be started
....

Could someone please throw some light on this issue. Your help is much appreciated

Thanks a lot
Rgds
nadesan
nadesan is offline   Reply With Quote

Old   May 28, 2013, 14:06
Default
  #2
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 16
Kanarya is on a distinguished road
Hi nadesan,

Did you solve the problem?

thanks!
Quote:
Originally Posted by nadesan View Post
hi,

I wrote a parallel udf to initialize the x, y and z velocity, for a 3D open channel flow case, using "DEFINE_INIT". Following is my code

#include "udf.h"
#include "metric.h"
#include "mem.h"
#define ymax 0.001
DEFINE_INIT(flow_field,d)
{
#if !RP_HOST
face_t f;
Thread *tf;
real x[ND_ND];
real y;
/**loop over all face threads in the domain**/
thread_loop_f(tf,d)
{
/**loop over all faces in the face thread**/
begin_f_loop(f,tf)
if PRINCIPAL_FACE_P(f,tf)
{
F_CENTROID(x,f,tf);
y=x[1];
F_U(f,tf)=(ymax+y)*(ymax-y)*48.6/(ymax*ymax);
F_V(f,tf)=0.0;
F_W(f,tf)=0.0;
}
end_f_loop(f,tf)
}
#endif
}

The code is in tact while compiling and loading. But while i am initializing the solution i am getting an error which reads
"stack backtrace generated for node id=0 (pid=17332) on signal 11"
.
.
.
.
.
.
.
.
.
.

999999: mpt_read:error:read failed trying to read 4 bytes: Resource temporarily unavailable.
The fluent process could not be started
....

Could someone please throw some light on this issue. Your help is much appreciated

Thanks a lot
Rgds
nadesan
Kanarya is offline   Reply With Quote

Old   May 28, 2013, 22:12
Default
  #3
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
I am not sure whether the error is caused by but not all the face threads store U/V/W. BTW, I do not understand why nadesan did nothing about the cell values.
blackmask is offline   Reply With Quote

Old   June 4, 2013, 22:55
Default
  #4
New Member
 
Join Date: Feb 2012
Posts: 1
Rep Power: 0
foolstone is on a distinguished road
yep.

I have this error when I was running a very simple parallel case without any UDF.
the case can run successfully in serial, but failed parallel.



Quote:
Originally Posted by blackmask View Post
I am not sure whether the error is caused by but not all the face threads store U/V/W. BTW, I do not understand why nadesan did nothing about the cell values.
foolstone 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
"Define_Profile" UDF for parallel solver Antoine Fluent UDF and Scheme Programming 9 February 29, 2016 07:09
Parallel INIT UDF trouble mil3st3g Fluent UDF and Scheme Programming 2 January 6, 2011 15:07
Parallel Fluent +UDF Jack Martinez FLUENT 0 June 28, 2007 12:19
Parallel UDF Error Andrew FLUENT 2 March 30, 2007 12:11
UDF in Parallel Gavin FLUENT 1 June 19, 2005 23:17


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