\chapter{Display results}\label{sec:USDisplayResults}

The user must be able to view the results of the calculations within \ProgramName. 

\section{Display results in a table}\label{sec:USDisplayResultsTable}

The overall results at main level must be presented in a table so these can be exported and/or copy pasted in an excel sheet. 
Unless stated otherwise, all results are read only.

Next to that, the individual results of a single calculation must be presented in a property view.
This view must show the relevant information about the calculation 
(i.e. what location, profile, scenario  etc. it represents) as well as the main results. 
An optional graphic presentation of the results must be offered when applicable (e.g.  the picture of the final slip circle for a bishop stability calculation).
It must also be possible to open/recalculate the individual result in the original program from within \ProgramName when applicable. 

\subsection{Stability results}
The results presented in the table for the stability calculations must be (at least but not limited to):
\begin{itemize}
	\item name of the location
	\item name of the scenario
	\item calculation result (succeeded, failed, not calculated)
	\item location coordinates (in RD)
	\item type of analysis (no adaption/adapt geometry)
	\item uplift (yes/no)
	\item profile name
	\item profile probability
	\item the safety factor
	\item entry point of the slip plane
	\item exit point of the slip plane
	\item Result messages (e.g. error messages from calculation/validation)
	\item Number of iterations (important for Design with adapt geometry)
	\item Notes (free remarks by user, editable)
	\item Evaluation (Not evaluated/Accepted/Rejected, editable)
\end{itemize}

In the technical design (\citep{DAMUI_TechnicalDesign}), a full list of all required results is presented. 

\subsection{Piping results}
The results per individual calculation presented using a table for the piping calculations must be (at least but not limited to):
\begin{itemize}
	\item name of the location
	\item name of the scenario
	\item calculation result (succeeded, failed, not calculated)
	\item location coordinates (in RD)
	\item type of analysis (no adaption/adapt geometry)
	\item uplift (yes/no)
	\item profile name
	\item profile probability
	\item safety factor (= piping factor)
	\item required safety factor
	\item River level
	\item Piping Model
	\item Entry point piping X (local)
	\item Exit point piping X (local)
	\item Seepage length piping
	\item Hcritical
	\item Uplift safety factor
	\item Backward erosion safety factor
	\item Backward erosion safety factor (WBI*)
	\item Backward erosion CCreep (WBI*)
	\item Backward erosion hc (WBI*)
	\item Backward erosion delta hc (WBI*)
	\item Backward erosion reduced delta hc (WBI*)	
	\item Uplift safety factor (WBI*)
	\item Uplift hc (WBI*)
	\item Uplift delta hc (WBI*)
	\item Heave safety factor (WBI*)
	\item Heave hc (WBI*)
	\item Heave gradient (WBI*)
	\item Piping hc (WBI*)
	\item Effective stress exit point (WBI*)
	\item Result messages (e.g. error messages from calculation/validation)
	\item Number of iterations (important for option Design with adapt geometry)
	\item Notes (free remarks by user, editable)
	\item Evaluation (Not evaluated/Accepted/Rejected, editable)
\end{itemize}
\Note{*: Should only be visibile when the WBI model is used. A full list of all parameters and their dependency on the used model is provided in the technical design \citep{DAMUI_TechnicalDesign}.
 
In the property view (per result) the next items must be displayed and for a part be editable:
\begin{itemize}
	\item name of the location
	\item profile name
	\item Piping Model
	\item name of the scenario
	\item safety factor (= piping factor)	
	\item calculation result (succeeded, failed, not calculated)
	\item Number of iterations (important for Desing with adapt geometry)
	\item Evaluation (Not evaluated/Accepted/Rejected, editable)
	\item Notes (free remarks by user, editable)	
\end{itemize}

In order to be able to (re-)display the results mentioned above when loading a project file that already calculated them, 
these results must be part of the damx project file itself.

Finally, some extra information that can be useful to examine the results further 
(such as the profile and surface line used in the analysis) 
are written to an external file per location, scenario, profile. 
Note that the name of the file must be added to the individual results per calculation as part of the damx project file.
The data in this file will be used to display the adapted surfaceline graphically when this is available. For this purpose, the file should be read upon selection of the result.

\section{Display results in a graph view}\label{sec:USDisplayResultsGraphic}
\subsection{Cross section view}
Based on the results of the calculation it should be possible to display the following items 
in a cross section view per calculated (design and/or subsoil) scenario per location.
\begin{itemize}
	\item The adapted surfaceline when a design calculation has been performed with adaption.
	\item The resulting slipcircle when a stability calculation has been performed.
\end{itemize}

\section{Open individual D-Stability projects}\label{sec:USOpenDStability}
When a stability calculation has been performed it should be possible to open the stability calculation 
in D-Stability for each calculated (design and/or subsoil) scenario per location.
D-Stability should be installed on the same system and is not part of \ProgramName.


