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

999999 mpt_accept error accept failed no such file or directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2019, 05:34
Default 999999 mpt_accept error accept failed no such file or directory
  #1
New Member
 
lili
Join Date: May 2019
Posts: 12
Rep Power: 7
lilistar-8216 is on a distinguished road
Hi,
I'm trying a calculation of fuel droplet evaporation using ANSYS Fluent 19.1.
I complied this UDF to change heat generation rate at the wall between solid and fluid zone. Also I compiled UDS for getting T-derivative of mass fraction.
I can compile and load these UDFs, and initialize but when calculation starts, the error : "999999 mpt_accept error accept failed no such file or directory " occurs and calculation stops.

How should I solve this problem??

/*my UDF for boundary condition */
#include "udf.h"
#include "mem.h"

#define A 74.0
#define B 0.323
#define W_d 142.2
#define T_c 617.4


DEFINE_PROFILE(heat_profile, thread, i)
{
Domain *d = Get_Domain(1);
Thread *t = Lookup_Thread(d,11);
cell_t c;
real mf_d, T, T_r, v_heat,mf_dt, rho;
real time = CURRENT_TIME;
begin_c_loop_all(c, t) {
if (time == 0.0) {
F_PROFILE(c, t, i) = 0.0;
}
else {
rho = C_R(c, t);
mf_d = C_UDSI(c, t, 0) * rho;
T = C_T(c, t);
T_r = T / T_c;
v_heat = A * exp(-B * T_r) * pow(1 - T_r, B) / (W_d * 1000);
F_PROFILE(c, t, i) = mf_d * v_heat;
}
end_c_loop_all(c, t)
}

}


/*UDF for UDS*/

#include "udf.h"


DEFINE_UDS_UNSTEADY(uds_1,c,t,i,apu,su)
{

real physical_dt, vol, mass, phi_old;

physical_dt = RP_Get_Real("physical-time-step");

vol = C_VOLUME(c, t);

mass = C_YI_M1(c,t,55);

*apu = - mass * vol/ physical_dt;

phi_old = C_STORAGE_R(c,t,SV_UDSI_M1(i));

*su = mass * vol * phi_old/physical_dt;
}
lilistar-8216 is offline   Reply With Quote

Old   June 10, 2019, 06:19
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Why do you include udf.h file to times? delete this
Code:
/*UDF for UDS*/
#include "udf.h"
put your case file and compiled library into the same folder.

did you allocate memory in FLuent GUI for UDS?

best regards
AlexanderZ is offline   Reply With Quote

Old   June 10, 2019, 06:58
Default
  #3
New Member
 
lili
Join Date: May 2019
Posts: 12
Rep Power: 7
lilistar-8216 is on a distinguished road
Dear AlexanderZ,

Thanks for answering. I actually make UDF for heat generation rate and UDF for UDS respectively. That's why it include "udf.h" two times.

I can't understand the meaning "did you allocate memory in Fluent GUI for UDS"...
I tried to set UDM but it didn't work.
How should I allocate memory for UDS?
regards
lilistar-8216 is offline   Reply With Quote

Old   June 10, 2019, 07:10
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
delete this
Code:
/*UDF for UDS*/
#include "udf.h"
put both your functions into one file, libraries are included once in the head of file

to allocate memory for UDS in Fluent GUI go to USer-defined -> scalars -> number of UDS change to 1.

best regards
AlexanderZ is offline   Reply With Quote

Old   June 10, 2019, 07:19
Default
  #5
New Member
 
lili
Join Date: May 2019
Posts: 12
Rep Power: 7
lilistar-8216 is on a distinguished road
Quote:
allocate memory for UDS in Fluent GUI go to USer-defined -> scalars -> number of UDS change to 1.
I tried this and set UDF into unsteady function. I also tried to put both functions into one file but the same error happened.

regards
lilistar-8216 is offline   Reply With Quote

Old   June 10, 2019, 07:25
Default
  #6
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
change physical_dt = RP_Get_Real("physical-time-step"); to
Code:
physical_dt = CURRENT_TIMESTEP;
put all files into 1 folder.
check again, was your UDF compiled wiouth error or not?

best regards
AlexanderZ is offline   Reply With Quote

Old   June 10, 2019, 08:15
Default
  #7
New Member
 
lili
Join Date: May 2019
Posts: 12
Rep Power: 7
lilistar-8216 is on a distinguished road
Quote:
change physical_dt = RP_Get_Real("physical-time-step"); to
Code:
physical_dt = CURRENT_TIMESTEP;
put all files into 1 folder.
I tried this but It also didn't work.

Quote:
check again, was your UDF compiled wiouth error or not?
I could compile UDF because there is no error.

regards
lilistar-8216 is offline   Reply With Quote

Reply

Tags
mpt_accept error, udf, 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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32


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