% The Shifted Proper Orthogonal Decomposition: a Mode Decomposition for
% Multiple Transport Phenomena
% This is the main file to compute the numerical examples from the paper.
%
% Reference:
% J. Reiss, P. Schulze, J. Sesterhenn, V. Mehrmann: The Shifted Proper 
% Orthogonal Decomposition: a Mode Decomposition for Multiple Transport 
% Phenomena (2018)
%
% Authors:
%   Julius Reiss, reiss@tnt.tu-berlin.de
%   Philipp Schulze, pschulze@math.tu-berlin.de
%
% Version:
%   1.0 (February 15, 2018)
% 

close all
clear
clc

path(path, genpath('./LIB/'))

tic
init_sPOD % initializes the case
params.data.generator() % generates the snapshot data
params.mode.calculator() % computes a mode decomposition
simulationTime = toc ;

doPlot = giveStructValue(params, 'plot', 'doPlot', false) ;
if(doPlot)
    plotSpod % creates plots
end