|
[Sponsors] |
Saving file after set durations using Command Line |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 5, 2024, 15:14 |
Saving file after set durations using Command Line
|
#1 |
New Member
Johan M
Join Date: May 2021
Posts: 29
Rep Power: 5 |
Hi Everyone,
I will soon be attempting a single CFX simulation, that is part of a Workbench workflow, on a cluster for the first time. I have been testing out commands to automatically run my simulation from the CFX command line on my personal PC first. Currently I have the basic code below: I first used the cd command to change the default directory to the directory containing my .def file: C:\Users\User>cd C:\Scratch\Johan Sims\Test I then added commands about using double precision and the number of partitions: C:\Scratch\Johan Sims\Tesst>cfx5solve -def CFX.def -double -par-local -part 22 The above works fine. However, I would like to confirm a few remarks about adding more to the above lines and using clusters in general: 1. I explicitly stated the working directory to get the above running. I was wondering how one would go about this in the event the working directory on the cluster is not exactly known (I suspect this will be cluster case dependent scenario but I will ask in any case) 2. I noticed in my ''Running a Job guidelines'' doc it stated a line that needed a file path to a .err file. I was not exactly sure what file this is refering to, seen below: -e /mnt/lustre3p/users/username/testCFX/test.err 3. There is another line of code in the Job template I'd like to clarify, it states: cd /mnt/lustre3p/users/username/testCFX #change to CFX case directory I recognize that the comment and code 'cd' refers to changing the directory. In that comment, it mentions CFX case - does that have any relevance to uploading the CFX case file or is it simply the generic folder name? I suspect the latter 4. I would like to save the backup files every 20 mins. Should I simply add the following to the existing lines of code: -baket "20 [min]" 5. I would like to know what is the appropriate file type to put the code in to hand over to the cluster? eg such as a java script file 6. To confirm, only the .def file is required to be uploaded for a CFX cluster simulation? 7. I set sim to stop at a specific iteration. I then plan to extract the .res file from the cluster and import into the CFX solver manager to check residuals/monitor plots and CFX-Post on my personal PC to gather results. Is this workflow advisable or is there perhaps a better way Thank you, Johan |
|
Tags |
cfx, cluster setup, command line |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 03:30 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 16:02 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |