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

Stop solver user fortran

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 27, 2015, 06:02
Default Stop solver user fortran
  #1
New Member
 
Join Date: Apr 2015
Posts: 16
Rep Power: 2
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: 563
Rep Power: 11
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: 2
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: 407
Rep Power: 11
Opaque is on a distinguished road
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: 11,599
Rep Power: 90
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
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 online now   Reply With Quote

Reply

Thread Tools
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 On
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 02: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 09: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 02:31


All times are GMT -4. The time now is 06:25.