Exemple #1
0
        public CartesianModel(LateralDimensions lateral, CartesianSection1D section1D, CartesianAnomaly anomaly)
        {
            if (section1D.NumberOfLayers == 0)
            {
                throw new ArgumentOutOfRangeException(nameof(section1D));
            }

            LateralDimensions = lateral;
            Section1D         = section1D;
            Anomaly           = anomaly;
        }
Exemple #2
0
        public static void SaveBackground(XElement xmodel, CartesianSection1D section1D)
        {
            var xbackground = new XElement(BackgroundSection,
                                           new XAttribute(BackgroundZeroLevelAttr, section1D.ZeroAirLevelAlongZ));

            for (int i = 0; i < section1D.NumberOfLayers; i++)
            {
                xbackground.Add(new XElement(BackgroundLayer,
                                             new XAttribute(BackgroundLayerThicknessAttr, section1D[i].Thickness),
                                             new XAttribute(BackgroundLayerSigmaRealAttr, section1D[i].Sigma.ToString("E2"))));
            }

            xmodel.Add(xbackground);
        }