|
[Sponsors] |
Running session file on HPC without opening CFD post |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 15, 2022, 05:42 |
Running session file on HPC without opening CFD post
|
#1 |
New Member
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
Hello,
I would like to run a session file on my university clusters. I read in CFX user guide that on Linux I can do that by the following command: <CFDPOSTROOT>/bin/cfdpost -batch <session_file>.cse <Res_file>.res where session_file is the name of session file and Res_file is the name of result file. The problem is that I do not know the CFDPOSTROOT location on the clusters. Also, I cannot run the CFD Post software on clusters because it could cause a licensing problem and the other jobs on the clusters might crash/fail because of that. That's why I would like to run the post script in the background without opening CFD Post. Does anyone know a way to do so without causing the licensing issue. Thank you! |
|
August 15, 2022, 05:53 |
|
#2 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Can you open the CFX-launcher on your linux-cluster?
If so, then in the ribbon go to Tools > Command line. This will give you a window with all links required. |
|
August 15, 2022, 05:59 |
|
#3 | |
New Member
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
Quote:
Is it possible to run the session file from command line without opening anything manually, so that I can use it in a batch script? |
||
August 15, 2022, 08:04 |
|
#4 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Yes, therefore I suggest to use the command line functionality from the CFX-Launcher
|
|
August 15, 2022, 11:10 |
|
#5 |
New Member
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
Could you please explain in detail what are you trying to suggest. I opened the command line however I am not sure how to run .cse script or which command to use to run it from there.
|
|
August 15, 2022, 11:33 |
|
#6 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Once you get the new command line window, you should be able to use
cfdpost -help and read all the valid command lines, for example cfdpost -play MySession.cse
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
August 15, 2022, 12:05 |
|
#7 | |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Quote:
It will not solve your license problem since ANSYS will still require a valid license, even in command mode. It will save you however a lot of time because this route is generally much faster. |
||
August 15, 2022, 14:54 |
|
#8 |
New Member
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
But the licensing issue is a bigger problem, because it will crash the running simulation. I was told there is a way to run CFD post session file without opening the GUI for CFD post, but I am not familiar with the command involved.
|
|
August 15, 2022, 15:35 |
|
#9 | |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Quote:
To run the CFX software, the software must be within the appropriate environment (which is not trivial). The command line (as mentioned repeatedly above) provides such an environment. Without the proper environment, the software will NEVER work.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
August 15, 2022, 18:51 |
|
#10 | |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28 |
Quote:
So, it is very weird if a Solver or any other other process crashes when you start a Post session, with or without GUI. It should not start at all if the license is unavailable. Therefore, if this is your real problem, then something is wrong and beyond my/our expertise. I would ask ANSYS. |
||
August 15, 2022, 18:54 |
|
#11 |
New Member
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
Thank you both of you for your support, I will try to run it anyway and check if I succeed without crashing anything.
|
|
August 30, 2022, 23:34 |
|
#12 |
Senior Member
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15 |
||
August 31, 2022, 08:28 |
|
#13 |
New Member
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
Hi, There is a way to run session file without using the GUI. In order to avoid licensing issue, either you need to have free licenses available or you need to run it through a batch script as a CFX job.
To run it as a batch job make a batch script and use the command mentioned in the previous answers. If you are confused about the command, you can also refer the user guide for cfd post. It has the commands for batch session. |
|
Tags |
cfdpost, cfx2020r2, cluster computing, hpc cluster, session file |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |