Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Convergence error using batch command line

Please login with a confirmed email address before reporting spam

Hello,

I want to solve a single phase fluid flow, turbulent low Reynolds k-epsilon model in batch mode. This works fine when trying to run from the COMSOL desktop (i.e. with GUI). However when I try to enter batch mode using command prompt I get a convergence error. I use the following command:

comsol batch -inputfile TurbulentPipeFlow_k-e-lowRe.mph -study std1 -batchlog batchlog.log

The error part of the log:

-----------------------------------------------------------------------------------------------------------

Segregated solver iteration 5.
Substep 1, for group 1.
Current Progress: 5 %
Memory: 899/900 2411/2411
Iter Damping Stepsize #Res #Jac #Sol LinIt LinErr LinRes
1 0.5000000 0.46 5 5 5 43 0.00083 0.14
Substep 2, for group 2.
Scales for dependent variables:
mod1.k: 0.9
mod1.ep: 95
Iter Damping Stepsize #Res #Jac #Sol LinIt LinErr LinRes
1 0.3000000 0.62 17 17 17 220 0.00098 9.7e-05
2 0.3000000 0.52 18 18 18 238 0.00061 0.00012
3 0.3000000 0.41 19 19 19 269 0.00089 0.001
4 0.3000000 0.32 20 20 20 469 0.044 0.94
Stationary Solver 2 in Solver 1: Solution time: 50 s.
The_following_feature_has_encountered_a_problem
Exception:
com.comsol.util.exceptions.FlException: Failed to find a solution
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
The following feature has encountered a problem

Failed to find a solution

In segregated group X#2

Divergence of the linear iterations

Returned solution is not converged
- Feature: Stationary Solver 2 (sol1/s2)
- Error: Failed to find a solution.

-----------------------------------------------------------------------------------------------------------

Doing multiple tries, the error always occurs at the same time and the logs are identical. The other turbulence models (k-eps and k-omega) work just fine.

The only reason for this that I can think of is that the comsol batch command starts the batch run with other convergence criteria than a 'normal' run from the COMSOL GUI, but that seems very odd to me. All help is appreciated.

Thanks in advance,

Thomas van der Meer


0 Replies Last Post 2013年3月15日 GMT-4 08:46
COMSOL Moderator

Hello Thomas van der Meer

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.