示例#1
0
        /// <summary>
        /// Informationa about structural layers for multilayers object
        /// </summary>
        /// <returns>List of names and thickness of structural layers</returns>
        public List <Tuple <string, double> > GetStructuralLayers()
        {
            int numberOfLayers = StructuralLayersThickness.Count();

            if (numberOfLayers != StructuralLayersMaterialName.Count())
            {
                throw new Exception("Invalid layers properties");
            }

            List <Tuple <string, double> > layers = new List <Tuple <string, double> >();

            for (int layersId = 0; layersId < numberOfLayers; layersId++)
            {
                layers.Add(new Tuple <string, double>(StructuralLayersMaterialName[layersId], StructuralLayersThickness[layersId]));
            }
            return(layers);
        }
示例#2
0
 /// <summary>
 /// Removing information about all structural layers
 /// </summary>
 public void ClearStructuralLayers()
 {
     StructuralLayersThickness.Clear();
     StructuralLayersMaterialName.Clear();
 }
示例#3
0
 /// <summary>
 /// Adds new structural layer
 /// </summary>
 /// <param name="materialName">Material name for layer</param>
 /// <param name="thickness">Thickness of layer</param>
 public void AddStructuralLayer(string materialName, double thickness)
 {
     StructuralLayersThickness.Add(thickness);
     StructuralLayersMaterialName.Add(materialName);
 }