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

help to run CFX simulation via HPC, please

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

Like Tree1Likes
  • 1 Post By Lance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2012, 03:57
Default help to run CFX simulation via HPC, please
  #1
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
Hi anyone,,,
I'm now trying to conduct my simulation faster via HPC at my Uni. the probles is that my script file give me the results in .out file not .res file. Actually, I took the csript file from website and I have no idea how I can make my outlet as .res file. Here you are my script file.
#!/bin/bash -l
#
##### Job Name #####
#PBS -N 3cm
##### Select resources ####
#PBS -l nodes=1pn=4
#PBS -l walltime=01:00:00
##### Goto the directory from which you submitted the job
cd $PBS_O_WORKDIR
##### Request that regular output (stdout) and terminal output (stderr) go to the same file
PBS -o /home/eng/0000000/Gap_width=3cm.out
#PBS -wd
##### Mail Options #####
#PBS -m abe
#PBS -M 0000000@gmail.000.edu.au
##### Queue #####
#PBS -q standard
##### Add ansys_module
module load ansys
##### Specifies the version of ANSYS CFX
version=3d
# The following line would start the simulation from a
# previous results file, Gap_width=3cm_001.res
cfx5solve -double -def Gap_width=3cm.def -initial Gap_width=3cm_001.res -part 4 $nprocs -par-local
I appretiate any advise.
happy is offline   Reply With Quote

Old   February 23, 2012, 04:45
Default
  #2
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Did you get the script from a random webpage or was it given to you by the IT-guys and girls at your uni? Anyway, they should be able to help you with your batch script. Are you sure you are supposed to use PBS?

Also, this is a bit odd:
##### Specifies the version of ANSYS CFX
version=3d

I doubt you need to specify 3D, as CFX always solve in 3D (unlike Fluent, which can be 2D)
happy likes this.
Lance is offline   Reply With Quote

Old   February 23, 2012, 06:18
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
CFX has a demo script file for running CFX under PBS in the documentation and the script file is at <CFX_ROOT>/extras/qcfx5solve.pl
ghorrocks is offline   Reply With Quote

Old   February 23, 2012, 19:12
Exclamation thanks for your input and further question& help me
  #4
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
Thanks guys
For Glenn, yes,, U R right.
Our ICT devition do not want to help me to write my script file because as I understand they feel it is not their job and they get mad quickly. that is why I'm email you to help me.
I got this error however It produce my out file but it also give the messgae:

Capability CFX_SOLVER_BASIC_MP_LIMIT does not exist in the ANSYS licensing pool.
None of the products enabling this capability are available in the specified license path:
ANSYSLI_SERVERS: 2325@139.86.160.180
FLEXlm Servers: 1055@139.86.160.180
=>> PBS: job killed: walltime 92 exceeded limit 50
A fatal error has occurred in cfx5solve:
cfx5solve was killed by the user.For general information, the ansys should be work in batch mode.
happy is offline   Reply With Quote

Old   February 23, 2012, 22:58
Cool
  #5
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
Quote:
Originally Posted by happy View Post
Thanks guys
For Glenn, yes,, U R right.
Our ICT devition do not want to help me to write my script file because as I understand they feel it is not their job and they get mad quickly. that is why I'm email you to help me.
I got this error however It produce my out file but it also give the messgae:

Capability CFX_SOLVER_BASIC_MP_LIMIT does not exist in the ANSYS licensing pool.
None of the products enabling this capability are available in the specified license path:
ANSYSLI_SERVERS: 2325@139.86.160.180
FLEXlm Servers: 1055@139.86.160.180
=>> PBS: job killed: walltime 92 exceeded limit 50
A fatal error has occurred in cfx5solve:
cfx5solve was killed by the user.For general information, the ansys should be work in batch mode.
my out file is here and the solver stop due to error; hwever, my out file is standards file nor in .res form!!!!how I can load .out file to cfxpost. I tried but give me an error!!!By the way, in my home directory there is many files created by solver due to calculation but interstingly without extention. help me ASAP
happy is offline   Reply With Quote

Old   February 24, 2012, 02:47
Default
  #6
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Quote:
Originally Posted by happy View Post
None of the products enabling this capability are available in the specified license path:
ANSYSLI_SERVERS: 2325@139.86.160.180
FLEXlm Servers: 1055@139.86.160.180
=>> PBS: job killed: walltime 92 exceeded limit 50
Lower your time to less than 50 wall clock hours. Also, check that your license settings are correct.
I couldnt check your out file, post the error messages here instead.
Lance is offline   Reply With Quote

Old   February 24, 2012, 06:15
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Also, do you need to use PBS? If you are not familiar with batch scheduling software it is just making things hard for you. You can run the solver from the command line, and you can queue up a bunch of jobs if you like. If that is all you want then forget about PBS.

But if you need the power of a batch scheduling system or the HPC submits all jobs with PBS and you cannot go with the command line then you better stick with it.
ghorrocks is offline   Reply With Quote

Old   February 25, 2012, 01:35
Default my reply
  #8
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
Hi all
I would like to thank Lance for his/her input and would like to tell Glenn that my simulation now are running by PBS in perfect way
happy is offline   Reply With Quote

Old   February 25, 2012, 05:54
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Good to hear.

