CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Additional Command Language -in Workbench! (https://www.cfd-online.com/Forums/cfx/90469-additional-command-language-workbench.html)

Elvira_Coot July 11, 2011 09:51

Additional Command Language -in Workbench!
 
Good day to everyone.
I have a very simple question and unfortunately I did not find any help in the guides or in the customer portal.
I have some simulations that runs perfectly till the convergence. Unfortunately they work only if I use some Additional Command Language (in the Solver, in the Custom solver options I just use the command -ccl in the solver arguments).
My problem comes when I want to run some simulation with workbench ( I would ike to solve some GDO problem). If I try to run something with workbench, i don't have the possibility to use the ccl command and the simulations explode.
Is there a possibility to use Additional Command Language -ccl in workbench? Thanks.
If this question was already answered, the moderator can delete the topic.

p.s. I know I can run with batch mode, but I really would like to use the Workbench.

stumpy July 11, 2011 10:00

Turn on beta features in WB and then right-click and look at the Properties of the Solution cell in the project schematic.

Elvira_Coot July 11, 2011 10:47

Hello Stumpy!

You mean that with CFX Beta it should work?

Elvira_Coot July 11, 2011 11:34

I am using Workbench 13 SP2.
Beta are turned on (Tools, options, appearance,display, beta feature).
But when I try to edit the solution cell, I don't even see the fenster "solver arguments".
With or without beta.

stumpy July 11, 2011 12:16

If you right-click on the Solution cell in the project then select "Properties", you should see a "Solver Arguments" field where you can enter a full path and name to the CCL file.

Elvira_Coot July 11, 2011 15:37

Thank you
It still does not work.
It does not even start,
Message:
Ansys.Core.Commands.UserReadableFailureException: The CFX Solver for system CFX did not produce a results file. No output file is available.
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.HandleRun Failure(IFullContext context, CFXSolverRun run)
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.OnTaskRec onnect(IFullContext context, SolverTask task, CommandCancellationStatus interruptStatus)
at Ansys.Addins.Infrastructure.Rsm.Data.SolverTask.Re connect(IFullContext context)
at Ansys.Addins.Infrastructure.Rsm.Data.SolverTask.Wa itForFinish(IFullContext context, Boolean allowBreakWait)
at Ansys.Addins.Infrastructure.Rsm.Data.SolverTask.St art(IFullContext context, ICanStartSolverTask startObject, SolverTaskStartTag startTag)
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.RunSolver WithSolverTask(SolutionSettingsEntity solutionSettings, CFXJobDefinition cfxJobDef, CFXAppInfo cfxAppInfo, CUEAppArgList args, SolverIntermediateData solverData, Boolean forceResume, String runName, Boolean isMultiConfig)
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.RunSolver (IFullContext context, Boolean forceResume)
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 CFX Solver for system CFX did not produce a results file. No output file is available.
CommandName: CFX.UpdateSolution(Container="Solution")
at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)
at Ansys.Core.Commands.CommandAsyncResult.Wait()
at Ansys.ProjectSchematic.Data.ComponentTemplateEntit y.Update(IFullContext context, IProgressMonitor progressMonitor, DataContainerReference container, List`1 downstream, List`1 allRemaining)
at Ansys.ProjectSchematic.Update.UpdateImpl.updateCom ponent(IFullContext context, UpdateTask task)
at Ansys.ProjectSchematic.Update.UpdateImpl.<>c__Disp layClass1d.<updateComponentAndDependencies>b__1c()
at Ansys.ProjectSchematic.Update.UpdateImpl.executeWi thSelectedErrorBehaviour(Op op, UpdateTask forTask)
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)
--- System.InvalidOperationException: Update of the Solution component in CFX failed: The CFX Solver for system CFX did not produce a results file. No output file is available.
at Ansys.ProjectSchematic.Update.UpdateImpl.doOutstan dingTasks(IEnumerable`1 tasks, Boolean& didSomething)
at Ansys.ProjectSchematic.Update.UpdateImpl.<UpdateCo mponents>d__3.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 of the Solution component in CFX failed: The CFX Solver for system CFX did not produce a results file. No output file is available.
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.UIManager.<>c__DisplayClassb.<InvokeOpera tion>b__a()
at Ansys.UI.UIManager.InvokeOperationCore(String pseudoname, OperationDelegate callback, Boolean allowOSMessages, Boolean coreTransaction)"

I sent it to the support, but I suppose I will get some answers in months..

stumpy July 12, 2011 09:49

Did you use a full path to the ccl file?

Elvira_Coot July 12, 2011 10:04

In solver Arguments I wrote:
-ccl C:\Documents...\rules.ccl
I wrote the full path.
This is the message I got:

Ansys.Core.Commands.UserReadableFailureException: The CFX Solver for system prototype did not produce a results file. No output file is available.
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.HandleRun Failure(IFullContext context, CFXSolverRun run)
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.OnTaskRec onnect(IFullContext context, SolverTask task, CommandCancellationStatus interruptStatus)
at Ansys.Addins.Infrastructure.Rsm.Data.SolverTask.Re connect(IFullContext context)
at Ansys.Addins.Infrastructure.Rsm.Data.SolverTask.Wa itForFinish(IFullContext context, Boolean allowBreakWait)
at Ansys.Addins.Infrastructure.Rsm.Data.SolverTask.St art(IFullContext context, ICanStartSolverTask startObject, SolverTaskStartTag startTag)
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.RunSolver WithSolverTask(SolutionSettingsEntity solutionSettings, CFXJobDefinition cfxJobDef, CFXAppInfo cfxAppInfo, CUEAppArgList args, SolverIntermediateData solverData, Boolean forceResume, String runName, Boolean isMultiConfig)
at Ansys.CFX.CFXCore.Data.CFXSolutionSource.RunSolver (IFullContext context, Boolean forceResume)
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 CFX Solver for system prototype did not produce a results file. No output file is available.
CommandName: CFX.UpdateSolution(Container="Solution")
at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)
at Ansys.Core.Commands.CommandAsyncResult.Wait()
at Ansys.ProjectSchematic.Data.ComponentTemplateEntit y.Update(IFullContext context, IProgressMonitor progressMonitor, DataContainerReference container, List`1 downstream, List`1 allRemaining)
at Ansys.ProjectSchematic.Update.UpdateImpl.updateCom ponent(IFullContext context, UpdateTask task)
at Ansys.ProjectSchematic.Update.UpdateImpl.<>c__Disp layClass1d.<updateComponentAndDependencies>b__1c()
at Ansys.ProjectSchematic.Update.UpdateImpl.executeWi thSelectedErrorBehaviour(Op op, UpdateTask forTask)
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)
--- System.InvalidOperationException: Update of the Solution component in prototype failed: The CFX Solver for system prototype did not produce a results file. No output file is available.
at Ansys.ProjectSchematic.Update.UpdateImpl.doOutstan dingTasks(IEnumerable`1 tasks, Boolean& didSomething)
at Ansys.ProjectSchematic.Update.UpdateImpl.<UpdateCo mponents>d__3.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 of the Solution component in prototype failed: The CFX Solver for system prototype did not produce a results file. No output file is available.
CommandName: UpdateComponent(Component="/Schematic/Component:Solution", Force=True)
at Ansys.Core.Commands.CommandAsyncResult.WaitForSusp endOrComplete(Int32 milliSecondsTimeout, Boolean exitContext)
at Ansys.CFX.CFXCore.Commands.UpdateFromSolverManager Gui.Invoke(GuiOperationContext context)
at Ansys.UI.UIManager.<>c__DisplayClassb.<InvokeOpera tion>b__a()
at Ansys.UI.UIManager.InvokeOperationCore(String pseudoname, OperationDelegate callback, Boolean allowOSMessages, Boolean coreTransaction)

Elvira_Coot July 12, 2011 10:37

I have now a doubt..What do you mean with "full path"?
Thanks for your help

stumpy July 12, 2011 12:29

By full path I just meant what you had, C:/etc/etc/file.ccl. So you don't get that error when the ccl file is not set? And there's no .out file created? If so, them I'm afraid I'm out of ideas :-(

Elvira_Coot July 12, 2011 12:37

without ccl file the simulation starts, but then it diverges.
With the rules on the solver manager the workbench does not start. I don't even get an out file.


I tried everthing, that's pity.
I think I have to give up the idea of using this workbench.
I can't use ccl, to use Icem is also quite difficult if I wanna perform GDO...I'm starting to think that workbench is not the ideal software if you wanna do some real simulation and not the flow in a static mixer. A good argument for the next ansys meeting.

That's it.
Thanks for your help

Elvira_Coot July 14, 2011 02:32

Is there something in the documentation that can help me?
I am lost in the customer portal...


All times are GMT -4. The time now is 04:20.