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

Non-Zero exit code of: 2

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2014, 11:21
Default Non-Zero exit code of: 2
  #1
New Member
 
Alex Whiteman
Join Date: Apr 2014
Posts: 2
Rep Power: 0
KUAlex is on a distinguished road
Hi guys,

I was wondering if anyone can help me, i get the following error code when trying to run my simulation in CFX:

'update failed for the Solution componen in Fluid Flow (CFX). The solver failed with a non-zero exit code of: 2'

With the following infromation in the details section:

Ansys.Addins.Infrastructure.Exceptions.UserReadabl eUpdateFailureException: The solver failed with a non-zero exit code of : 2
at Ansys.Addins.Infrastructure.Solving.Data.SolverTas k.Reconnect(IFullContext context, Boolean callingFromStopCommand)
at Ansys.Addins.Infrastructure.Solving.Data.SolverTas k.Reconnect(IFullContext context)
at Ansys.Addins.Infrastructure.Solving.Data.SolverTas k.WaitForFinish(IFullContext context, Boolean allowBreakWait)
at Ansys.Addins.Infrastructure.Solving.Data.SolverTas k.Start(IFullContext context, ICanStartSolverTask startObject, SolverTaskStartTag startTag, SolverTaskSandboxInformation sandboxInformation, SolverTaskSecInformation secInputInformation)
at Ansys.Addins.Infrastructure.Solving.SolverTaskObje cts.SolverTaskUpdateStarter.StartUpdate(ICanStartS olverTask startObject, SolutionSettingsEntity solutionSettings, UpdateOptions updateOptions)
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.RunSolver (IFullContext context, Boolean forceResume, UpdateOptions updateOptions)
at Ansys.CFX.CFXCore.Commands.UpdateSolutionCommand.E xecute(IFullContext context)
at Ansys.Core.Commands.Concurrency.CommandWorkUnit.ex ecuteInContext(CommandContext subContext, IExecutionEngineCallback tracer)
at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExe cute(IExecutionEngineCallback executionEngine, CommandContext subContext)
at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execu te(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)
--- Ansys.Core.Commands.CommandFailedException: The solver failed with a non-zero exit code of : 2
CommandName: CFX.UpdateSolution(Container="Solution", UpdateOptions=Set(HeldLicenseId=None, LicenseStatsId="21da957d7f104b828bdb39cc5d5fa388", DesignPointUpdateSolveManager=None, DesignPointUpdateQueue=None, MaxNumberOfCores=1))
at Ansys.Core.Commands.CommandAsyncResult.WaitForSusp endOrComplete(Int32 milliSecondsTimeout, Boolean exitContext)
at Ansys.ProjectSchematic.Data.ComponentTemplateEntit y.Update(IFullContext context, IProgressMonitor progressMonitor, DataContainerReference container, String dataGroup, UpdateOptions updateOptions, IEnumerable`1 downstream, IEnumerable`1 allRemaining)
at Ansys.ProjectSchematic.Update.UpdateTask.Update(IF ullContext context, IProgressMonitor progressMonitor, UpdateOptions updateOptions, IEnumerable`1 downstream, IEnumerable`1 allRemaining)
at Ansys.ProjectSchematic.Update.UpdateImpl.updateCom ponent(IFullContext context, UpdateTask task, String trackToken)
at Ansys.ProjectSchematic.Update.UpdateImpl.<>c__Disp layClass4d.<updateComponentAndDependencies>b__4b()
at Ansys.ProjectSchematic.Update.UpdateImpl.executeWi thSelectedErrorBehaviour(Op op, UpdateTask forTask, Op opUponError)
at Ansys.ProjectSchematic.Update.UpdateImpl.updateCom ponentAndDependencies(UpdateTask task, Boolean& didSomething)
at Ansys.ProjectSchematic.Update.UpdateImpl.checkAndU pdateComponent(UpdateTask task, Boolean& didSomething)
at Ansys.ProjectSchematic.Update.UpdateImpl.doOutstan dingTasks(IEnumerable`1 tasks, Boolean& didSomething)
--- Ansys.Core.Commands.UserReadableFailureException: Update failed for the Solution component in Fluid Flow (CFX). The solver failed with a non-zero exit code of : 2
at Ansys.ProjectSchematic.Update.UpdateImpl.doOutstan dingTasks(IEnumerable`1 tasks, Boolean& didSomething)
at Ansys.ProjectSchematic.Update.UpdateImpl.<UpdateCo mponents>d__2a.MoveNext()
at Ansys.ProjectSchematic.Commands.UpdateComponentCom mand.<Execute>d__0.MoveNext()
at Ansys.Core.Commands.Concurrency.SuspendableCommand WorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)
at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExe cute(IExecutionEngineCallback executionEngine, CommandContext subContext)
at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execu te(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)
--- Ansys.Core.Commands.CommandFailedException: Update failed for the Solution component in Fluid Flow (CFX). The solver failed with a non-zero exit code of : 2
CommandName: UpdateComponent(Component="/Schematic/Component:Solution", AllDependencies=True)
at Ansys.Core.Commands.CommandAsyncResult.WaitForSusp endOrComplete(Int32 milliSecondsTimeout, Boolean exitContext)
at Ansys.ProjectSchematic.GuiOperations.UpdateCompone nt.Invoke(GuiOperationContext context)
at Ansys.UI.GuiOperationContext.Invoke(GuiOperationMe taData operationData)
at Ansys.UI.UIManager.InvokeOperationCore(String pseudoname, OperationDelegate callback, Boolean allowOSMessages, Boolean coreTransaction)
I cant find any information on it anywhere, and as a very novice user of ANSYS, I dont really understand what it means. I went to see my professor at uni and he hadnt seen it before either. I was wondering if anyone could be of assistance?

