goma/goma — pull request #5 by acochrane (2014-04-11 20:58:22+00:00)
Title: Vol csv

This is a request to add the Post Processing Specifications card "Volumetric Integration Output Format" with both "Verbose" and "CSV" options

Verbose (default) output for Post Processing Volume Integration appears like this:
############################################################
Time/iteration = -9.999990e-01
(NEGATIVE_FILL) Volume Integral for block 1 species 0
volume= 5.6720940e-02
Time/iteration = -9.999980e-01
(NEGATIVE_FILL) Volume Integral for block 1 species 0
volume= 5.6717444e-02
Time/iteration = -9.999970e-01
(NEGATIVE_FILL) Volume Integral for block 1 species 0
volume= 5.6713970e-02
############################################################

While CSV output (easily read into matlab, python, etc.) appears like this:
############################################################
Time, NEGATIVE_FILL
-9.999990e-01, 5.6720940e-02
-9.999980e-01, 5.6717444e-02
-9.999970e-01, 5.6713970e-02
############################################################

I haven't tested it with anything except the lubp, level_set, and shell_lub_curve equations.
I'm fairly certain it won't break anything in either mm_flux.c or mm_post_proc.c. I tested an earlier version with parallel and it worked fine.
The differences include a global toggle "ppvi_type" that tells evaluate_volume_integral whether to log verbose or csv type output. Also the initial labelling has been moved from the "Post Processing Volumetric Integration" read function to the "Volumetric Integration Output Format" read function.