Output Config
Created by: chleh
This PR:
- adds a class for writing basic PVD files
- adds a class that handles output configuration
Output files now have names like square_1e4_pcs_0_ts_1_t_1.000000.vtu
.
The output is configured by a snippet like the following in the prj file:
<output>
<type>VTK</type>
<prefix>line_1</prefix>
<timesteps>
<pair><repeat> 10 </repeat><each_steps> 1 </each_steps></pair>
<pair><repeat> 10 </repeat><each_steps> 1 </each_steps></pair>
<pair><repeat> 10 </repeat><each_steps> 1 </each_steps></pair>
<pair><repeat> 10 </repeat><each_steps> 1 </each_steps></pair>
<pair><repeat> 10 </repeat><each_steps> 1 </each_steps></pair>
<pair><repeat> 10 </repeat><each_steps> 1 </each_steps></pair>
<pair><repeat> 1 </repeat><each_steps> 10 </each_steps></pair>
</timesteps>
</output>
where the <timesteps>
part is optional and defaults to doing output in every timestep.
The input files changed accordingly: E.g. <file>line_1</file>
→ <prefix>line_1</prefix>
.