Cheers!
KUAlex is offline   Reply With Quote

Old   April 5, 2014, 12:51
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 912
Rep Power: 17
evcelica is on a distinguished road
What does the solver output file say? That usually shows a much clearer error message, and is usually is more helpful than the details, which are very verbose.
evcelica is offline   Reply With Quote

Old   April 7, 2014, 04:21
Default
  #3
New Member
 
Alex Whiteman
Join Date: Apr 2014
Posts: 2
Rep Power: 0
KUAlex is on a distinguished road
This is the message from the solver:

Error interpolating results onto the new mesh: C:\Program |
| Files\ANSYS Inc\v150\CFX\bin\winnt-amd64\solver-pcmpi.exe exited |
| with return code 1.
KUAlex is offline   Reply With Quote

Old   April 7, 2014, 19:10
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 15,974
Rep Power: 122
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
So now you have something to target - it is the interpolation of results step. But we cannot tell what based on the sketchy information you have provided so far.
ghorrocks is offline   Reply With Quote

Old   May 30, 2014, 10:19
Default Similar error
  #5
New Member
 
Vortice
Join Date: May 2014
Posts: 2
Rep Power: 0
Vortice is on a distinguished road
Hi people, I have a similar error finished with 1 and 2 but maybe because other reasons not talked before:

ERROR #002100011 has occurred in subroutine cVolSec.
Message: A negative SECTOR volume has been detected. Execution will proceed
but this is a possible cause of robustness problems.
The location of the first negative volume is reported below.
Volume : -0.1542E-16
Location : ( 0.34000E+00, -0.38993E+02, 0.44832E+02)
This warning may be made fatal by setting the expert parameter
'negative volume option = 1'.
ERROR #001100279 has occurred in subroutine ErrAction.
Message: Floating point exception: Invalid number
ERROR #001100279 has occurred in subroutine ErrAction.
Message: Stopped in routine FPX: C_FPX_HANDLER
I have different geometries inside the problem to solve: When I apply interface boundary condition between a curved volume of fluid and a curved volume of solid I get this error. When I say to CFX that they are just walls the solver runs. Maybe it is a problem of the mesh but It is quite smooth. Any help please?? Thank you!
Vortice is offline   Reply With Quote

Old   May 31, 2014, 07:20
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 15,974
Rep Power: 122
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
If you got this because of a moving mesh simulation: This is an FAQ: http://www.cfd-online.com/Wiki/Ansys..._went_wrong.3F

If you got this otherwise: In ICEM if you smooth a mesh too much you can turn some elements inside out. You will have to remesh it in ICEM, but make sure you do not smooth the mesh too much again.
ghorrocks is offline   Reply With Quote

Old   May 31, 2014, 17:15
Default
  #7
New Member
 
Vortice
Join Date: May 2014
Posts: 2
Rep Power: 0
Vortice is on a distinguished road
Thank you ghorrocks, It is a static mesh. I tried with a coarser mesh, more automatic and not so tunned by me and now it works. The point is I didn't understand why that happened but with your answer I guess I found the solution :-)
Vortice is offline   Reply With Quote

Old   April 26, 2018, 06:54
Default Same problem
  #8
New Member
 
Join Date: Nov 2016
Posts: 15
Rep Power: 5
kites is on a distinguished road
ERROR #333100220 has occurred in subroutine Out_Memory. |
| Message: |
| |
| The allocated memory exceeds the system memory on 1 host(s). |
| |
| The logical expert parameter "enforce system memory limit" |
| controls whether this is a fatal error. |
| |
| The current setting is: fatal |
| |
| Allocating more than the system memory may result in slow or |
| unreliable operation and is not recommended.
kites is offline   Reply With Quote

Old   April 26, 2018, 07:39
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 15,974
Rep Power: 122
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
No it is not the same error. Your problem is simply you have run out of memory in your workstation. You can either:

* Get more memory
* Use distributed parallel to share it across several workstations
* Make the simulation smaller
* Buy some time on cloud computing like AWS to run it
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 2, 2018, 15:07
Default
  #10
New Member
 
Jackyy
Join Date: Sep 2018
Posts: 10
Rep Power: 3
morvinn is on a distinguished road
Update failed for the Solution component in Fluid Flow (CFX). The solver failed with a non-zero exit code of : 2

how can ı solve that porblem ?? it so emergency
morvinn is offline   Reply With Quote

