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

Error: "MPI Application rank 0 exited before MPI_finalization() with status 2"?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2018, 11:13
Question Error: "MPI Application rank 0 exited before MPI_finalization() with status 2"?
  #1
Member
 
Join Date: Dec 2017
Posts: 34
Rep Power: 9
malekan.cfd is on a distinguished road
Dear all,

I have a Fluent problem where I defined material properties using a simple UDF, like:

DEFINE_PROPERTY(thermal_conductivity,cell,thread)
{
real tc, T;
T = C_T(cell,thread);

if(T <= 300)
tc = 1;
else
tc = 2;

return tc;
}

When I use this UDF, I have got this error: "MPI Application rank 0 exited before MPI_finalization() with status 2". Can anybody five me ant advice how to solve this error please!

My model works fine without UDF.

Thanks,
Malekan
malekan.cfd is offline   Reply With Quote

Old   December 9, 2018, 23:53
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
did you put
Code:
#include "udf.h"
in the header of your UDF?

best regards
AlexanderZ is offline   Reply With Quote

Old   December 10, 2018, 10:02
Default Yes, I did
  #3
Member
 
Join Date: Dec 2017
Posts: 34
Rep Power: 9
malekan.cfd is on a distinguished road
Yes , I did that. In fact, compilation part of the code does not have any problem. When I try to initialize the problem, I receive that error.

Best,
malekan.cfd is offline   Reply With Quote

Old   December 10, 2018, 20:58
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
Try to initialize first, than load UDF

best regards
AlexanderZ is offline   Reply With Quote

Old   December 12, 2018, 10:14
Default Initialization needs udfs
  #5
Member
 
Join Date: Dec 2017
Posts: 34
Rep Power: 9
malekan.cfd is on a distinguished road
I need udfs to define material properties, how can I do initialization without loading udfs?
malekan.cfd is offline   Reply With Quote

Old   December 12, 2018, 11:14
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You don't need material properties to initialize anything
LuckyTran is offline   Reply With Quote

Old   June 10, 2019, 23:14
Default
  #7
New Member
 
Etienne Lin
Join Date: Aug 2017
Location: la Chine
Posts: 4
Rep Power: 9
hongzhilin is on a distinguished road
I've had the same error when using fluent in workbench. I was trying FSI and the coupling interface shows this error.

My solution is to delete the fluent module and reset a case. Though the same problem occurred after several times of interrupt and restart, once all parameters are determined and the case is reset, the program also works.
hongzhilin is offline   Reply With Quote

Reply

Tags
error fluent workbench, fluent, udf code


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
mpt_connect: errorThe fl process could not be started. MPI Application rank 0 exited tjZDH FLUENT 3 November 28, 2021 15:30
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 12:52
MPI application rank 0 exited before.. jypark FLUENT 1 July 15, 2016 13:58
MPI Application rank 0 exited before MPI_Finalize() with status 1 mustafadeniz89 AVL FIRE 6 November 24, 2015 10:40
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53


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