I have wondered why CFX includes such a complex PBS script when much simpler scripts (like the one you have) work. PBS is a bit tricky to set up, especially if you want it to queue based on license availability rather than just CPU availability.
ghorrocks is offline   Reply With Quote

Old   February 25, 2012, 22:05
Post need more information
  #10
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
Hi Glenn,,
please could you please give me more explaination for 'based on license availability rather than just CPU availability'. I mean which sort of mode can work based on the CPU availability?
Actually, I did not have HPC license.
Best Regards
happy is offline   Reply With Quote

Old   February 26, 2012, 04:13
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The normal mode of operation of PBS is to queue jobs based on the availability of CPUs. This is fine for unlicensed software, but for licensed software often the limitation is how many licenses you have. To make PBS also queue based on license availability we had to add a custom routine to PBS. From memory it checks the license availability on the license server every minute or so and picks up available licenses that way. We talked to PBS support to help develop this. But I remain a little surprise about this because I would have thought there would be lots of customers out there who are license limited so there should be strong demand for this.
ghorrocks is offline   Reply With Quote

Old   February 26, 2012, 19:59
Thumbs up error with the time
  #12
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
Thanks Glenn for your input.
I read your thesis and you looks ANSYS-CFX exprtise. First, could you please tell me the cause of this error when I conduct my running via HPC(PBS).
PBS: job killed: walltime 43238 exceeded limit 43200
However, when I reduce the no. of iteration from 1000 to 300, the .res file produced. I tried to set the walltime but without any benefit. does this error come from the limitation mem on my home directory???By the way, I did not set the required memory for my job into my script file.
I appreciate any input.
Regards
happy is offline   Reply With Quote

Old   February 26, 2012, 23:05
Default
  #13
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Firstly, PBS is not part of CFX. PBS is a third party commercial software from Altair http://www.pbsworks.com/. If you want help with PBS you are best to ask your Altair support person.

But to my reading your error message is pretty obvious - you have set a maximum wall time limit and that was exceeded so it stopped the job. If you want to run longer you need to define a longer wall time limit, or no limit at all.
ghorrocks is offline   Reply With Quote

Old   February 29, 2012, 07:47
Default
  #14
Senior Member
 
Join Date: Jul 2011
Location: Berlin, Germany
Posts: 173
Rep Power: 14
monkey1 is on a distinguished road
Hi Happy!
Just as a hint: When you get an error and CFX "crashes" or stops prematurely without finishing the run correctly you will NEVER get a .res file, only an .out file.
The .res File can only be produced if CFX finishes successfully. If it doesn't you will be provided with the .out file to be able to retrace the Problem that caused the premature stop!
monkey1 is offline   Reply With Quote

Old   February 29, 2012, 08:54
Default
  #15
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14
Zigainer is on a distinguished road
And just if you can't change the max wall time then split your job. Let's say do 300 Iterations and get a .res file. Then start your second calculation with the old .res file and continue with another 300 iterations.
Zigainer is offline   Reply With Quote

Old   March 2, 2012, 00:31
Default thanks
  #16
Senior Member
 
Safia
Join Date: Oct 2010
Location: Australia
Posts: 161
Rep Power: 15
happy is on a distinguished road
hi again
thanks for your advices. That what I did, the perfect way is spilt my tasks to many depending on the no. of iterations. once again, thanks
happy is offline   Reply With Quote

Old   February 27, 2016, 13:07
Default CFX license issue for HPC
  #17
Member
 
beyonder
Join Date: May 2015
Posts: 67
Rep Power: 10
beyonder1 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The normal mode of operation of PBS is to queue jobs based on the availability of CPUs. This is fine for unlicensed software, but for licensed software often the limitation is how many licenses you have. To make PBS also queue based on license availability we had to add a custom routine to PBS. From memory it checks the license availability on the license server every minute or so and picks up available licenses that way. We talked to PBS support to help develop this. But I remain a little surprise about this because I would have thought there would be lots of customers out there who are license limited so there should be strong demand for this.
I am having the same problem of license unavailability for Ansys CFX. I want my job on queue till the license gets available. you have talked about this issue. Is there some part of code that I can add in my script to resolve this. Please help me out.
beyonder1 is offline   Reply With Quote

Old   February 28, 2016, 04:54
Default
  #18
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Are using PBS?
ghorrocks is offline   Reply With Quote

Old   February 28, 2016, 10:35
Default
  #19
Member
 
beyonder
Join Date: May 2015
Posts: 67
Rep Power: 10
beyonder1 is on a distinguished road
Yes, I am using PBS. I am not able to figure out this part.
beyonder1 is offline   Reply With Quote

Old   February 28, 2016, 17:18
Default
  #20
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quoting my previous post:

Quote:
We talked to PBS support to help develop this. But I remain a little surprise about this because I would have thought there would be lots of customers out there who are license limited so there should be strong demand for this.
ghorrocks is offline   Reply With Quote

Reply

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
ERROR #001100279 - CFX 13 - transient run Zigainer CFX 14 December 9, 2011 13:22
CFX thermo-fluid 2D simulation problems maryliz CFX 6 October 31, 2011 23:26
nucleate boiling simulation in CFX Anil CFX 3 August 25, 2010 14:18
mesh from Workbench Simulation to Cfx Pre? Dai CFX 6 November 11, 2006 12:19
Procedure to run unsteady simulation? STN Main CFD Forum 2 February 16, 2002 04:37


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