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

SU2 shape_optimization.py parallel run using pbspro job scheduler

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2015, 00:56
Smile SU2 shape_optimization.py parallel run using pbspro job scheduler
  #1
New Member
 
Amit Kamboj
Join Date: Jan 2015
Posts: 11
Rep Power: 11
amitkamboj is on a distinguished road
Hi!

I need to run shape_optimization.py on cluster using pbspro job scheduler.

I am interested in running the SU2 problem in parallel. For a flow solving problem using SU2_CFD, I am able to do using the following pbspro script file,

(# indicates the comments, #PBS are read by pbspro)

Code:
#! /bin/csh
#######PBS -l walltime=48:00:00
#PBS -N nca6
#PBS -q workq
#PBS -l select=1:ncpus=2:mpiprocs=2
#PBS -l place=scatter:excl
#PBS -V

# Go to the directory from which you submitted the job
# to split the domain
# mpirun -n 2 /local/bin/SU2_PRT inv_NACA0012.cfg

cd $PBS_O_WORKDIR

cat $PBS_NODEFILE > pbsnodes

mpirun --machinefile pbsnodes -n 02 /local/bin/SU2_CFD inv_NACA0012.cfg > /dev/null

# finally..
# scp restart_flow.dat solution_flow.dat
# SU2_SOL inv_NACA0012.cfg
Also, I am able to run the shape_optimization.py through,

Code:
shape_optimization.py -f rotating_NACA0012.cfg -n 4
The process works perfectly fine. But when the problem size increases I need to submit the job on more than 1 node using the scheduler, which I am not able to do.

So I want to create a similar script file so that I can submit shape_optimization.py on cluster. Which I am not able to do and need help with.

Would be grateful for any help you can provide.

Thanks in Advance!
amitkamboj is offline   Reply With Quote

Old   May 19, 2015, 16:35
Default
  #2
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13
hlk is on a distinguished road
Quote:
Originally Posted by amitkamboj View Post
Hi!

I need to run shape_optimization.py on cluster using pbspro job scheduler.

I am interested in running the SU2 problem in parallel. For a flow solving problem using SU2_CFD, I am able to do using the following pbspro script file,

(# indicates the comments, #PBS are read by pbspro)

Code:
#! /bin/csh
#######PBS -l walltime=48:00:00
#PBS -N nca6
#PBS -q workq
#PBS -l select=1:ncpus=2:mpiprocs=2
#PBS -l place=scatter:excl
#PBS -V

# Go to the directory from which you submitted the job
# to split the domain
# mpirun -n 2 /local/bin/SU2_PRT inv_NACA0012.cfg

cd $PBS_O_WORKDIR

cat $PBS_NODEFILE > pbsnodes

mpirun --machinefile pbsnodes -n 02 /local/bin/SU2_CFD inv_NACA0012.cfg > /dev/null

# finally..
# scp restart_flow.dat solution_flow.dat
# SU2_SOL inv_NACA0012.cfg
Also, I am able to run the shape_optimization.py through,

Code:
shape_optimization.py -f rotating_NACA0012.cfg -n 4
The process works perfectly fine. But when the problem size increases I need to submit the job on more than 1 node using the scheduler, which I am not able to do.

So I want to create a similar script file so that I can submit shape_optimization.py on cluster. Which I am not able to do and need help with.

Would be grateful for any help you can provide.

Thanks in Advance!
Thanks for your question.
I think this thread includes a lot of notes on using PBS with SU2
http://www.cfd-online.com/Forums/su2...using-pbs.html
hlk is offline   Reply With Quote

Old   May 19, 2015, 18:06
Default
  #3
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Hi,

I might also add that you can directly modify the command line call for parallel runs (to add machine files or change the mpiexec call directly) in the file interface.py that will be located in the $YOUR_SU2_INSTALL/SU2/run/ directory.

Hope this helps,
Tom
economon is offline   Reply With Quote

Reply


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
mpirun, best parameters pablodecastillo Hardware 18 November 10, 2016 12:36
Case running in serial, but Parallel run gives error atmcfd OpenFOAM Running, Solving & CFD 18 March 26, 2016 12:40
parallel computation with SU2 V3.2 454514566@qq.com SU2 1 June 24, 2014 20:46
Problem on Parallel Run Setup Hamidur Rahman CFX 0 September 23, 2007 17:11
Windows 64-bit, Distributed Parallel Run Issues... Erich CFX 3 March 28, 2006 16:36


All times are GMT -4. The time now is 08:24.