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

Defining journal file path in batch mode

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2023, 09:53
Default Defining journal file path in batch mode
  #1
Member
 
Join Date: Aug 2021
Posts: 59
Rep Power: 4
cons013 is on a distinguished road
Hello,

I have a batch script that I want to run multiple journal files with. The batch script is in say folder A. I have subfolders A-1 A-2 and so on, each containing their own journal file. However, when I run fluent, I'm using something like this:

fluent 3ddp t16 -i journal.jou
wait
(run next journal here)

The thing is, the journals are in subfolders. How do I define a file path for the journal files? I tried doing something like /A-1/journal.jou but fluent won't accept it.

Thanks!
cons013 is offline   Reply With Quote

Old   May 2, 2023, 11:33
Default
  #2
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 17
NickFL is on a distinguished road
Unfortunately you cannot have journal files call other journal files. You maybe able to find a workaround with Python or something.
NickFL is offline   Reply With Quote

Old   May 2, 2023, 11:37
Default
  #3
Member
 
Join Date: Aug 2021
Posts: 59
Rep Power: 4
cons013 is on a distinguished road
Quote:
Originally Posted by NickFL View Post
Unfortunately you cannot have journal files call other journal files. You maybe able to find a workaround with Python or something.
I wasn't referencing the journal file from another, I meant the batch file runs through one journal file, exits, then launches another. I have managed to get the journal to open using

fluent 3ddp -t28 -mpi=intel -i %CD%\A-1\journal.jou -wait

however the journal fails, which doesn't make sense, since it works if I launch fluent normally. It shows the commands being entered in the command window but no action is actually taken. Fluent then crashes, here is the log:

https://pastebin.com/MTmP1Rd8

Do you know why this could happen? Everywhere online talks about bad UDF definition, I'm not using any UDFs.
cons013 is offline   Reply With Quote

Old   May 5, 2023, 02:30
Default
  #4
Senior Member
 
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 17
NickFL is on a distinguished road
Sorry I misunderstood what you were attempting to do. Can you please copy the error code into your reply. I and others here cannot download random links for security reasons.



Are the commands in the journal file referencing the gui or are they all tui commands?


Since you close fluent each time, I think what you need is a good old DOS batch file. Basically I would move into each directory before opening fluent so that everything is together in the same working directory. I am a bit rusty on those.
NickFL 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
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 16:05
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


All times are GMT -4. The time now is 17:28.