Page 1 of 1

Batch calculations

Posted: Thu Jul 01, 2010 10:32 am
by Stéphane Blanchet
Dear Support and Users,
Is there any way to do batch calculations in a straightforward way? Right now, in order to do that, I modify the runcase in order to launch several calculations (I'm not sure this is the best way to do that). But in Code_Saturne 2.0rc1, in Calculation management/Prepare Batch Calculation, I noticed we can set different xml files in "User files", but when I launch Code_Saturne, only the xml I opened with Code_Saturne runs.
Any idea?
Best regards,
Stéphane

Re: Batch calculations

Posted: Thu Jul 01, 2010 5:20 pm
by Yvan Fournier
Hello,
"User input files" are not intended for additional XML files, for for any other file that is present in the DATA subdirectory and that may be read by user Fortran subroutines for example.
So generating a series of "runcase" files each using a different XML file is currently the best solution .If only a few parameters are changed for a parametric study, replacing the parameters in the runcase or XML file by a specific string and using a simple script to generate a series of runcase/xml files from that template by replacing those strings with the parameter values with a command such as "sed" might be a good idea; at least, that's how we currently automate things when we need to.
Regards,

Re: Batch calculations

Posted: Fri Jul 02, 2010 10:34 am
by Stéphane Blanchet
Hello,
Ok, thank a lot for you for your answer!
Regards,
Stéphane