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

journal files and SCHEME

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2007, 04:29
Default journal files and SCHEME
  #1
Hugo
Guest
 
Posts: n/a
Hi Fluent Users,

Does anyone know how to regain control of Fluent in a journal file after an error has occured?

I am calling Fluent repeatedly from another piece of software, with a number of different meshes (running a genetic algorithm). Sometimes the mesh is rubbish, and Fluent either will not calculate, or hangs up after several iterations. In this case the journal file is aborted and Fluent just sits there doing nothing. Does anyone have any suggestions how to avoid this, or to detect it and do something about it? I've two ideas, but I don't know how to implement them in SCHEME:

1) if (fluent detects divergence) then (close fluent)

2) if (fluent is still open after 1000 seconds) then (close fluent)

Hoping some-one can help!! Hugo.

  Reply With Quote

Old   June 6, 2007, 10:41
Default Re: journal files and SCHEME
  #2
tom
Guest
 
Posts: n/a
in scheme i think you have access to the actual time by simply typing (time). if it doesn't work you can also make system calls, like (system "batch_command")

i don't know how to detect divergence but you can maybe access the residuals and check if they're above a certain treshold
  Reply With Quote

Old   October 26, 2017, 09:25
Default Try and Catch of Errors
  #3
New Member
 
Join Date: Jan 2017
Location: Austria
Posts: 20
Rep Power: 9
FluidWarrior is on a distinguished road
Hi,
you can catch errors in any programming language you want. "Try/Catch"
The Fundamentals are here:
https://www.researchgate.net/publica...t_and_ParaVIEW

Have a nice day!
FluidWarrior 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
Journal files - Batch mode RĂ©mi GOULET FLUENT 4 April 30, 2008 17:06
Journal file for for NITA scheme using LES anindya FLUENT 5 August 6, 2006 11:54
journal files mary FLUENT 2 March 3, 2005 13:22
[making animations] fclose fails to close files? Mika FLUENT 0 March 30, 2001 08:19
Experimental Repository for UDFs, Journal Files and Scheme Scripts Jonas Larsson FLUENT 0 March 5, 2000 15:36


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