StructuralLoadCombination Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.Loads
public sealed class StructuralLoadCombination : StructuralAnalysisObjectBase, ILoadAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IEquatable<StructuralLoadCombination>, IReadOnlyCollection<StructuralLoadCombinationData>, IEnumerable<StructuralLoadCombinationData>, IEnumerable
The StructuralLoadCombination type exposes the following members.
Name | Description | |
---|---|---|
StructuralLoadCombination |
Create a load combination with the provided LoadCaseCombinationCategory and StructuralLoadCombinationData's
|
Name | Description | |
---|---|---|
Category |
The category of the load combination
| |
Count |
Returns the amount of load cases in the combination
| |
Description |
The description of the load combination
| |
Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) | |
Item |
Returns the load combination data at the provided index
| |
Name |
The name of the Analysis object.
Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.) | |
NationalStandard |
The national code application
| |
Type |
The type of combination
|
Name | Description | |
---|---|---|
Equals(Object) |
Check if this object is the same as the provided object.
(Overrides StructuralAnalysisObjectBaseEquals(Object).) | |
Equals(StructuralAnalysisObjectBase) |
Check if this object is the same as the provided object.
(Inherited from StructuralAnalysisObjectBase.) | |
Equals(StructuralLoadCombination) | Indicates whether the current object is equal to another object of the same type. | |
GetEnumerator | Returns an enumerator that iterates through the collection. | |
GetHashCode |
Retrieves the hashcode of the object
(Overrides StructuralAnalysisObjectBaseGetHashCode.) |
Name | Description | |
---|---|---|
PropertyChanged | (Inherited from StructuralAnalysisObjectBase.) |
Name | Description | |
---|---|---|
ConvertToStringStructuralLoadCombinationData |
Converts an IEnumerableT into a string, with each item separated by separator (Defined by EnumerableExtensions.) | |
OfTypeStructuralLoadCombinationData |
Filters the objects in data based on the provided type (Defined by EnumerableExtensions.) | |
ToObjectIdentifier |
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier (Defined by IAnalysisObjectExtensions.) | |
UnitsNetSequenceEqualsStructuralLoadCombinationData | (Defined by UnitsNetExtensions.) |
using System; using System.Collections.Generic; using System.Linq; using ModelExchanger.AnalysisDataModel.Enums; using ModelExchanger.AnalysisDataModel.Loads; using ModelExchanger.AnalysisDataModel.Models; using ModelExchanger.AnalysisDataModel.Subtypes; namespace ModelExchanger.AnalysisDataModel.Example.Loads { public sealed class StructuralLoadCombinationExample : BaseExample<StructuralLoadCombination> { protected override IReadOnlyCollection<StructuralLoadCombination> CreateAnalysisObjects(AnalysisModel model) { IReadOnlyDictionary<string, StructuralLoadCase> loadCases = model.OfType<StructuralLoadCase>().ToDictionary(x => x.Name, x => x); return new[] { new StructuralLoadCombination(Guid.NewGuid(), "CO1", LoadCaseCombinationCategory.AccidentalLimitState, new [] { new StructuralLoadCombinationData(loadCases["LC1"], 2.5D, 3D), new StructuralLoadCombinationData(loadCases["LC2"], 1, 2), }) { Description = "Load combination description" }, new StructuralLoadCombination(Guid.NewGuid(), "CO2", LoadCaseCombinationCategory.ServiceabilityLimitState, new [] { new StructuralLoadCombinationData(loadCases["LC1"], 1D, 1D), new StructuralLoadCombinationData(loadCases["LC2"], 2D, 1D), }) { Type = LoadCaseCombinationType.NonLinear }, }; } } }