private static List <RealPoint> MapDomainOutputPoints(XDocument xml)
        {
            var XdomainOutput      = xml.Root.Element(outputElementName).Element(domainOutputElementName);
            var domainOutputPoints = new List <RealPoint>();

            foreach (var Xpoint in XdomainOutput.Elements())
            {
                domainOutputPoints.Add(new RealPoint(double.Parse(Xpoint.Attribute("x").Value.Replace(".", ",")), double.Parse(Xpoint.Attribute("y").Value.Replace(".", ","))));
            }

            return(domainOutputPoints);
        }
        private static List <BoundaryOutputPoint> MapBoundaryOutputPoints(XDocument xml)
        {
            var XboundaryOutput    = xml.Root.Element(outputElementName).Element(boundaryOutputElementName);
            var boundaryAreaPoints = new List <BoundaryOutputPoint>();

            foreach (var Xpoint in XboundaryOutput.Elements())
            {
                var areaIndex           = int.Parse(Xpoint.Attribute(areaIndexAttributeName).Value);
                var segmentIndex        = int.Parse(Xpoint.Attribute(segmentIndexAttributeName).Value);
                var parametricPosition  = double.Parse(Xpoint.Attribute(parametricPositionAttributeName).Value.Replace(".", ","));
                var boundaryCondition   = Xpoint.Attribute(boundaryConditionAttributeName).Value;
                var boundaryOutputPoint = new BoundaryOutputPoint()
                {
                    areaIndex             = areaIndex,
                    segmentIndex          = segmentIndex,
                    parametricPosition    = parametricPosition,
                    boundaryConditionType = boundaryCondition == "T" ? BoundaryConditionType.Temperature : BoundaryConditionType.HeatFlux
                };
                boundaryAreaPoints.Add(boundaryOutputPoint);
            }

            return(boundaryAreaPoints);
        }