Page 1 of 1

Write Each Branch to a Different *_res.m file?

Posted: Wed Aug 01, 2018 9:16 pm
by lkissin2
Hello Forum,

I would like to send the output of each branch to a unique file. I am using the post-processing code GenPMAXS to make cross section files for the transient code PARCS. For some reason, GenPMAXS requires each branch calculation to come from a unique *_res.m file. Is it possible to write one deck for SERPENT2 version 2.1.30 to do this, or should I write one deck for each branch case that interests me (eg 6 files with fuel at 300, 600, 900, 1200, 1500, 1800 degrees)?

Thanks in advance for any help!

Re: Write Each Branch to a Different *_res.m file?

Posted: Fri Aug 03, 2018 3:13 pm
by Ville Valtavirta
Serpent will output all branches of one calculation to the same _res.m file.

You'll either have to run the different branches separately or split the _res.m file into multiple files after the simulation.

-Ville

Re: Write Each Branch to a Different *_res.m file?

Posted: Thu Aug 30, 2018 9:22 am
by Jaakko Leppänen
The _res.m is written by matlaboutput.c. You can modify the the routine in such way that the coefficient calculation index (DATA_COEF_CALC_RUN_IDX) is included in the file name.