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

UDF Error!!

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2015, 16:18
Default UDF Error!!
  #1
New Member
 
codenamenone
Join Date: Jun 2015
Posts: 7
Rep Power: 3
unred486 is on a distinguished road
Hi,

I keep getting an error message
"999999: mpt_read: error: read failed trying to read 4 bytes: No such file or directory
MPI Application rank 0 exited before MPI_Finalize() with status -1073741819"

I searched it online but nothing seems to work.

My UDF code is

// Han Ju lee
// Sarkar Enhanced Correction for k-epsilon model
// from Enhancement of USM3D Unstructured FLow Solver for
//High-Speed
// High-Temperature Shear Flows by Mohagna J.Pandya, Khaled S. //Abdol-Hamid and
// Neal T. Frink
// In this model we added Pressure Dilatation term.
// Modified e equation by comparing standard ke model in fluent // and the equation from the paper stated above.

#include "udf.h"
#include "mem.h"
#include "math.h"


#define alpha2 0.4
#define alpha3 0.2
#define Ce1 1.44
#define Ce2 1.92
#define sigmak 1.0
#define sigmae 1.3
#define Cu 0.09

#define MYSMALL 1e-8
#define MYBIG 1e10

enum{
P,
a,
Mt,
f2,
v,
dudx,
Source,
empty
};

DEFINE_ON_DEMAND(setnames)
{
Set_User_Memory_Name(P,"P");
Set_User_Memory_Name(a,"a");
Set_User_Memory_Name(Mt,"Mt");
Set_User_Memory_Name(f2,"f2");
Set_User_Memory_Name(v,"v");
Set_User_Memory_Name(dudx,"dudx");
Set_User_Memory_Name(Source,"Source");
Set_User_Memory_Name(empty,"empty");
}

DEFINE_SOURCE(source_sarkar,c,t,dS,eqn)
{
C_UDMI(c,t,P) = C_STORAGE_R(c,t,SV_PRODUCTION);
C_UDMI(c,t,a) = sqrt(1.5*287.058*C_T(c,t));
C_UDMI(c,t,Mt)=sqrt(2.0*C_K(c,t))/MAX(C_UDMI(c,t,a),MYSMALL);
C_UDMI(c,t,Source)= C_UDMI(c,t,P)*(-1.0*alpha2)*pow(C_UDMI(c,t,Mt),2)+(C_R(c,t)*C_D(c, t)*alpha3)*pow(C_UDMI(c,t,Mt),2)+1.0*C_R(c,t)*C_D( c,t)*pow(C_UDMI(c,t,Mt),2);

return C_UDMI(c,t,Source);
}

DEFINE_SOURCE(e_eq,c,t,dS,eqn)
{

C_UDMI(c,t,v)=C_MU_L(c,t)/C_R(c,t);

C_UDMI(c,t,f2)=1.0-0.3*exp(-pow(pow(C_K(c,t),2)/(C_UDMI(c,t,v)*C_D(c,t)),2));

C_UDSI(c,t,dudx)=sqrt(C_K(c,t));

C_UDMI(c,t,Source)= Ce2*C_R(c,t)*pow(C_D(c,t),2)/C_K(c,t)-C_UDMI(c,t,f2)*Ce2*C_R(c,t)*pow(C_D(c,t),2)/C_K(c,t)+2.0*C_UDMI(c,t,f2)*Ce2*C_D(c,t)/C_K(c,t)*C_MU_L(c,t)*pow(C_UDSI_G(c,t,dudx)[0]+C_UDSI_G(c,t,dudx)[1],2);

return C_UDMI(c,t,Source);
}

I am a beginner to fluent so I am not sure where to even begin to fix this problem. Could anyone look at this problem?

Thanks
unred486 is offline   Reply With Quote

Old   November 2, 2015, 16:34
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 797
Rep Power: 9
`e` is on a distinguished road
Sounds like this error appears for large meshes opened across multiple computers (source 1, 2). How many cells and computers are you using? If your simulation is working fine in serial mode on a single computer then check with your system administrator about the cluster setup.
`e` 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
an error in Calculator's equation immortality OpenFOAM Paraview & paraFoam 11 September 3, 2013 16:18
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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