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

Problem with parallel python scripts for dual time stepping test case

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 3, 2013, 15:00
Default Problem with parallel python scripts for dual time stepping test case
  #1
New Member
 
Join Date: Jan 2013
Posts: 12
Rep Power: 4
sss3700 is on a distinguished road
I've discovered that the parallel_computation.py and merge_solution.py don't quite work for the test cases that use dual time stepping when run in parallel.

I think I've traced the error down to the following sections:

(parallel_computation.py):
Code:
 
# compose function call format and inputs
run_SU2_DDC = os.path.join( SU2_RUN , "SU2_DDC " + Config_DDC_filename )
run_SU2_CFD = os.path.join( SU2_RUN , "SU2_CFD " + Config_CFD_filename )
run_SU2_DDC = "mpirun -np 1 %s" % (run_SU2_DDC)
run_SU2_CFD = "mpirun -np %i %s" % (partitions, run_SU2_CFD)
if unsteady_simulation:
run_merge_solution = "merge_unsteady.py -p %s -f %s -b %s -e %s" % (partitions, Config_CFD_filename, 0, nExtIter) 
else:
run_merge_solution = "merge_solution.py -p %s -f %s -o %s" % (partitions, Config_CFD_filename, output)
The merge unsteady doesn't appear to get called for this config file option: 'UNSTEADY_SIMULATION= DUAL_TIME_STEPPING-2ND_ORDER' (I was running the incomp_euler channel flow test case).

Last edited by sss3700; March 3, 2013 at 15:26.
sss3700 is offline   Reply With Quote

Old   March 5, 2013, 14:30
Default
  #2
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 260
Rep Power: 5
economon is on a distinguished road
Hi,

There is also one other option that enables the unsteady file writing in the config file. Please set the following option:

WRT_UNSTEADY= YES

With this enabled as well as the dual time stepping option, the files will write in unsteady format with the iteration number appended to the filename (they will be ready for animating directly). I would also recommend writing solutions at every iteration by setting

WRT_SOL_FREQ= 1.

These settings should work well with the python scripts. Hope this helps!
T
economon is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Case running in serial, but Parallel run gives error atmcfd OpenFOAM Running, Solving & CFD 14 July 25, 2015 14:15
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
Dual Time Stepping CFD Student Main CFD Forum 20 October 24, 2005 15:57
parallel mode - small problem? co2 FLUENT 2 June 1, 2004 23:47
Time problem in parallel fluent MZB FLUENT 1 May 13, 2003 02:37


All times are GMT -4. The time now is 04:45.