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

Stop solver user fortran

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2015, 06:02
Default Stop solver user fortran
  #1
New Member
 
Join Date: Apr 2015
Posts: 16
Rep Power: 11
boubou is on a distinguished road
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
boubou is offline   Reply With Quote

Old   April 27, 2015, 07:21
Default
  #2
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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)
I dont know if it works, but feel free to try it.
Lance is offline   Reply With Quote

Old   April 27, 2015, 07:43
Default
  #3
New Member
 
Join Date: Apr 2015
Posts: 16
Rep Power: 11
boubou is on a distinguished road
Thanks for your reply ! I have tried, it doesn't work unfortunately...
boubou is offline   Reply With Quote

Old   April 27, 2015, 11:34
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,803
Rep Power: 32
Opaque will become famous soon enough
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,
Opaque is offline   Reply With Quote

Old   April 27, 2015, 18:16
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 21:13.