Index: DamEngine/trunk/doc/Dam Engine - Functional Design/CreatingCalculationProfiles.tex =================================================================== diff -u -r5424 -r5425 --- DamEngine/trunk/doc/Dam Engine - Functional Design/CreatingCalculationProfiles.tex (.../CreatingCalculationProfiles.tex) (revision 5424) +++ DamEngine/trunk/doc/Dam Engine - Functional Design/CreatingCalculationProfiles.tex (.../CreatingCalculationProfiles.tex) (revision 5425) @@ -108,11 +108,27 @@ \section{Combining a 2D subsoil profile with a surface line geometry} To create a calculation profile, another option is by combining a 2D subsoil profile with a surface line geometry. -If the surface line geometry lies entirely below the 2D subsoil profile, no combination can be made. -A calculation cannot be made for this situation, and an error message will follow. +If the surface line geometry lies entirely to the left or to the right of the 2D subsoil profile, a combination cannot be made. +If the surface line geometry lies even partially below the 2D subsoil profile, no combination can be made. +In both cases, a calculation cannot be made for this situation, and an error message will follow. This error message will not interrupt the entire DAM process; the message will be recorded in the log file. For merging a surface line geometry with a 2D subsoil profile, the surface line geometry is leading. This determines the left boundary (X-coordinate of the first point in the surface line geometry) of the 2D calculation profile to be created. It also determines its right boundary (X-coordinate of the last point in the surface line geometry). +The process consists of: +\begin{itemize} + \item Check that the 2D subsoil profile is not null + \item Check that the filling material and the surface line geometry are defined properly. + \item Check that the surface line geometry lies completely above the bottom of the 2D subsoil geometry. + \item Make a complete copy (clone) of both the 2D subsoil profile and the surface line geometry to prevent the original data from being changed. + \item Then perform all subsequent steps on the copies. + \item Round all coordinates from both the 2D subsoil profile as well as from the surface line geometry. + \item If necessary, adapt all X-coordinates from the 2D subsoil profile with the specified shift. + \item As the original profile may hev been shifted, create an extra clone (clone2) of the cloned profile to be used later to reset/retrieve surface information. + \item Create a new 2D profile as place holder for the resulting calculation profile. + + \item Add the 2D geometry to the 2D profile. + \item Finally, add all 2D layers (surfaces with info) to the 2D profile. +\end{itemize}