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

Running two journal files in series (or calling another journal from within a journal

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2018, 09:56
Default Running two journal files in series (or calling another journal from within a journal
  #1
Senior Member
 
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13
nvarma is on a distinguished road
Is it possible? I have large number of files I want two run two scripts on. Instead of making one huge script I wrote two, one of which would call the other.

However fluent gives the following error message":

"Error: A journal is currently open for input or output.
You cannot read and write a journal at the same time,
or read two journals simultaneously.
Error Object: #f"


Is there a workaround to tackle this?

Thanks.
nvarma is offline   Reply With Quote

Old   August 1, 2018, 10:24
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You cannot open a journal file inside a journal file using read journal.

I guess there are lots of hack but are you overthinking it? You simply need to merge the two journal files together before you run, which can be done with simple scripts in linux or windows. You still can write and maintain your .jou files separately the way you have been doing, just merge on-demand.

Recursively using windows cmd or also check here basically some form of copy *.jou newjournal.jou if you have lots of journal files. If you have exactly 2 journal files you'd do something like this:

copy "file1.jou"+"file2.jou" file3.jou
LuckyTran is offline   Reply With Quote

Old   August 1, 2018, 10:53
Default
  #3
Senior Member
 
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13
nvarma is on a distinguished road
Thank you. That's what I ended up doing, but the file is just...200-300 lines now. Hard to debug. But fortunately it works and problem solved for now.
nvarma is offline   Reply With Quote

Reply

Tags
fluent 14 to fluent 15., journal file, scheme files


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
CFX-Build journal files KG CFX 2 November 18, 2002 08:03
help needed about phase change Yanhu Guo Main CFD Forum 4 January 24, 2001 00:16
Experimental Repository for UDFs, Journal Files and Scheme Scripts Jonas Larsson FLUENT 0 March 5, 2000 16:36
journal files with CFX4.3 jy CFX 2 December 16, 1999 07:54
Gambit Journal File Scripts, Public Database Needed? Jonas Larsson Main CFD Forum 13 March 2, 1999 08:25


All times are GMT -4. The time now is 14:56.