|
[Sponsors] |
April 27, 2015, 06:02 |
Stop solver user fortran
|
#1 |
New Member
Join Date: Apr 2015
Posts: 16
Rep Power: 11 |
Hi,
How can I stop the solver from a subroutine User fortran ? I have found this command but it doesn't work : CALL POKEL (/STOP_TSL',IONE,.TRUE.,'STOP', CRESLT, LZ) Thanks |
|
April 27, 2015, 07:21 |
|
#2 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
I was recently looking through my FORTRAN codes and found this:
Code:
C---- Stop achieved by setting /FLOW/ALGORITHM/CONTROL/NEXT_TSTEP=FALSE C CALL POKEL ('/FLOW/ALGORITHM/CONTROL/NEXT_TSTEP', & IONE, .FALSE., 'STOP', CRESLT, LZ) |
|
April 27, 2015, 07:43 |
|
#3 |
New Member
Join Date: Apr 2015
Posts: 16
Rep Power: 11 |
Thanks for your reply ! I have tried, it doesn't work unfortunately...
|
|
April 27, 2015, 11:34 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32 |
What version are you using ?
Have you tried the user defined termination controls ? If you write your own UserCEL function, you can return the proper value to stop the run. Doing this way, you know the software is ready to stop if instructed by the expression, and you do not need to know the internal data structures to achieve so. Hope the above helps, |
|
April 27, 2015, 18:16 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143 |
You can also use the fortran to call the cfx5stop command line command and stop the solver that way. But Opaque's comment on the user defined termination controls is a more elegant way of doing it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
compiling user fortran for ansys cfx on linux | upuppeng | CFX | 0 | November 20, 2014 01:51 |
solver stop problem in Lagrangian Particle Tracking | sakurabogoda | CFX | 3 | October 5, 2012 06:09 |
CFX User Fortran: Particle User Sources | hustxinxin | CFX | 0 | March 8, 2012 08:37 |
User Fortran and interior node information | John | CFX | 0 | August 26, 2008 22:24 |
User fortran routines, DEBUG AND OUTPUT | Bloshchitsyn Vladimir | CFX | 5 | October 29, 2007 01:31 |