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

Running session file on HPC without opening CFD post

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By aadicfd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2022, 04:42
Default Running session file on HPC without opening CFD post
  #1
New Member
 
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5
aadicfd is on a distinguished road
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!
aadicfd is offline   Reply With Quote

Old   August 15, 2022, 04:53
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,835
Rep Power: 27
Gert-Jan will become famous soon enough
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.
Gert-Jan is offline   Reply With Quote

Old   August 15, 2022, 04:59
Default
  #3
New Member
 
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5
aadicfd is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
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.
Thank you for the reply, but I wish to run a session file using terminal (to later automate the process).

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?
aadicfd is offline   Reply With Quote

Old   August 15, 2022, 07:04
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,835
Rep Power: 27
Gert-Jan will become famous soon enough
Yes, therefore I suggest to use the command line functionality from the CFX-Launcher
Gert-Jan is offline   Reply With Quote

Old   August 15, 2022, 10:10
Default
  #5
New Member
 
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5
aadicfd is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Yes, therefore I suggest to use the command line functionality from the CFX-Launcher
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.
aadicfd is offline   Reply With Quote

Old   August 15, 2022, 10:33
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,815
Rep Power: 32
Opaque will become famous soon enough
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.
Opaque is offline   Reply With Quote

Old   August 15, 2022, 11:05
Default
  #7
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,835
Rep Power: 27
Gert-Jan will become famous soon enough
Quote:
Originally Posted by aadicfd View Post
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.
Remember that using this command line will solve the issues with the link to CFD-Post.
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.
Gert-Jan is offline   Reply With Quote

Old   August 15, 2022, 13:54
Default
  #8
New Member
 
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5
aadicfd is on a distinguished road
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.
aadicfd is offline   Reply With Quote

Old   August 15, 2022, 14:35
Default
  #9
Senior Member
 
Join Date: Jun 2009
Posts: 1,815
Rep Power: 32
Opaque will become famous soon enough
Quote:
Originally Posted by aadicfd View Post
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.
It seems you did not read my previous response, and you do not understand the concept of the command line launched from the CFX launcher.

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.
Opaque is offline   Reply With Quote

Old   August 15, 2022, 17:51
Default
  #10
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,835
Rep Power: 27
Gert-Jan will become famous soon enough
Quote:
Originally Posted by aadicfd View Post
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.
You can use the command line, like Opaque recommends, but then still a license is required. It would be very generous from ANSYS if they would allow us to use CFDPost via the command line without legal license. They're not, believe me. Shareholder value and so on..........

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.
Gert-Jan is offline   Reply With Quote

Old   August 15, 2022, 17:54
Default
  #11
New Member
 
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5
aadicfd is on a distinguished road
Thank you both of you for your support, I will try to run it anyway and check if I succeed without crashing anything.
Светлана likes this.
aadicfd is offline   Reply With Quote

Old   August 30, 2022, 22:34
Default
  #12
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
Quote:
Originally Posted by aadicfd View Post
Thank you both of you for your support, I will try to run it anyway and check if I succeed without crashing anything.

what did you find?
Светлана is offline   Reply With Quote

Old   August 31, 2022, 07:28
Default
  #13
New Member
 
Aaditya
Join Date: Apr 2021
Posts: 19
Rep Power: 5
aadicfd is on a distinguished road
Quote:
Originally Posted by Светлана View Post
what did you find?
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.
aadicfd is offline   Reply With Quote

Reply

Tags
cfdpost, cfx2020r2, cluster computing, hpc cluster, session file

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


All times are GMT -4. The time now is 02:35.