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

Saving file after set durations using Command Line

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 5, 2024, 15:14
Default Saving file after set durations using Command Line
  #1
New Member
 
Johan M
Join Date: May 2021
Posts: 25
Rep Power: 4
Johan M is on a distinguished road
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
Johan M is offline   Reply With Quote

 

Tags
cfx, cluster setup, command line


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
[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


All times are GMT -4. The time now is 18:05.