Old   September 2, 2018, 19:58
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 15,974
Rep Power: 122
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Quote:
how can ı solve that porblem ?
No idea. You better explain what you are doing and where the error message occurs before we can help you.

Quote:
it so emergency
Is that right? Well, then you better contact the CFD emergency services then.

Here on the forum we are all volunteers and we help people when we can. If you need urgent help talk to ANSYS Support as that is what you pay them for.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 2, 2018, 20:07
Default
  #12
New Member
 
Jackyy
Join Date: Sep 2018
Posts: 10
Rep Power: 3
morvinn is on a distinguished road
+--------------------------------------------------------------------+
| License Information |
+--------------------------------------------------------------------+

License Cap: ANSYS CFX Solver (> 512K Nodes)
License Cap: ANSYS CFX Solver (Introductory)
ANSYS LICENSE MANAGER ERROR
Capability CFX Solver does not exist in the ANSYS licensing pool.
No specified
user or site license preferences match available products in the specified lice
nse path:
ANSYSLI_SERVERS:
FLEXlm Servers: C:\Program Files\ANSYS Inc\
ANSYS Student\Shared Files\Licensing\student.lic

License ID: License checkout failed.
Capability CFX Solver does not exist in the ANSYS licensing pool.
No specified
user or site license preferences match available products in the specified lice
nse path:
ANSYSLI_SERVERS:
FLEXlm Servers: C:\Program Files\ANSYS Inc\
ANSYS Student\Shared Files\Licensing\student.lic


+--------------------------------------------------------------------+
| ERROR #001100247 has occurred in subroutine . |
| Message: |
| |
| The solver is unable to continue because of licensing problems. |
| |
| A license for the following capability level could not be checked |
| out: |
| |
| ANSYS CFX Solver (Introductory) |
| |
| Please carefully examine the error message output above and check |
| that: |
| |
| 1) The license server is specified correctly and is running. |
| |
| 2) An appropriate license is available for checking out. |
| |
| These problems can be checked using the ANSYS Client ANSLIC_ADMIN |
| utility. For further troubleshooting information please consult |
| ANSYS, Inc. Licensing Guide. |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| An error has occurred in cfx5solve: |
| |
| The ANSYS CFX solver exited with return code 1. No results file |
| has been created. |
+--------------------------------------------------------------------+

End of solution stage.

+--------------------------------------------------------------------+
| For CFX runs launched from Workbench, the final locations of |
| directories and files generated may differ from those shown. |
+--------------------------------------------------------------------+


This run of the ANSYS CFX Solver has finished.

okey. please tell me. how can ı solve
morvinn is offline   Reply With Quote

Old   September 2, 2018, 20:15
Default
  #13
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 15,974
Rep Power: 122
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Have you read the message? It tells you exactly what the problem is. It could not find a license.

Also: Please do not post duplicate posts on multiple threads. Just post a question once. I have deleted the duplicate posts.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 2, 2018, 20:19
Default
  #14
New Member
 
Jackyy
Join Date: Sep 2018
Posts: 10
Rep Power: 3
morvinn is on a distinguished road
look. ı can understand you. you told it is not found licence. but ı have stundent licence. okey. no problem until here. now how can ı solve that problem ?
morvinn is offline   Reply With Quote

Old   September 2, 2018, 22:01
Default
  #15
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 15,974
Rep Power: 122
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
Check that your license server is working. Can you run a tutorial example?

Be aware that the student version has restrictions. I think there is a maximum number of nodes it can handle. Check your model does not have more than the maximum number of nodes.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   November 26, 2019, 22:18
Post I am Facing the same error
  #16
New Member
 
Tom
Join Date: Nov 2019
Posts: 4
Rep Power: 2
Thamarai is on a distinguished road
Hi,

I am doing pressure loss calculation of a valve in CFX and getting an error in the output file as

An error has occurred in cfx5solve: |
| |
| The ANSYS CFX solver exited with return code 1. No results file |
| has been created. |
+--------------------------------------------------------------------+

End of solution stage.


Can anyone help me to fix this?... Thank You.
Thamarai is offline   Reply With Quote

Old   November 26, 2019, 22:39
Default
  #17
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 15,974
Rep Power: 122
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
You cannot debug CFX error messages from the error code alone. You need to read it in context of what you are doing.

Please post your output file and an image of what you are doing. And as this has nothing to do with the rest of this thread please start a new thread for a new question.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   November 26, 2019, 23:19
Default
  #18
New Member
 
Tom
Join Date: Nov 2019
Posts: 4
Rep Power: 2
Thamarai is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You cannot debug CFX error messages from the error code alone. You need to read it in context of what you are doing.

Please post your output file and an image of what you are doing. And as this has nothing to do with the rest of this thread please start a new thread for a new question.
Thanks I have posted a new thread.
Thamarai is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 13:30
How to make code run in parallel? cwang5 OpenFOAM Programming & Development 1 May 30, 2011 05:47
Open Source Vs Commercial Software MechE OpenFOAM 28 May 16, 2011 12:02
Small 3-D code Zdravko Stojanovic Main CFD Forum 2 July 19, 2010 11:11
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 12:44


All times are GMT -4. The time now is 12:28.