StructuralLoadCase Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.Loads
public sealed class StructuralLoadCase : StructuralAnalysisObjectBase, ILoadAnalysisObject, IStructuralAnalysisObject, IAnalysisObject, IEquatable<StructuralLoadCase>
The StructuralLoadCase type exposes the following members.
Name | Description | |
---|---|---|
StructuralLoadCase |
Create a load case that is assigned to the provided StructuralLoadGroup with the provided action & load type
|
Name | Description | |
---|---|---|
ActionType |
The type of load in general
| |
Description |
A description of the load case
| |
Duration |
Defines the duration of the load impact
| |
Id |
The ID of the Analysis object.
Needs to be unique within the entire model
(Inherited from StructuralAnalysisObjectBase.) | |
LoadGroup |
The StructuralLoadGroup to which the load case is assigned
| |
LoadType |
The subtype of load. Depends on ActionType | |
Name |
The name of the Analysis object.
Needs to be unique within it's type
(Inherited from StructuralAnalysisObjectBase.) |
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(StructuralLoadCase) | Indicates whether the current object is equal to another object of the same type. | |
GetHashCode |
Retrieves the hashcode of the object
(Overrides StructuralAnalysisObjectBaseGetHashCode.) |
Name | Description | |
---|---|---|
PropertyChanged | (Inherited from StructuralAnalysisObjectBase.) |
Name | Description | |
---|---|---|
ToObjectIdentifier |
Converts the provided IAnalysisObject into an AnalysisObjectIdentifier (Defined by IAnalysisObjectExtensions.) |
using System; using System.Collections.Generic; using System.Linq; using ModelExchanger.AnalysisDataModel.Enums; using ModelExchanger.AnalysisDataModel.Loads; using ModelExchanger.AnalysisDataModel.Models; namespace ModelExchanger.AnalysisDataModel.Example.Loads { public sealed class StructuralLoadCaseExample : BaseExample<StructuralLoadCase> { protected override IReadOnlyCollection<StructuralLoadCase> CreateAnalysisObjects(AnalysisModel model) { IReadOnlyDictionary<string, StructuralLoadGroup> loadGroups = model.OfType<StructuralLoadGroup>().ToDictionary(x => x.Name, x => x); return new[] { new StructuralLoadCase(Guid.NewGuid(), "LC1", ActionType.Permanent, loadGroups["LG1"], LoadCaseType.SelfWeight), new StructuralLoadCase(Guid.NewGuid(),"LC2", ActionType.Accidental, loadGroups["LG6"], LoadCaseType.Standard), new StructuralLoadCase(Guid.NewGuid(), "LC3", ActionType.Variable, loadGroups["LG8"], LoadCaseType.Standard) { Duration = Duration.Long } }; } } }