Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

“MPI Application rank 0 exited before MPI finalization() with status 2

    • mutlaq404
      Subscriber
      Hi every one can anybody help me.nwhen i use the UDF to get resolved Reynolds stresses in fluent we get that errorMPI Application rank 0 exited before MPI finalization() with status 2
    • Karthik Remella
      Administrator
      Hello,nAre you compiling your UDF? If so, are you able to successfully compile it without any error messages? Could you please post a screenshot?nThank you.nKarthikn
    • mutlaq404
      Subscriber
      Thank you for answer me Mr. Kermellanplz can you tell me how can i plot RMS velocity without use UDF? because all UDF post that i used have an errorn
    • Karthik Remella
      Administrator
      Which turbulence model are you using for your simulation? Also, could you please post a screenshot of your UDF as well as the error message you are receiving? Are you getting this error message when you are attempting to compile the UDF or when you are running the model?nPlease embed your screenshot directly here so we can have a look.nThank you.nKarthikn
    • mutlaq404
      Subscriber
      I use LES modeln
    • Karthik Remella
      Administrator
      Hi,nFrom the error message, it seems like your UDF is not meant to be used on Parallel processors. Are you able to compile it successfully for a serial run? If that works, then you will need to parallelize your UDF before you can compile it on parallel processors.nThank you.nKarthikn
    • mutlaq404
      Subscriber
      Hi Mr.Kremella i used it for parallel and serial but the error still appearsn
    • Rob
      Forum Moderator
      Can you use the built in compiler in 2020R2? The error is that the code isn't compiled: ie you've not built the libudf needed for the solver. n
    • mutlaq404
      Subscriber
      Thanks for reply Mr. Rob, I used version 2019 R3 not 2020 R2nSo I need to upgrade to a new version??n
    • Rob
      Forum Moderator
      To use the built in compiler, yes you do. Otherwise you need to get the Microsoft one working. n
    • mutlaq404
      Subscriber
      I have a Microsoft visual studio 2017 and 2019 but the problem is still nfluent dont able to solve yplus unless use UDF so I need to solve this problemnn
    • Amine Ben Hadj Ali
      Ansys Employee
      Start Fluent from Visual Studio command prompt then try to compile.n
    • JD_JN
      Subscriber
      Hello,nI had the same issue and this is how I fixed it. Following these steps, you don't have to launch fluent from command prompt!Install Visual Studio 2017 Community Edition with C++ options (ANSYS 2019 doesn't support newer versions of VS such as MSVS 2019)nGo to Control Panel -> System and Security -> System -> Advanced System Settings -> Environment VariablesnGo to the bottom section named 'System variables' and then double-click to open 'Path'nThere, create 4 new entries (mentioned below as steps 5, 6, 7, by clicking on 'New':n%SystemRoot%\system32n%SystemRoot%nC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64 (This is the location for 'nmake' in MSVS 2017 Community Edition)n\ANSYS Inc\v194\fluent\ntbin\win64 (This is for ANSYS 2019, your version number will change according to the one you have installed)nMake sure that the entries in steps 5 - 8 are at the top most rows of the path variables, i.e., entry 5 should be in row 1, entry 6 should be in row 2, entry 7 should be in row 3, and entry 8 should be in row 4. You can change their row positions using 'Move Up' option in the system variables dialog boxnClick OK and exit out of the Path variables dialog box, as well as exit out of the Environment variables dialog box and System properties dialog boxnRestart systemnStart FLUENT. In the FLUENT Launcher, click on 'Show More Options'nMake sure that the working directory location is the location of your folder containing your UDF and then click OK to launch FLUENTnNow you will be able to build and load your UDFs.nCheers!nn
    • mutlaq404
      Subscriber
      Thanks DrAmine for reply i used this method and the error appears as the figure aboven
    • mutlaq404
      Subscriber
      thanks JD_JN I will try this n
    • JD_JN
      Subscriber
      Sure! Let me know how it went. n
    • mutlaq404
      Subscriber
      JD_JN its work thanks for youncan I asked you if you have a UDF for u RMs of large eddy simulation can you send it to me?.
Viewing 16 reply threads
  • The topic ‘“MPI Application rank 0 exited before MPI finalization() with status 2’ is closed to new replies.