|
[Sponsors] |
999999 mpt_accept error accept failed no such file or directory |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 10, 2019, 05:34 |
999999 mpt_accept error accept failed no such file or directory
|
#1 |
New Member
lili
Join Date: May 2019
Posts: 12
Rep Power: 7 |
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; } |
|
June 10, 2019, 06:19 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Why do you include udf.h file to times? delete this
Code:
/*UDF for UDS*/ #include "udf.h" did you allocate memory in FLuent GUI for UDS? best regards |
|
June 10, 2019, 06:58 |
|
#3 |
New Member
lili
Join Date: May 2019
Posts: 12
Rep Power: 7 |
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 |
|
June 10, 2019, 07:10 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
delete this
Code:
/*UDF for UDS*/ #include "udf.h" to allocate memory for UDS in Fluent GUI go to USer-defined -> scalars -> number of UDS change to 1. best regards |
|
June 10, 2019, 07:19 |
|
#5 | |
New Member
lili
Join Date: May 2019
Posts: 12
Rep Power: 7 |
Quote:
regards |
||
June 10, 2019, 07:25 |
|
#6 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
change physical_dt = RP_Get_Real("physical-time-step"); to
Code:
physical_dt = CURRENT_TIMESTEP; check again, was your UDF compiled wiouth error or not? best regards |
|
June 10, 2019, 08:15 |
|
#7 | ||
New Member
lili
Join Date: May 2019
Posts: 12
Rep Power: 7 |
Quote:
Quote:
regards |
|||
Tags |
mpt_accept error, udf, uds |
|
|
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 |