|
[Sponsors] |
May 2, 2023, 09:53 |
Defining journal file path in batch mode
|
#1 |
Member
Join Date: Aug 2021
Posts: 59
Rep Power: 4 |
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! |
|
May 2, 2023, 11:33 |
|
#2 |
Senior Member
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 17 |
Unfortunately you cannot have journal files call other journal files. You maybe able to find a workaround with Python or something.
|
|
May 2, 2023, 11:37 |
|
#3 | |
Member
Join Date: Aug 2021
Posts: 59
Rep Power: 4 |
Quote:
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. |
||
May 5, 2023, 02:30 |
|
#4 |
Senior Member
Join Date: Jun 2009
Location: Technische Universität Chemnitz
Posts: 107
Rep Power: 17 |
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. |
|
|
|
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 |