Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AreaSection" /> class.
 /// </summary>
 /// <param name="material">The material.</param>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 protected AreaSection(
     Materials.Materials material,
     string name,
     eAreaSectionType type = eAreaSectionType.All)
     : base(material, name, type)
 {
     _sectionProperties = new T();
 }
Ejemplo n.º 2
0
        public void GetNameList_By_Type_ASolid()
        {
            eAreaSectionType areaType = eAreaSectionType.ASolid;

            string[] names = _app.Model.Definitions.Properties.AreaSection.GetNameList(areaType);

            Assert.That(names.Length, Is.EqualTo(CSiDataArea.NumberOfSectionsASolidExpected));
            Assert.That(names.Contains(CSiDataArea.NameSectionASolid));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AreaSection" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="material">The material.</param>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 protected AreaSection(ApiCSiApplication app,
                       Materials.Materials material,
                       string name,
                       eAreaSectionType type = eAreaSectionType.All)
     : base(app, material, name)
 {
     _sectionProperties = new T();
     AreaType           = type;
 }
Ejemplo n.º 4
0
        public void GetNameList_By_Type_Plane()
        {
            eAreaSectionType areaType = eAreaSectionType.Plane;

            string[] names = _app.Model.Definitions.Properties.AreaSection.GetNameList(areaType);

            Assert.That(names.Length, Is.EqualTo(CSiDataArea.NumberOfSectionsPlaneExpected));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlaneStrain));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlaneStress));
        }
Ejemplo n.º 5
0
        public void GetNameList_By_Type_Shell()
        {
            eAreaSectionType areaType = eAreaSectionType.Shell;

            string[] names = _app.Model.Definitions.Properties.AreaSection.GetNameList(areaType);

            Assert.That(names.Length, Is.EqualTo(CSiDataArea.NumberOfSectionsShellExpected));
            Assert.That(names.Contains(CSiDataArea.NameSectionShellThin));
            Assert.That(names.Contains(CSiDataArea.NameSectionShellThick));
            Assert.That(names.Contains(CSiDataArea.NameSectionShellLayered));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlateThin));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlateThick));
            Assert.That(names.Contains(CSiDataArea.NameSectionMembrane));
        }
Ejemplo n.º 6
0
        public void GetNameList_By_Type_All()
        {
            string[]         names;
            eAreaSectionType areaType = eAreaSectionType.All;

            _app.Model.Definitions.Properties.AreaSection.GetNameList(out names, areaType);

            Assert.That(names.Length, Is.EqualTo(CSiDataArea.NumberOfSectionsExpected));
            Assert.That(names.Contains(CSiDataArea.NameSectionShellThin));
            Assert.That(names.Contains(CSiDataArea.NameSectionShellThick));
            Assert.That(names.Contains(CSiDataArea.NameSectionShellLayered));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlateThin));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlateThick));
            Assert.That(names.Contains(CSiDataArea.NameSectionMembrane));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlaneStrain));
            Assert.That(names.Contains(CSiDataArea.NameSectionPlaneStress));
            Assert.That(names.Contains(CSiDataArea.NameSectionASolid));
        }
Ejemplo n.º 7
0
        public eAreaSectionType GetType(string name)
        {
            eAreaSectionType areaPropertyType = _app.Model.Definitions.Properties.AreaSection.GetType(name);

            return(areaPropertyType);
        }