/// <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(); }
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)); }
/// <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; }
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)); }
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)); }
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)); }
public eAreaSectionType GetType(string name) { eAreaSectionType areaPropertyType = _app.Model.Definitions.Properties.AreaSection.GetType(name); return(areaPropertyType); }